cancel
Showing results for 
Search instead for 
Did you mean: 

SRM - Stopping Sourcing for Shopping Cart For Created PO

former_member210252
Contributor
0 Kudos

Hi Experts,

We have requirement related to stopping Sourcing for the Shopping Cart Ordered.

1. Create Shopping Cart with Source of Supply and the QTY for Example is 10.

2. Order the Shopping Cart and the PO is created.

3. The Shopping Cart can be seen in Perform Sourcing in portal.

Now when I edit the PO Qty to 8, then Ordered  then we can see Ordered Qty as 8 and the Open Qty as 2 in Sourcing Cockpit. So our  requirement is when a PO is edited with change in the PO Qty and Ordered then we should not see the Sourcing Cockpit in the Perform Sourcing.

Can you please share your ideas if any to achieve this solution.

Regards,

Mohammed

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member223219
Participant
0 Kudos

Hi Rafi,

It was really useful.

Thanks.

Regards,

Kalpana.

konstantin_anikeev
Active Contributor
0 Kudos

Hi Rafi,

I suppose you may need to modify report BBP_GET_STATUS_2 - it sets shopping cart back to sourcing.

Best Regards

Konstantin

former_member210252
Contributor
0 Kudos

Hi Konstantin,

Thanks for your reply.

I have implemented the implicit enhancement from lines 1138 to 1160 with the below code

Data : i_refupdate TYPE STANDARD TABLE OF BBPS_SC_REFUPDATE,
         is_refupdate TYPE BBPS_SC_REFUPDATE.
         i_refupdate[] = et_sc_refupdate[].

      LOOP at i_refupdate INTO is_refupdate.
       if is_refupdate-SOURCE_REL_IND = 'X'.
        CLEAR: is_refupdate-SOURCE_REL_IND.
       modify i_refupdate[] FROM is_refupdate INDEX sy-tabix TRANSPORTING SOURCE_REL_IND .
      endif.
       ENDLOOP.
        et_sc_refupdate[] = i_refupdate[].

But still could see the Shopping Cart in Sourcing.

Could you please share if any things needs to be added plz.

Regards,

Mohammed

former_member210252
Contributor
0 Kudos

Hi,

We implemented code in BBP_GET_STATUS_2, but we are unable to debug this.

It's not seen in SM37 - background job list.

Any ideas....!!!!

Regards,

Mohammed

konstantin_anikeev
Active Contributor
0 Kudos

Hi Rafi,

do you use following selection criteria?

Best Regards

Konstantin

konstantin_anikeev
Active Contributor
0 Kudos

Hi Rafi,

we could have different versions of the report and line numbers can differs by us.

I would use a context

    IF h_index IS INITIAL.

      APPEND et_sc_refupdate.

    ELSE.

      MODIFY et_sc_refupdate INDEX h_index.

    ENDIF.

  ENDLOOP.

  SORT it_old_refdata BY reqno reftype.

  LOOP AT lt_reqref.

and insert the code between these 2 loops, make a loop via et_sc_refupdate.

And would use not a

CLEAR SOURCE_REL_IND

but

SOURCE_REL_IND = gc_clear_sourcing_flag.

Best Regards

Konstantin

former_member210252
Contributor
0 Kudos

Hi Konstantin,

As per the Implicit Enhancement we cannot add the lines as per the screen shot given  as there no implicit enhancement at these lines. We added only after the endloop of  lt_old_refdata_del.

The code is implemented after this.



Regards,

Mohammed

konstantin_anikeev
Active Contributor
0 Kudos

Hi Rafi,

You may need a modification here. The simpliest way is just to copy BBP_GET_STATUS_2 into Z-Report, make neccessary corrections and plan Z-Report as a job instead of standard Report.

Best Regards

Konstantin