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
682

Hi ,

I need a sample code of BDC ,to learn how to work on bdc .can an one help me out and let me know the link nor provide me a step by step process .

of how to creat a bdc.

which will heplfull to learn working on BDC.

Thanks ,

vinay

5 REPLIES 5
Read only

Former Member
Read only

dani_mn
Active Contributor
Read only

aris_hidalgo
Contributor
0 Likes
638

Hi, Please check out the downlaodable tutorials here. Also, check out www.sapgenie.com, sapdevelopment.co.uk, sap-img.com. They have examples for BDC.

Hope this helps...

P.S. Please award points if found useful.

Read only

Former Member
0 Likes
638

hi

good

LOOP AT t_matnr .

PERFORM bdc_dynpro USING 'SAPLCPDI' '1010'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RC27M-WERKS'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=COPY'.

PERFORM bdc_field USING 'RC27M-MATNR'

t_matnr-matnr.

PERFORM bdc_field USING 'RC27M-WERKS'

p_to . " '3PL1'.

PERFORM bdc_field USING 'RC271-PROFIDNETZ'

''.

PERFORM bdc_dynpro USING 'SAPLCPCO' '0101'.

PERFORM bdc_field USING 'BDC_CURSOR'

'TYP_TEXT(01)'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=CONT'.

PERFORM bdc_dynpro USING 'SAPLCPCO' '1010'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RC27M-WERKS'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=CONT'.

PERFORM bdc_field USING 'RC27M-MATNR'

t_matnr-matnr.

PERFORM bdc_field USING 'RC27M-WERKS'

p_from . "'GBMS'.

PERFORM bdc_dynpro USING 'SAPLCPDA' '1200'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'BDC_CURSOR'

'PLKOD-STATU'.

PERFORM bdc_field USING 'PLKOD-STATU'

'4'.

PERFORM bdc_dynpro USING 'SAPLCPDI' '5400'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RC27X-ENTRY_ACT'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=BU'.

PERFORM bdc_transaction USING 'CA21'.

ENDLOOP.

PERFORM close_group.

this is a sample BDC.

thanks

mrutyun

Read only

abdul_hakim
Active Contributor
0 Likes
638

hi

i would strongly advice you start reading the document related to BDC from the knowledge pool

http://help.sap.com

to be brief below is the overall process.

1.record the corresponding transaction using shdb

2.generate the program from the recording

3.replace the recorded value with the actual value in the batch input program.

4.process your batch input program using either session / call transaction.

Cheers,

Abdul Hakim