‎2006 Aug 11 6:41 AM
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
‎2006 Aug 11 6:46 AM
hi,lots of example.
BDC
http://www.sap-img.com/bdc.htm
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
‎2006 Aug 11 6:47 AM
‎2006 Aug 11 6:53 AM
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.
‎2006 Aug 11 7:02 AM
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
‎2006 Aug 11 7:08 AM
hi
i would strongly advice you start reading the document related to BDC from the knowledge pool
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