cancel
Showing results for 
Search instead for 
Did you mean: 

Change Workstaus automatically when "Submit" or "Review" a BPF Activity

Former Member
0 Kudos

Hi Experts,

The question is related to "Change Workstaus automatically when "Submit" or "Review" a BPF Activity".

I know that there are some other threads opened discussing about this subject (like the thread described bellow)

http://scn.sap.com/thread/3514908

But this question is an specific doubt about "How to get context values" to pass to function responsible for change Workstatus (we implement logic described in thread "http://scn.sap.com/thread/3514908", passing specific values and it worked, but we couldn´t get context values specific from the BPF activity).

For example: In our scenario we have a model called "EXPENSES" and in this model we enabled Workstatus for the following dimensions:

Owner Dimension:

- COST_CENTER (Entity)
Other Dimension:

- CATEGORY (Category)
- DATA_SOURCE (Audit)
- PERIOD (Time)
    
In our BPF Template we have the following configuration:

Driving Dimension:

- COST_CENTER (Entity)
Other Dimensions:

- CATEGORY (Category
- COST_ELEMENT (Account)
- PERIOD (Time)
- DATA_SOURCE (Audit)
      
Looking at the scenario described above we can conclude that would be possible for us to get BPF activity context value to use to update Workstatus (through BAdIs and methods "UJ_BPC_BPF_SUBMIT" --> call method lr_work_status_mgr->update_work_status_locks with SUBMITTED WS and "UJ_BPC_BPF_REVIEW" in case of reject call method lr_work_status_mgr->update_work_status_locks with "Unlocked"status, as described in thread "http://scn.sap.com/thread/3514908").

The problem is that we couldn´t get context values from BPF activity (in thread "http://scn.sap.com/thread/3514908" is described that this values can be retrieved looking at "IR_STEP_RGN_OBJ", "IR_INST_OBJ" and "IR_TMPL_OBJ" parameters/objects but we couldn´t get them).

Can you help with a more detailed example or explanation about how get we get context values from BPF activity?

Thanks for your help.

Regards,

Danilo

Accepted Solutions (0)

Answers (1)

Answers (1)

Shrikant_Jadhav
Active Contributor
0 Kudos

Hi Danilo,

Please go through link,

hope it will be helpful.

Regards,

Shrikant