Skip to Content
Author's profile photo Former Member

Auto update transaction status using Actions and Action Monitor

Detailed steps for automatic change of the Status of a transaction using SAP Actions and Action Monitor –

SAP Functionalies used –

1.Action Profiles

2.Batch job scheduling using Action Monitor

Example illustrated below – Change of Status of Appointment from OPEN to CLOSED

1) Create Actions with Wizard –

/wp-content/uploads/2013/11/1_316369.jpg

2) Use Method Call

/wp-content/uploads/2013/11/2_316496.jpg

3) Use method –  SET_DOCUMENT_STATUS ;

4) Processing time – Processing using selection report

/wp-content/uploads/2013/11/3_316497.jpg

5) Enter Element / Name, Structure and Field. This data is very essential and please key in these values only.

/wp-content/uploads/2013/11/4_316498.png

6) Go to Initial Value , Maintain initial value as – FINI

/wp-content/uploads/2013/11/5_316520.png

7)  Go to change Actions and Maintain Start Condition in Change Actions and Conditions –

Capture.PNG

8) Start Condition – To Date = Current Data of Application server

/wp-content/uploads/2013/11/10_316559.png

Capture.PNG

7) Assign ACTION Profile to Transaction Type –

N2.png

8) Status Profile of the Transaction Type –

Capture.PNG

9) Create an Appointment

Capture.PNG

10) Enter Activity Partner –

Capture.PNG

11) Save the Transaction , The Status is OPEN

Go to Actions tab and execute the Action manually –

Action is processed –

Capture.PNG

12) Go to details tab, on saving – Status changes to CLOSED.

Capture.PNG

13) Create 2 appointments and save with Start date as today  and  with end date today and 2 Activities  with start date tomorrow and end date tomorrow

Using Action Monitor :

Using Action Monitor and Background processing to automatically change Status for the 2 Activities with end date today –

1) Go to Action Monitor – Tcode – CRMC_ACTION_JOB

Capture.PNG

2) Enter Action Profile and save –

3) Create Variant and put Only for background processing and click SAVE . Please make sure to select Processing without DIALOG as this runs automatically in background.

Capture.PNG

Capture.PNG

4) Go to SM36 ( For scheduling background jobs) –

   Create job and save –

Capture.PNG

Enter Program – RSPPFPROCESS (Program name for Action Monitor) and choose variant created and save –

Capture.PNG

5) Go back, Click on Job Selection – Put job name and check job status as scheduled and Click Execute –

Capture.PNG

6) Check the box next to the job and click on Release –

Capture.PNG

7) Select processing time as immediate and save to check. We can set the job periodically to run at certain intervals and auto-close all the activities which meet    the criteria without any manual intervention.

Capture.PNG

Capture.PNG

8) The job gets Executed –

Capture.PNG

The Status for the 2 transactions with end date as today has changed to CLOSED while for Transactions where Start condition is not met it has not changed.

Authors –

Neha Manikumar

Apoorv Dhawan

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.