Skip to Content
Technical Articles
Author's profile photo Prabhjot Bhatia

Get runtime information of a process chain into DTP filter routine

Scenario :


Same DTP is included in different process chains.

When DTP process is triggered from any of the process chain, we have to find out the name of the process chain in DTP filter routine at run time.

Solution :

We know that whenever a process chain is triggered, SAP initiates lot of background jobs responsible for each process step.

For DTP_LOAD process step, background job BI_PROCESS_DTP_LOAD is executed with a run time generated job count.

This background job is responsible to execute program RSPROCESS with a dynamic program variant ( &<variant_id> ).

This dynamic variant contains the name of calling process chain so we have to first get the dynamic variant id and later, we can read the content of the variant.

Following are the coding steps that should be written in DTP Filter routine :

Step 1. Get Background Job Run time Info


Step 2.  Get the Dynamic Variant used in current background Job

Step 3.  Read Variant parameters

Step 4.  Get the running Process chain

Finally we got the calling process chain name in variable lv_chain_id.

Assigned Tags

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