15 pts.
 BDC and Batch Input
What is the actual difference between BDC and Batch input in ABAP? Is there any difference at all? -Gururpasad R

Software/Hardware used:
ASKED: July 23, 2008  4:31 AM
UPDATED: May 17, 2011  7:19 PM

Answer Wiki:
When you want to run a tcode as a batch program or function, you record the tcode process entering values as needed, which creates a BDC. System -> Services > batch input -> Recorder -> Give the recording a name and start [New recording] with tcode PV1A. This is a sample of a BDC: FORM bdc_vrns. CLEAR: bdcdata. REFRESH bdcdata. IF NOT data_tab-text09 IS INITIAL. PERFORM bdc_dynpro USING 'SAPLRHVA' '3000'. PERFORM bdc_field USING 'BDC_OKCODE' '=EPIC'. PERFORM bdc_field USING 'HRVPVA-EVSRK' data_tab-text10. *_____________________________________________________________ PERFORM bdc_dynpro USING 'SAPMH5A0' '5000'. PERFORM bdc_field USING 'BDC_OKCODE' '=TAB02'. *_____________________________________________________________ PERFORM bdc_dynpro USING 'SAPMH5A0' '5000'. PERFORM bdc_field USING 'BDC_OKCODE' '=INSE'. PERFORM bdc_field USING 'MARKFELD(02)' 'X'. *_____________________________________________________________ PERFORM bdc_dynpro USING 'MP100100' '2000'. PERFORM bdc_field USING 'BDC_OKCODE' '=UPD'. PERFORM bdc_field USING 'P1001-RSIGN' 'B'. PERFORM bdc_field USING 'P1001-RELAT' '007'. PERFORM bdc_field USING 'P1001-SCLAS' '93'. PERFORM bdc_field USING 'P1001-SOBID' data_tab-text09. *_____________________________________________________________ PERFORM bdc_dynpro USING 'SAPMH5A0' '5000'. PERFORM bdc_field USING 'BDC_OKCODE' '=BACK'. *_____________________________________________________________ PERFORM bdc_dynpro USING 'SAPLRHVA' '3000'. PERFORM bdc_field USING 'BDC_OKCODE' '=BACK'. *_____________________________________________________________ CALL TRANSACTION 'PV1A' USING bdcdata MODE mode UPDATE 'S' MESSAGES INTO messtab. endform. " BDC_VRNS
Last Wiki Answer Submitted:  May 17, 2011  7:19 pm  by  SuperSapper   380 pts.
All Answer Wiki Contributors:  SuperSapper   380 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _