2005 Aug 14 12:37 AM
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
2005 Aug 14 6:50 AM
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
2005 Aug 14 2:40 PM
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.
2005 Aug 14 2:58 PM
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
2005 Aug 14 3:22 PM