What Are RSBDCBTC_SUB and RSBDCSUB
Use For
Explain briefly about RSBDCSUB and it uses. Program rsbdcsub is to execute the session method in background and in foreground, for this you need to create a session in sm35. To carry out postings, you can have the system run the batch input sessions automatically. To do this, use report RSBDCSUB. To process batch input sessions manually, proceed as follows:
The system displays a list of those batch input sessions
that meet your selection criteria. Enter the relevant data for selecting
the session.
The system displays a dialog box where you can specify
how the session is to be processed. You generally select the Display errors
field in order to have the system display any errors in the session.
The system posts the documents. You can call up a log of the batch input session by choosing Goto -> Log. How to run Batch Input Session from a report in Online?
Debugging program RSBDCSUB lead me to find out another program called RSBDCBTC_SUB which just takes the Queue ID of the Batch session and process it in the No screen mode. I copied this standard program, made changes so that it always pass the mode as 'A' (All Screens) and used it in my program. I already had the Queue ID and that's all I want to execute ZRSBDCBTC_SUB. Variant in Job Log
1) When I go to the program in SE38 and execute the program, on the selection screen no variant is maintained. Then from where is it picking up this variant? And where can I see, what are the values in this variant? 2) Every time the job runs, it picks up a new variant. From where is it picking up these new variants everyday? When you run the report at SE38 using execute background ,system will take default variant. In your case someone is running the program(se38) in background, he fill the values in selection screen and run on background. In this case variant is not requeired. Difference between RSBDCSUB and RSBDCBTC : RSBDCSUB - You can start the processing of the sessions using this. RSBDCBTC - This has something to do with the Queues of the batch input sessions, you cannot start any session using this. RSBDCSUB is used for executing BDC sessions, e.g. you create BDC sessions in a user exit and want to execute them once every day. You can schedule RSBDCSUB to execute you BDC sessions at a particular time. When the program is processed and waiting for the session to be released, if we use RSBDCSUB then the Whole sessions created for the program are released at a single go, Whereas if we use RSBDCBTC, each session is given a Unique Session ID and it can be released automatically regardless of the program name. RSBDCSUB - Processing Sessions Automatically In most cases, batch input sessions can be processed automatically. It is not necessary for a session to wait until a system administrator explicitly starts the processing of the session. The ABAP program RSBDCSUB must be scheduled as a periodic job in the R/3 background processing system. RSBDCSUB checks for and starts any batch input sessions that have not yet been run. It schedules such sessions for immediate execution in the background processing system. Schedule RSBDCSUB to run periodically in one or more background jobs. If you have regularly scheduled batch input runs, you can schedule separate jobs for each of the scheduled data transfers. The start time for the RSBDCSUB job can be set according to the batch input schedule. And you can use a variant to restrict RSBDCSUB only to the batch input sessions that you expect. With RSBDCSUB, you can use all of the selection criteria
offered on the batch input main menu to select sessions to run:
Batch input sessions are started automatically rather than by hand. The RSBDCSUB program can be set up to start all sessions that arrive in an R/3 System, or it can be fine-tuned to start only batch input sessions that you expect.
Get help for your ABAP problems
ABAP Books
More ABAP Tips
SAP Basis, ABAP Programming and Other IMG Stuff http://www.erpgreat.com All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|