Application Development 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: 

Running Batch Input sessions in One program

Former Member
0 Kudos

Hi Guys.

I am sure this question might have come up before. Reall y need quick help in this hence posted the same.

I need to develop a program which creates several batch input sessions.

At the end of the program all these sessions should ve triggerred in the background.

Please let me know if this can be done and if yes can someone send me psuedocode for same.

This is very urgent.

thx

4 REPLIES 4

Vinod_Chandran
Active Contributor
0 Kudos

Hi Vijay,

Using the following function modules you can create a batch input session.

BDC_OPEN_GROUP

BDC_INSERT

BDC_CLOSE_GROUP

Example - http://www.sap-img.com/abap/auto-disallowed-back-posting-to-previous-period.htm

You can use the program RSBDCSUB to schedule batch input sessions in background.

http://www.sap-img.com/abap/learning-bdc-programming.htm - How to write BDC program

- Example for how to call the bdc session.

Hope these are helpful.

Thanks

Vinod

0 Kudos

Thx for the answers.Just confirm again that RSBDCSUB will also help to run the batch input sessions instead of whats mentioned in the below :

- Example for how to call the bdc session.

Do you have any example BDCs code where file from UNIX server is used to create baych input sessions.

It will solve my issue then.

Thx again.

0 Kudos

Hi Vijay,

You can use the program RSBDCSUB. But RSBDCBTC provides more control.

Please see this website. This will help you to understand how to read a file from unix and put the data in an internal table. Once you have the data in the interal table, the BDC processing is same as normal.

http://www.sapgenie.com/abap/unixfile.htm

If you want more clarification, please let me know.

Kindly assign points if the replies are helpful.

Thanks

Vinod

Message was edited by: Vinod C

Former Member
0 Kudos

Thx it gives me a headstart now.