Skip to Content
avatar image
Former Member

Tips on enhancement in BBP_PDISC thru SOCO

Hi Experts,

I have a situation where i need to add a custom field to the standard shopping cart structure. I have added the field to BBP_PDISC structure. I have enhanced the SOCO_GAF_2 component. I have created a post-exit of the wddomodifyview of this component and called a custom update FM created by me to update the shopping cart with the custom field value. The commit work is called at an enhancement in the FPM component used in the SOCO. As my requirement is to update the field with the user/buyer name who processed this particular shopping cart to whichever document like PO,RFx or aution etc. Everything works fine. The custom field is updated with the user name who processed this cart.  The problem is, when there are more line items in the SC. After processing them as PO some gets the confirmation back from ECC and gets updated. But while some line items of the shopping cart gets the status ERROR in TRANSMISSION. Is it because of the commit work that i used locks the shopping cart?. if it is so how do i overcome this.

P.S. I have already tried DOC_CHANGE BAdI for this requirement which didnt work as only some fields are updated thru DOC_CHANGE when called through SOCO like partner number contracts etc.

Help me with a better design or get rid of the disabilities of this design that i have already used.

Looking forward for a reply. Happy to provide more information on request.

Thanks and Regards

Thri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 07, 2013 at 08:35 PM

    Hi Thri,

    Just a thought you mentioned everything is working fine and you are having issue with certain line items where it does not commit, Why don't you give some delay in the loop of each line item? Like 5 seconds or something....

    Thank you

    Ritesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ritesh,

      Thanks for replying/ showing some mercy on me. I always wanted to do the 5 sec delay after commit-work. But the functionals are not allowing us to put in any delay in it. As already the system is a real slow. I need to figure out a new design which convinces them. lot of PO's are created as the shopping carts are locked and ends up in error in transmission status falling again to sourcing cockpit. I think this is due to the background job that checks for the BO_OBJECT_ID etc in a shopping cart and if it didnt find one the SC is marked with sourcing flag thus ending up in SOCO.

      I have provided the Functionals to download the pay load of the PO confirmation and reprocess it again. and some more follow up activities. I couldnt figure out a correct design to do this. Also why did SAP did not allow PDISC fields to be updated in the SOCO.

      Hoping to get a reply from you

      Thri

  • avatar image
    Former Member
    Jan 09, 2013 at 10:18 PM

    Ritesh/All,

    I finally came to a conclusion that the error in transmission status is not due to my enhancement. As I commented out the code for it and processed SC's in buyers queue and still the issue persists. I also found that this error in transfer is happening only for the case where multiple shopping carts are clumped together and processed in buyers queue. But this time the BO_OBJ_ID,BO_OBJ_TYP etc fields are filled in but the cart still has the error in transmission. Any Idea where would be the problem?. In the mean time i am doing some research whether i can find anything thru SXMB_MONI. Help of any kind will be appreciated.

    Thanks in Advance

    Thri

    Add comment
    10|10000 characters needed characters exceeded