Application Development and Automation 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: 
Read only

How to process a batch input session directly from the program

Former Member
0 Likes
4,501

Hi,

I have developed a program which will create a batch input session.

When the program is executed, the session should get processed . ie. the user need not have to go to sm35 to process the session. I am facing some problem in this.

I am using BDC_INSERT by passing the tcode . The session is getting processed, but when i go to sm35, i noticed that the session is still listed under the "New" tab instead of the "Processed" tab.

Also I am not getting the final window with the buttons " Session overview" and "Exit Batch Input".

Please help me out in this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,023

Hi

U have to submit the program RSBDCSUB:

SUBMIT RSBDCSUB WITH MAPPE = <session>
                WITH VON   = SY-DATUM
                WITH BIS   = SY-DATUM
                WITH FEHLER = ' '
                    EXPORTING LIST TO MEMORY
                                    AND RETURN.

Max

5 REPLIES 5
Read only

Former Member
0 Likes
2,023

Hi,,

To process the session directly from the program you need to submt the program RSBDCSUB using the session group name.

Regards,

Ravi

Read only

Former Member
0 Likes
2,024

Hi

U have to submit the program RSBDCSUB:

SUBMIT RSBDCSUB WITH MAPPE = <session>
                WITH VON   = SY-DATUM
                WITH BIS   = SY-DATUM
                WITH FEHLER = ' '
                    EXPORTING LIST TO MEMORY
                                    AND RETURN.

Max

Read only

0 Likes
2,023

Hi,

This is working fine , but in case of All screen mode ( 'A' ) , i need to show the screens to the user. Currently, the submit RSBDCSUB is getting scheduled in background . Can you please help me on this ..

Thanking you in advance,

Shankar

Read only

Former Member
0 Likes
2,023

Hi,

After completing the Session method, you can use RSBDCSUB Program to run the Session automatically

SUBMIT RSBDCSUB WITH MAPPE = SESSION NAME

WITH VON = SY-DATUM

WITH BIS = SY-DATUM

WITH FEHLER = ' '

EXPORTING LIST TO MEMORY

AND RETURN.

Regards

Sudheer

Read only

0 Likes
2,023

Why don't you CALL TRANSACTION and only use BDC_INSERT if there is an error?