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: 

Running a session from the zprogram

Former Member
0 Kudos

Hi All,

I want to create a BDC(session Method).

This program should have the following things-

1.Should Create and run the session instead of processing it from transaction SM35.

2.The output of the program should display the error log of the session.

3. This error log should be sent to concerned persons as mail.

Is it possible to do it in a single program.

Thanks in advance.

Regards

Satish.

4 REPLIES 4

athavanraja
Active Contributor
0 Kudos

Yes it is possible.

for point no. 1 use program <u><b>rsbdcsub</b></u>

reading logs and sending mail are also possible.

If you have any specific question please do let us know.

Regards

Raja

Former Member
0 Kudos

Hi Satish,

If you want to do all this from one program why don't you use CALL TRANSACTION and then if it fails add the session to the SM35 queue?

With this you can:

1 Create and run the transaction from the program using CALL TRANSACTION

2 Display the error log (by looping through the messages table issued from CALL TRANSACTION)

3 Issue an email with the error messages (again by using the messages table).

Then, if you want to keep a BDC session in SM35 for later processing you could <b>submit it to the queue only in the event that the CALL TRANSACTION failed </b>. If you wanted to leave this in error status you could then submit the program RSBDCSUB to process the session.

Hope that helps.

Cheers,

Brad

0 Kudos

Hey Brad,

You here on a Sunday as well? Man! I see how enthusiastic you are !! Hope to catch some of it

Keep it Up !!

Regards,

Anand Mandalika.

0 Kudos

Hi Anand,

I have about 1600 points to catch up!!!!

Actually, thought I would do my bit by helping those in need, or is it just that the weather is not so nice today in Paris so I am stuck inside with not much to do?

Brad