Skip to Content



Requirement:——

-Call a ECC Transaction ME49 on click of a Toolbar button of sap crm transaction in WEBUI(CRM) by Transaction Luncher

-Pass some data of CRM Transaction to the ECC Transaction selection Screen.

-Open the ECC transaction in a separate window without overlapping the CRM Webui screen

Solution:——

#Steps:

-ECC: Copy Business object TSTC_UIF and Delegate.

-ECC:Create a new method and implement ,for setting the parameter values to ME49 selection screen.

-CRM: Create Transaction Luncher for BOR Object type with a handler class.

-CRM:Create Logical Link for this Transaction luncher.

-CRM: Create Custom object type , which is needed for navigation.

-CRM: Create generic Outbound plug mappings by using the logical link and custom object type.

-CRM: Create button and its Event handler method in webui.

-CRM:Implement logic in button event handler for dynamic navigation using navigation descriptor objects.

-CRM: Goto se24 and open the transaction luncher Handler class and implement your logic in

           if_crm_ic_action_handler~prepare_data_flow and other methods as per your requirement..

#Details:

ECC Development

-Copied the Business Object TSTC_UIF to YV_TSTCUIF in Transaction SWO1. Delegate it to Standard TSTC_UIF.

-Created a method SET_PARAMETER in this copied business object.

In the General section of the method , the Dialog & Synchronous check box should be ticked .

Set the status of the method to Released.

-This method has the parameters: ( you can  mark as mandatory for the required parameters)   These are the parameters whose values will be passed from CRM during runtime.

-Coding of method SET_PARAMETER:

The corresponding report program of the TCODE ME49 get called . Because we can pass any parameter values without any issues.

Note: You can also use the Call Transaction and using the set parameter ID,  if the field has parameter ID . you can see this by using F1 key on the GUI fields.

begin_method set_parameter changing container.
DATA:
       l_f_ebeln TYPE ekkoebeln,
       l_f_ekorg TYPE ekkoekorg,
       l_f_submi TYPE ekkosubmi.

swc_get_element container ‘EBELN’ l_f_ebeln.
swc_get_element container ‘EKORG’ l_f_ekorg.
swc_get_element container ‘SUBMI’ l_f_submi.

* Call report program of transaction code ME49
* -> Selection values from CRM Service order Quotation

   SUBMIT rm06eps0 WITH p_ekorg EQ l_f_ekorg
                      WITH p_ebeln EQ l_f_ebeln
                      WITH p_submi EQ l_f_submi
                      VIA SELECTION-SCREEN AND RETURN.

end_method.

CRM Developments
Details explained below.

/wp-content/uploads/2014/10/custmizing_570638.png

/wp-content/uploads/2014/10/custmizing_570638.png

Created a button in the Webui and also its corresponding Event Handler method.

– This event handler method will create the navigation descriptor object for dynamic navigation using the object type.

Coding of Event handler is shown below

/wp-content/uploads/2014/10/custmizing_570638.png

Transaction Launcher handler Class :

Which gets generated during transaction launcher creation.

Method: IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW

-Here we are sending the value for the transaction launcher parameters to ECC Transaction ME49.

-In this method you can see the parameter values which was assigned during Trans.launcher creation.

-So when you open this method, you will see some auto generated codes.

-Here you can get the collection which you sent via button event handler method,  from  variable gv_ltx_cuco as   displayed below.

-Here you can also program as per your need.

/wp-content/uploads/2014/10/custmizing_570638.png

Output: Now go to CRM webui and open your transaction. Click on the Button to lunch ECC tcode ME49.

This Tcode will open in a separate window without overlapping/replacing the current CRM webui screen .

Debugging: you can put a breakpoint in this handler class method . This will be triggered before displaying the ECC Transaction.

Hope this will be helpful .

Thanks

Sudhansu

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

    1. Sudhansu Maharana Post author

      Hi Christian,

      Thanks for your comments.

      Yes the document links mentioned by you are really explains the details about  Transaction launcher via the links(Workcenter) in the Navigation Bar and how to troubleshoot. Its a very good document.

      But the details about the scenario how to launch the Transaction launcher, from a Button (or Event Handler) in WebUI is not mentioned in those documents.

      So in this document posted by me, explains details about how to trigger the Transaction Launcher from a button( Event handler methods) in CRM WebUI.

      Thanks and Best Regards,

      Sudhansu

      (0) 
      1. Christian Drumm

        Hi Sudhansu,

        navigating from a button or link to a transaction launcher is just the navigation to a logical link. Therefore one only needs to use the navigation service to navigate to this link in the event handler of the button.

        If you really think your document adds value you should at least take the time to

        • format the text and code examples correctly (not just copy and past screen shots from other documents)
        • make le the text readable. The current version is very hard to follow for someone that doesn’t know th e topic already.

        Best,

        Christian

        (0) 
        1. Sudhansu Maharana Post author

          Hi Christian,

          Ok I will prepare a good document and post again.

          I would like to inform you, that the screenshots are my own and its not copy& paste from other documents.

          Thanks

          Sudhansu

          (0) 

Leave a Reply