Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

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

$
0
0

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


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>