cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter BP (CRM to R3) for BOR based transaction launcher

Former Member
0 Kudos

Hi,

Our requirement is to display R3 sales order(VA03) through IC webclient. The BP no of the confirmed business partner should be shown as default in the Sold to party field of VA03 transactn screen.

Steps followed -

1. Created a BOR transaction launcher with 'BUS2032', method - display.

Selected the Import parameter name - ICWEBCLIENTBORKEYPARAMETER.

I could not find any Import parameter value corresp to BP number, so left the Import Parameter value as blank.

2. In the trans launcher generated class, method 'PREPARE_DATA_FLOW' added the following code -

CALL METHOD __gdc->get_entity_attribute_as_value

EXPORTING

path = '//currentCustomer/BP_NUMBER'

IMPORTING

value = lv_bpid.

  • PASS PARAMETERS TO THE BOR OBJECT FOR PROCESSING IN THE ECC

me->set_container_data(

iv_name = 'RV45S-KUNNR'

iv_value = lv_bpid ).

It launches the VA03 screen but the BP no is not passed to the sold to party field.

Please provide your inputs. Anything helpful would be rewarded.

Thanks,

Akanksha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Akanksha,

if you work with a BOR object and BOR method then the VA03 selection criteria (...-KUNNR) are not in scope. And you are bypassing the selection screen. If you created a txl for the BOR object you can use the following code in PREPARE_DATA_FLOW to directly jump to a debitor

me->set_container_object(

iv_name = '<MAINOBJ>'

iv_object_key = lv_object_id

iv_object_type = lv_bortype ).

Regards

Jan

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jan,

Thanks for this information.

I passed the BP no in 'icwebclientborkeyparameter' and then using the below code in prepare_data_flow method-

me->set_container_object(

iv_name = '<MAINOBJ>'

iv_object_key = icwebclientborkeyparameter

iv_object_type = gv_bortype ).

But it still doesnt work.

Do i need to create a Z copy of BOR object 'BUS2032' and then do some enhancement in BOR object - display method also?

Regards,

Ak

Former Member
0 Kudos

Ah sorry for that!

I was thinking about VD03. Now I see you mean VA03.

As I said by using object BUS2032 method Display you bypass the selection screen. You can open the transaction directly with object ZTSTC method Execute. (Basically you have to copy and inherit standard object TSTC in the ECC to customer object ZTSTC and set method Execute to synchronous. The parameter to the method is the transaction name, eg VA03)

Regards

Jan

TonyRosenthal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I have done this before for a Z transaction and you can apply similar logic for VA03.

See my steps in the following post

Link: []

Cheers

Tony

Former Member
0 Kudos

Hi,

Any inputs please...

Regards,

Ak