Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Adobe Forms in Web ui


I have to created Adobe Forms in the MDF Initiative WEB UI using Action Profile. I have implemented badi doc_personalize_bcs and have configured Action Profile. Should I add any code in the button for displaying the form in the popup.Is it necessary to create an ICF Service for this. I have checked all the pages in SCN but could not find this. Currently I have added this code in the button event but the form is not opening.

    lr_comp_contrl ?= me->comp_controller.

    lr_ini_entity ?= lr_comp_contrl->typed_context->initiative->collection_wrapper->get_current( ).

    CHECK lr_ini_entity IS BOUND.

    lv_ini_guid = lr_ini_entity->get_property_as_string( iv_attr_name = 'GUID' ).
    lr_action_entity ?= lr_ini_entity->get_related_entity( iv_relation_name = 'INIActionRel' ).
   " Get the Action Entity
    CHECK lr_action_entity IS BOUND.

   lr_action_context ?= lr_action_entity->get_related_entity( iv_relation_name = 'MKTActionContextRel' ).

   CALL METHOD cl_crm_uiu_actions_tools=>show_print_actions_popup
       ir_action_context       = lr_action_context
       ir_parent_node          = lr_ini_entity
       ir_view_controller      = me
       ir_component_controller = comp_controller
       iv_event_name           = 'PREVIEW_SEL_CLOSED'        "#EC NOTEXT
       iv_for_preview          = abap_true
       iv_appl_guid            = lv_ini_guid
       et_actions              = gt_print_actions
       ev_url                  = lv_url
       cr_decision_popup       = dec_popup.

    lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_GEN/PRINT_PREVIEW_POPUP_TITLE' )."#EC NOTEXT
   lr_popup me->comp_controller->window_manager->create_popupiv_interface_view_name = 'GSURLPOPUP/MainWindow'
                                                                   iv_usage_name          = 'CUGSURLPopup'
                                                                   iv_title               = lv_title ).
   lr_cn = lr_popup->get_context_node( 'PARAMS' ).           "#EC NOTEXT
   lr_obj = lr_cn->collection_wrapper->get_current( ).

   ls_params-url = iv_url.
   ls_params-height = '700'.                                 "#EC NOTEXT
   lr_obj->set_properties( ls_params ).
   lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_plain ).
   lr_popup->set_window_width( 700 ).
   lr_popup->set_window_height( 700 ).
   lr_popup->open( ).


Can anyone help with this.



Helpful Answer

Not what you were looking for? View more on this topic or Ask a question