BDC and Batch Input

15 pts.
Tags:
ABAP
Batch Data Communication
BDC
What is the actual difference between BDC and Batch input in ABAP? Is there any difference at all? -Gururpasad R
ASKED: July 23, 2008  4:31 AM
UPDATED: May 17, 2011  7:19 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following