cancel
Showing results for 
Search instead for 
Did you mean: 

Requirements using Transaction Launcher

Former Member
0 Kudos

Hi Experts,

I have the following requirements using Transaction Launcher in IC:

1) The user identifies the account, goes to Interaction Record, choses a Reason and clicks on Save. There will be 2 reasons which when chosen and the IRec saved, 2 different ERP transactions should be launched.

--> I have already:

a) configured both the transaction launchers to be launched

b) made a copy of IRecReason.htm into a new BSP application ZCRM_IC and have redefined the OnSave method in the new implementation class ZCL_CRM_IC_IRECREASON_IMPL (which has CL_CRM_IC_IRECREASON_IMPL as the super class).

c) setup the replacement controller, so ZCRM_IC/IRecReason is being correctly called.

What do I code in the OnSave method to launch the ERP transaction based on the selected IRec Reason?

2) Once the transaction is launched above, the identified account should be copied to the launched ERP transaction. The 2 launched transactions are IW51 & VA01.

How do I do this ?

The reply to the above 2 questions will be highly appreciated.

Thanks in advance.

Regards

Vicky

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Vicky,

If your TL is working fine from Navigation bar then it can be called from anywhere in CRM web IC.

Following is sample code on how to call TL using Link ID which you have configured in SPRO. You can put this code in the event your created or you can also use outbound plug and put this code in there.

DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.

lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).

CHECK lr_navigation IS BOUND.

lr_navigation->navigate( iv_link_id = 'ZLINKID' ).

Hope this helps.

-ASB

Former Member
0 Kudos

Hi ASB,

I am able to launch ERP transaction according your sugession , please suggest also how I will pass bata from CRM to ERP transaction.

Regards

Gaurav

Former Member
0 Kudos

Hi Vicky,

What CRM version are you using now ?

If you're using CRM 5.2 or CRM 2007, you can look at source code how to call transaction launcher to ERP with link

Component BTDOCFLOW

View HdrDocFlowOV

Event Handler EH_ONDOCFLOW

When the User clicks on a Hyperlink pointing to an ERP Document, e.g. on Billing Transaction or Outbound Delivery, the ERP transaction will be trigerred.

Hope it's help,

Lina

former_member813607
Contributor
0 Kudos

Hi Vicky,

I am not sure, how much doable the requirement is but will suggest you to, try launching the transaction lancher via navabar first and then if it works we can try from the event handler of save button.

Note: Transaction Launcher by definition is for lanching PCUI or BOR views into ICWeb via "Navbar".

once you could successfully launch these transactions via navbar the next step should be, reading the confirmed customer number from the global custom controller ( CuCoBDC I think ) In the class you have defined while creating the TL. You should able to see some parameters of the class / BOR object you used for passing the new confirmed BP number.

The next step is to make the call via the event handler of the save button, since you have already copied and implemented the relevant classes you have to redefine the eh_onsave method of the controller class for calling the BOR / ITS based view.

Note: You may have to create a new navigation link or utilize the link id created by the TL workbench while calling the navigation.

hope it helps,

Regards, Sudeep..

Former Member
0 Kudos

Hi Sudeep,

Thanks for your reply.

Following is what I have to say to your reply:

1) Both the transactions launch perfectly from the NavBar.

2) I have used the BOR Object ZTSTC (copy of TSTC) tand parameter 'Transaction Code' to launch both the transactions. Can u suggest specific BOR Objects and their methods for transactions VA01/02 & IW51/52 so that I can pass the current customer (from controller CuCoBDC) to a parameter in these methods? I think the BOR object type would be BUS2032 for VA01/02 & BUS2078 for IW51/52, but I am not sure about the methods to be used.

3) I have already redefined the method eh_onsave method (as mentioned in my thread), but I dont know what to code in the redefined method in order to call the Transaction Launcher, using the Transaction launcher ID.

Look forward to your reply.

Thanks again.

Cheers

Vicky