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

Automatic processing of Program in background when table gets an entry

sreeramkumar_madisetty
Active Contributor
0 Likes
545

Hi Friends,

I have a program : ZXXXX.

I have requirement that whenever user adds an entry to the table : ZYYY(i.e when a new entry is added for the table : ZYYY),the program ZXXXX has to be processed in background mode.

Please suggest how we can achieve this requirement.

Regards,

Sree

3 REPLIES 3
Read only

Former Member
0 Likes
512

If you have a maintenance view for the table maintenance modify the event 02 after save to call your program

Read only

Former Member
0 Likes
512

Hi,

Create table maintenence generator for ZYYY.

Then go to table maintenence generator -> environment -> modifications -> envents

Click on new entries.

Give event type as 05.Give routine name and click on create option.

It will take you to that routine.

In this routine call program ZXXXX using SUBMIT statement. It will execute your probram in background mode for every new entry.

Thanks.

Read only

Former Member
0 Likes
512

Hi Sreeram,

You can use the venets in Ztable.

You can make use of On Save event.

Whe ever user enters a new entry and clicks on Save ....your program will get triggered in teh background.

To execute a program in Background.

1) CALL TRANSACTION... IN BACKGROUND TASK with the function module actually submitting the report OR

2) SUBMIT report... VIA JOB.. AND RETURN with use of the JOB_OPEN and JOB_CLOSE function modules

For Reference :-

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609

Regards,

Kittu

Edited by: Kittu on Mar 17, 2010 9:06 AM