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: 

How to run the Batch input session(SM35) in background thru Report program

Former Member
0 Kudos

Hi Experts,

I am working in one modification report requirement ,the report is Mass upload will update and run the file via batch input session. The client requirement is to implement the report execution in background mode , the batch input session will process automatically (ie. the job runs the batch input session in background and process the session ends).

Currently, the report calls SM35 to write a batch input session and the user manually selects the session and record the transactions.

Once the Transaction enters and the selection-screen inputs are given, then the transaction executed in background mode and all the above batch input process to be implemented.

Please advise and guide me, how to proceed.

I need your guidance to proceed via Call transaction using bdcdata statement, if it can be achieved the requirement.

Thanks & Regards

San.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use submit rsbdcsub in your program and pass the selection screen parameters.

submit rsbdcsub

using selection screen 1000.

with .....

and return.

Search the forum. It has been answered earlier.

7 REPLIES 7

Former Member
0 Kudos

Hi,

If you want to use CALL Transaction, than provide mode as 'N' and go forward.

Another way is In your Selection-Screen after you entered all the value -->on the Left top Click on Program >Exceute in background>Give the output device-->select immediate .

It will be scheduled and will process.

Thanks

Arbind

0 Kudos

Hi Arabind Prasad,

Thanks for your inputs.

I know the process of the report Execution in background and job steps.

I want the inputs for how to upload thru Batch input session in background job and the session should also processed automatically

.

Currently the report logic declared like call transaction 'SM35' and skip first screen.Once the report (tcode) executed (not in background) It writes one session in SM35. The user should select the session and process the transaction manually.

The new requirement is, if the report (tcode) executes in background mode...what and how the batch input session should be declared and how it process automatically (like you said mode 'N').

Hope I am clear in my query.

Please advise.

Regards

San.

Edited by: San Learner on Mar 1, 2011 7:16 PM

0 Kudos

Hi,

I think you can use the Call transaction process.

e.g.


CALL TRANSACTION 'SE24' USING it_bdcdata
                                                 mode 'N'
                                                  update 'A'.

Thanks

Arbind

former_member193284
Active Participant
0 Kudos

Hi San,

you can use report RSBDCSUB this helps you to process the session without using SM35. you can call this report in your program and then schedule your main program to do the mass upload.

Thanks

Former Member
0 Kudos

Use submit rsbdcsub in your program and pass the selection screen parameters.

submit rsbdcsub

using selection screen 1000.

with .....

and return.

Search the forum. It has been answered earlier.

Former Member
0 Kudos

hi,

For Batch input session you schedule this job in sm36 and assign the parameter according to your requirement.

Former Member
0 Kudos

SUBMIT rsbdcsub AND RETURN " return when finished 
WITH mappe = w_batch_name   " batch session name 
WITH z_verarb = 'X'                    " To process 
WITH fehler = ' '                           " not batch sessions in error 
WITH logall = 'X'.                          " Extended log 

--

Raul Natu