cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass current sold-to-party number from sales order to BP transaction using Transaction laucher

former_member205429
Contributor
0 Kudos

hi

can any one let me know how do i pass the sold - to - party number which is available in the sales order screen in Web Ui to the BP screen

in GUI using Transaction launcher..

i am able to go to BP screen using Transaction launcher...

Can any one let me know how do i achieve this !!!

Pls help !!!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

BUS object to display BP in GUI: BUS1006.

Method Responsible: BusinessPartner.Display

Configure the transaction launcher

Go to class ZCL_BP_DISP which was created while configuring the transaction launcher.

Add a static public attribute GV_PARTNER in the class.

Add the following code in the method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW

me->set_container_object(

   iv_name        = '<*MAINOBJ*>'

   iv_object_key  = ZCL_BP_DISP=>GV_PARTNER

   iv_object_type = gv_bortype ).

Create a logical link 'ZC_LL_BP' using the configured transaction launcher id.

Now go to the event handler triggered on clicking on the sold-to-party hyperlink.

Add the following code:

*  Set the static variable with the partner value

  zcl_bp_disp=>gv_partner = lv_partner.

*  Navigate using logical link

  lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).

  CHECK lr_navigation IS BOUND.

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

Note: One drawback of this approach is that you need to maintain the link in one of the work center pages for that role.

Regards,

Sayan

kavindra_joshi
Active Contributor
0 Kudos

Find out the correct BUS object for the BP and then you can pass the parameters to it. I guess you are using TSTC as the reference bus object.

Regards

Kavindra

former_member205429
Contributor
0 Kudos

yes exactly i am using ZTSTC as BUS Object ..

former_member210642
Participant
0 Kudos

can you elaborate your question?

You need to pass TL to Component , is this right?