‎2007 Mar 12 5:42 PM
Hi,
I need to write a call transaction to update the delivery(likp-bolnr) with the tracking number.How do I do this?
I dont have knowledge of the BDC s.
Can anyone tell me how I should write the code?
I looked into a sample program ..the code was like this
*...1st screen
PERFORM fr_bdc_dynpro USING 'SAPMV50A'
'4004'
CHANGING lt_bdcdata.
PERFORM fr_bdc_field USING 'BDC_OKCODE'
'=HTRA_T'
CHANGING lt_bdcdata.
PERFORM fr_bdc_field USING 'LIKP-VBELN'
uw_list-vbeln
CHANGING lt_bdcdata.
*..2nd screen
PERFORM fr_bdc_dynpro USING 'SAPMV50A'
'2000'
CHANGING lt_bdcdata.
PERFORM fr_bdc_field USING 'BDC_OKCODE'
'=SICH_T'
CHANGING lt_bdcdata.
PERFORM fr_bdc_field USING 'LIKP-BOLNR'
uw_list-track
CHANGING lt_bdcdata.
CALL TRANSACTION co_tcode_vl02n
USING lt_bdcdata
MODE lf_mode
MESSAGES INTO lt_bdcmsgcoll.
How can I know how to code this? Anyone help me with any material with step by step.
‎2007 Mar 12 6:06 PM
You can use transaction <b>SHDB</b> to record the transaction you need to batch....
PERFORM fr_bdc_dynpro USING 'SAPMV50A'
'4004'
CHANGING lt_bdcdata.
Here you told the program and the screen.
PERFORM fr_bdc_field USING 'BDC_OKCODE'
'=HTRA_T'
CHANGING lt_bdcdata.
Here you told to execute an OKCODE...For example, push a button on the tx.
PERFORM fr_bdc_field USING 'LIKP-VBELN'
uw_list-vbeln
CHANGING lt_bdcdata.
Here you told to fill one of the screen fields with your custom data.
Hope it helps.
Greetings,
Blag.
‎2007 Mar 12 6:06 PM
You can use transaction <b>SHDB</b> to record the transaction you need to batch....
PERFORM fr_bdc_dynpro USING 'SAPMV50A'
'4004'
CHANGING lt_bdcdata.
Here you told the program and the screen.
PERFORM fr_bdc_field USING 'BDC_OKCODE'
'=HTRA_T'
CHANGING lt_bdcdata.
Here you told to execute an OKCODE...For example, push a button on the tx.
PERFORM fr_bdc_field USING 'LIKP-VBELN'
uw_list-vbeln
CHANGING lt_bdcdata.
Here you told to fill one of the screen fields with your custom data.
Hope it helps.
Greetings,
Blag.
‎2007 Mar 12 6:22 PM
Hi Ramana,
Please use BAPI: BAPI_SALESORDER_CHANGE instead of BDC.. These are faster and lot efficient. Let me know if you have any questions.
Regards
Rakesh
‎2007 Mar 12 6:31 PM
How should I mention the Import & export parameters?
Message was edited by:
ramana peddu