Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC

Former Member
0 Likes
398

Hi,

I need to write a call transaction to update the delivery(likp-bolnr) with the tracking number.How do I do this?

I don’t 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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
348

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.

3 REPLIES 3
Read only

Former Member
0 Likes
349

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.

Read only

Former Member
0 Likes
348

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

Read only

0 Likes
348

How should I mention the Import & export parameters?

Message was edited by:

ramana peddu