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

BDC sessions

Former Member
0 Likes
1,078

Hi,

Instead of going to SM35 & runing a created BDC session, how to run a BDC session automatically after creating it through a program?

Thanks.

Uma

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,032

Change the code as follows.

SUBMIT RSBDCSUB

WITH MAPPE GROUP

WITH fehler = ' '

AND RETURN.

Hi,

Instead of going to SM35 & runing a created BDC session, how to run a BDC session automatically after creating it through a program?

Thanks.

Uma

7 REPLIES 7
Read only

Former Member
0 Likes
1,032

Hi,

You can Use program RSBDCSUB.

Read only

0 Likes
1,032

Thanks Imtiaz.

I'm new to SAP/ABAP area...

Please let me know how should I call this program inside my program and pass on the session name to this program.

Thanks.

Uma

Read only

Former Member
0 Likes
1,032

Use this code.

SUBMIT RSBDCSUB

USING MAPPE <Your Session Name>

AND RETURN.

This will work.

Award points if helpfull.

Read only

0 Likes
1,032

Hi Sudhir,

Thanks for the code.I tried adding the below code in my program:

SUBMIT RSBDCSUB

USING MAPPE GROUP

AND RETURN.

but it gives the below syntax error:

"SELECTION-SET ...", "SELECTION-SCREEN ...", or "SELECTION-SETS OF PROGRAM ..." expected after "USING".

Please let me know or clarify.

Thanks

Uma.

Message was edited by: Uma

Read only

Former Member
0 Likes
1,033

Change the code as follows.

SUBMIT RSBDCSUB

WITH MAPPE GROUP

WITH fehler = ' '

AND RETURN.

Read only

Former Member
0 Likes
1,032

Hi Uma,

Please try to change like this.

SUBMIT RSBDCSUB <b>WITH MAPPE = GROUP</b> 
                AND RETURN.

and here is another example codes.

  SUBMIT rsbdcsub WITH mappe EQ 'RPTELVFI'
                  WITH von EQ sy-datum
                  WITH bis EQ sy-datum
                  WITH fehler EQ space
                  EXPORTING LIST TO MEMORY
                  AND RETURN.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,032

Hi Uma,

After BDC_CLOSE function, write following statment. This will execute BDC session in background.

submit rsbdcsub

with mappe = group "group name

with z_verarb = 'X'

with fehler = ' '

with logall = 'X'

exporting list to memory

and return.

Cheers,

Vikram

Pls reward for helpful replies!!