Skip to Content
author's profile photo Former Member
Former Member

Automating Work status Change in BPF

Hi Experts. This question is regarding BPC 10.0 NW EPM Add-in SP 16.

Basically I want to know if it is possible to link Work status change to Submit/Approve/Reject actions in BPF?

I know that an option can be provided through "Related actions" in BPF to manually change the Work status. Is there any way to automate it without need for user intervention?


For ex.: For a given context, when a user clicks on Submit in BPF, Work status for that Context should change from "Default" to "Submitted" and so on.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Mar 07, 2014 at 09:43 PM

    Yes Its possible, we have implemented it. Pls. find sample code. Only thing you keep in mind is owner need to get and pass below, we are used default ID for lock and unlock.

    You need to implement this logic in BADI/Enhancement Spot - UJ_BPC_BPF_REVIEW or UJ_BPC_BPF_SUBMIT depending on your requirement

    * Get the Work Status



    is_user = ls_user

    i_appset = i_appset

    if_bypass_sec_check = abap_true

    RECEIVING r_manager = lr_work_status_mgr ).



    IMPORTING et_ujw_statcode_table = lt_workstates ).

    CATCH cx_ujw_work_status_error.


    * Build Dimention Members




    i_applid = i_appl_id "i_appset

    it_dim_mem = lt_dim_mem

    i_incl_children = lv_flag

    i_status = ls_workstates-status ).

    MESSAGE text-023 TYPE 'S'.

    CATCH cx_uj_static_check INTO lr_exception.

    * lcl_application=>set_message( lr_exception ).


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 07, 2014 at 06:47 AM

    Hi Colin,

    In theory it's possible using some badi, but I don't like the idea in general. User have to be able to send data multiple times...


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 12, 2014 at 02:57 PM

    Hi Former Member ,

    Can you please share your solution with us?

    We have similar requirement.

    Thanks in Advance ...



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.