cancel
Showing results for 
Search instead for 
Did you mean: 

Change Workstatus with BPF step completion using BADI

Former Member
0 Kudos

Hi Experts,

I have a requirement of changing Workstatus as soon as the user clicks on “Submit/Approve/Reject” button from the BPF.

We are trying to implement the same by referring to the thread

Now the thing is, we have written the BADI referring above thread which needs to be pass with some parameters(Owner & Context Members).

Our concern is how to pass active context members to BADI, and how to trigger the same from the Submit/Approve/Reject button in BPF?

Is it a manual invocation through script/DM, or is there any other way?

Since I am new to BPC BADI’s and requirement is urgent, please help………

Thanks in advance

Priyanka Jagtap

Accepted Solutions (1)

Accepted Solutions (1)

bishwajit_das
Active Contributor
0 Kudos

We have "UJ_BPC_BPF_SUBMIT" standard BADI which gets triggered from the BPF when the step SUBMIT is executed.So it is automatically triggerd.

The context and the owner ID will flow to the BADI from the BPF itself, just that you have to pass the Model ID, Environment ID, Driving Dimension member, Step Order(which  you will find in the Instance Table)

Thanks & Regards,

Bishwajit

Former Member
0 Kudos

Hi Bishwajit Das,

I am in similar situation and never implemented this BAdI before. will you be able to share some sample code to deal with this please?

Regards,

Surya

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi BPC/BADI Experts,

Any Inputs on this?

Please reply.......................

former_member191765
Active Participant
0 Kudos

Its a bit complicate,

Look the parameters marked above in debug, you will get completely  information you are looking for.

The populate parameter.. lt_dim_mem

Former Member
0 Kudos

Hi Anjan,

I referred to the below link for debug:

Followed following steps:

1. Logged in to BPC client using user X.

2. Went to the page where BPF step needs to be submitted.

3. Logged in to SAP GUI and set a breakpoint in class CL_BPC_REST_RES at line 56 using same user X.

I have created Enhancement Implementation for BADI UJ_BPC_BPF_SUBMIT.

Filters provided are:

APPL_ID = ABC

APPSET_ID = XYZ

DRV_DIM_MEM = 0166

STEP_ORDER = 1.

In "IF_UJ_BPF_SUBMIT_LOGIC_HANDLER~EXECUTE_SUBMIT_LOGIC" method i have written break-point.

When i clicked on SUBMIT, error appears as

I tried with and without filter as mentioned in

Please help. I am not able to debug and move ahead.

bishwajit_das
Active Contributor
0 Kudos

Have you created all these in BPC :-

APPL_ID = ABC

APPSET_ID = XYZ

DRV_DIM_MEM = 0166

STEP_ORDER = 1.

And did you call the method inside a TRY ...CATCH...?

Former Member
0 Kudos

Hi,

Yes we have created all the above stated in BPC.

Now i am able to get debug session. Will now dig further and see.

Thanks   and Anjan for your help.

bishwajit_das
Active Contributor
0 Kudos

Welcome.... &

Anywz...close the discussion if you got your solution...Any help let me know.

Regards,

Bishwajit

Former Member
0 Kudos

Hi,


I am in similar situation and never implemented this BAdI before. will you be able to share some sample code to deal with this please?


Regards,

Surya