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: 

Triggering a custom program after session is processed

Former Member
0 Kudos

Hi All,

I have created a session say SES1 .

Is it possible to trigger a custom program after the SES1 gets successfully processed?

Can anyone help me on this issue.

Thanks for your precious time.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In this scenario dont process the session SEC1 using SM35.

Create the background job with followed steps:

Step 1 : use the program : RSBDCSUB for submiting the session "SEC1" .

Step 2 : Custome tool ( Write a program for checking the session ststus , vased on the ststus we can wait till the session processed )

or we can write the same logic in your cusome program.

Step 3 : Call your custome program.

Hope this will be helpful.

7 REPLIES 7

hymavathi_oruganti
Active Contributor
0 Kudos

YES,

U CAN WRITE submit STATEMENT

Former Member
0 Kudos

hi

YES, YOU CAN DO THIS USING SUBMIT

You can call executable programs from other ABAP programs using the following statement:

SUBMIT <rep>|(<field>) [AND RETURN] [<options>].

You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program.

Message was edited by: Harikishore Sreenivasulu

Former Member
0 Kudos

HI ,

I want to automatically trigger the custom program after I process the created session(SES1) thro' the transaction SM35 in either foreground or background.

0 Kudos

Siva,

Hope its not possible to call after u process the session in SM35. But u can write a program where u can check the status of a session.

Based on the session u can try to trigger the custom program what u are looking exactly.

Thanks

Eswar

0 Kudos

May be you can check the status of your session in your code and then run the program if it is successful using SUBMIT.

0 Kudos

hi

Check the status of the session in the program itself.

if it is successful then call the custom program using SUBMIT

Former Member
0 Kudos

In this scenario dont process the session SEC1 using SM35.

Create the background job with followed steps:

Step 1 : use the program : RSBDCSUB for submiting the session "SEC1" .

Step 2 : Custome tool ( Write a program for checking the session ststus , vased on the ststus we can wait till the session processed )

or we can write the same logic in your cusome program.

Step 3 : Call your custome program.

Hope this will be helpful.