on 03-31-2011 7:27 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
Any inputs please...
Regards,
Ak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.