cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect item status shown in check status for rejected SC

laurent_burtaire
Active Contributor
0 Kudos

Hello,

I would like to have some advices regarding SC header status and SC item status update when SC is approved or rejected by an approver. Our SRM version is SRM 4.0 with SP SAPKIBKS13 for software component SRM_SERVER 5.0. We created a BAPI in order to allow users to approve (totally)/reject (totally) SC using a customer portal: this means approvers do not connect to SRM to approve/reject SC. This BAPI called by RFC uses function module BBP_PDH_WFL_DB_UPDATE_BACK.

Importing parameters used are:

1- IV_OBJECT_ID (SC number),

2- IV_OBJECT_TYPE (BUS2121),

3- IV_ACTION (H for reject or F for approve),

4- IV_OBJECT_CHANGED (empty for approval or rejection).

We noticed no differences between SC approbation directly in SRM or using customer portal.

When final approbation is done, approval status is "Approved by" and SC header/item status are also "Approved".

Nevertheless, for rejection, there is a delta between both possibilities.

Indeed, when rejection is done in SRM:

- SC total value displayed is zero,

- approval status displayed is "Rejected by",

- SC header status displayed is "In your inbox" due to task TS10407972 u2013 "Change Rejected Shopping Cart" from workflow WS10400051 u2013 "Final Proc. After Approval Alternative 2",

- SC item status displayed is "Rejected",

- in table CRM_JEST, active header system status is "Awaiting approval" u2013 I1015 (no item status exist).

But, when using our BAPI:

- SC total value displayed is the same as before rejection (its value does not becomes zero),

- approval status displayed is "Rejected by",

- SC header status displayed is also "In your inbox",

- but SC item status displayed is "Awaiting approval",

- in table CRM_JEST, active header system status is "Awaiting approval" u2013 I1015 (no item status exist).

For problem with total value is zero, i implemented OSS notes:

- 1155048 u2013 "Tax amount of rejected shopping cart becomes zero",

- 1157120 u2013 "Rejected shopping cart total value in 'check status' is zero",

but this did not solve this first issue.

Does anyone have an idea for this ?

For SC item status, i noticed that "Rejected" is displayed for item SC status if field DEDUCT_IND from table BBP_PDIGP is set.

I did not find what is the standard treatment to set this field when rejecting SC in BBPBWSP_SIMPLE transaction. How could i do to update this field using a standard FM in order to not have a delta regarding the way used to reject SC ?

Thank you. Laurent

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Techies,,

                         Please anyone explain  Why we get  BBP_PDH_WFL_DB_UPDATE_BACK

                         this in SE37 & what is this function module and what is the purpose.

                          please Help me out im new to it.

thanks


laurent_burtaire
Active Contributor
0 Kudos

Hello,

>

> (...)

> For problem with total value is zero, i implemented OSS notes:

> - 1155048 u2013 "Tax amount of rejected shopping cart becomes zero",

> - 1157120 u2013 "Rejected shopping cart total value in 'check status' is zero",

> but this did not solve this first issue.

> Does anyone have an idea for this ?

> (..)

Implementation of OSS note 1235171 - "Total value incorrect when all items are rejected" have solved this point.

Regarding item status, with FM BBP_PDH_WFL_WI_APPROVE and BBP_PDH_WFL_WI_REJECT (both called in FM BBP_PDH_WFL_DB_UPDATE_BACK ) , process is not the same when using importing parameters:

- IV_WORKITEM_ID (work item to be processed),

- IV_USER (User ID),

- IV_OBJECT_TYPE (BUS2121),

- IV_IN_DIALOG (empty),

and all others parameters empty (for FM BBP_PDH_WFL_WI_APPROVE 😞 first one updates item status whereas second one does not do the update.

I am still looking for standard additional process called after (or before) SC totally approved but not after (or before) SC totally rejected.

Regards.

Laurent.