Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
prabhjotsingh14
Active Participant


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.

Labels in this area