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 do you run the session programatically with out going to tr.codes?

Former Member
0 Likes
541

when we go with BDC sessions what code should we write, to run session programatically,

i.e manually?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
522

Hi,

If you dont want to run a BDC from SM35 then use the 'CALL TRANSACTION' method.

Regards,

Sowmya.

4 REPLIES 4
Read only

Former Member
0 Likes
522

If I got you right, you do not want to go to SM35 and run the session. Instead you want to run from program. If this is the case then we have understand the way Sessions work.

Session method is intented to have a two step execution, where the creation of session is the first phase and execution of session is the second phase. This is mainly to have a centralized control over the Postings made in the SAP system.

Hence, if session method is used, then it is always 2 step. We cannot programatically run the session. Instead u can use CALL TRANSACTION

Naveen

Read only

Former Member
0 Likes
523

Hi,

If you dont want to run a BDC from SM35 then use the 'CALL TRANSACTION' method.

Regards,

Sowmya.

Read only

former_member404244
Active Contributor
0 Likes
522

Hi,

Please go through the below link..

http://aspalliance.com/1130_Batch_Data_Communication_BDC_in_SAP_R3

regards,

nagaraj

Read only

Former Member
0 Likes
522

Hi

Use this syntax

SUBMIT ZRMB_MM_INV_PO1(your prg name) AND RETURN

WITH P_VBELN = WA_INV-VBELN (parameters).

Cheers