09-18-2008 10:48 AM
Hi,
I have gone through the forum in trying to understand the standard sap batch program, but still unable to do so.
I have a requirement where I need to use standard sap batch program RFBIBL00
I need to use T.code: F-22 for processing
I have a posting text file to upload. Please explain me how to use the standard sap batch program.
I know there are 3 structures BGR00, BBKPF and BBSEG which needs to be populated before calling the program RFBIBL00
Please explain me in detail.
Appreciate all the help from your end.
Madan
09-18-2008 11:48 AM
This is a brief guideline from memory, so you will have to modify it to fit your exact requirements.
1. Initialise the work areas, can be done by
perform init_strukturen_erzeugen(rfbibli0) using '/'
2. Fill your batch structure BGR00 and append to output file data itab
3. Load your data from text file, and loop around it
4. Fill your header structure BBKPF per document, append to output file itab
5. Fill your lines itab BBSEG per document line, append to output file itab
6. Repeat 4 & 5 for each document in text file.
7. Create temporary output file on App server using contents of output file itab
8. Submit rfbibl00 program using output file name
9. Delete the temporary file (good practice)
Hope that helps for starters
09-19-2008 8:18 AM
Hi,
Thank you for your information, it helped me to go ahead.
Warm Regards'
Madan