Skip to Content
0

Bbp_get_status_2 not updating PO history in SC

Jan 08 at 10:50 AM

44

avatar image

Hello experts,

I have recently worked on custom program to process PR line items to existing PO’s line item using BAPI for PO Change.

Now, when I execute BBP_get_Status_2 then program is not picking up the PO information from ECC

But, if I edit the same PO using ME22N then BBP_get_status_2 works fine

Is there any setting I am missing here in classic scenario

Regards

Manish

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Ricardo Cavedini
Jan 10 at 06:07 PM
0

Hello,

Perhaps something is not being updated by your program, that is only updated when changing the PO via ME22N.
You can try to debug BBP_GET_STATUS_2, by putting a breakpoint in B31I_STATUS_READ.

Here, SRM calls BBP_STATUS_READ in ECC, which is responsible for bringing the follow-on document relationships.
You can see within this function what is the difference between these two scenarios.

Regards,
Ricardo

Share
10 |10000 characters needed characters left characters exceeded
Manish Agrawal Apr 11 at 01:07 PM
0

Thanks Ricardo... I somehow missed to reply earlier but below are my findings:

I tried to debug BBP_GET_STATUS_2, by putting a breakpoint in 'B31I_STATUS_READ' -> CALL FUNCTION 'BBP_STATUS_READ'

Laded up at 'FORM check_if_po'

This contains 'DETERMINE_INTROW' method that is failing PO based on NUll PLN_PACKNO & PLN_INTROW variable.

Not sure, what am I missing.

I passed following data and PO line item for Service is getting created:

  1. If EBAN-PSTYP is '9' i.e. the line item is a Service Item then do the following mapping:

    1. POITEM

      1. PO_ITEM==<Last item number of the PO and add 1> / If there is any other item being added then increment that number by 1
      2. ITEM_CAT==9
      3. ACCTASSCAT==<EBAN-KNTTP>
      4. PREQ_NO==<PR Number>
      5. PREQ_ITEM==< PR Line Item Number>
      6. PCKG_NO==<EBAN- PACKNO>
    2. POITEMX

      1. PO_ITEM==<Same Number passed in PO_ITEM>
      2. PO_ITEMX==X
      3. ITEM_CAT==X
      4. ACCTASSCAT==X
      5. PREQ_NO==X
      6. PREQ_ITEM==X
      7. PCKG_NO ==X
    3. Pass PR number to table ML_ESLL- EBELN and get the data required for POSERVICES

      1. In First Line map the following fields from ML_ESLL Table

        1. PCKG_NO==ML_ESLL-PACKNO
        2. LINE_NO==ML_ESLL-INTROW
        3. OUTL_IND==ML_ESLL- PACKAGE
        4. SUBPCKG_NO==ML_ESLL- SUB_PACKNO
      2. In Second Line map the following fields from ML_ESLL Table

        1. PCKG_NO==ML_ESLL-PACKNO
        2. LINE_NO==ML_ESLL-INTROW
        3. EXT_LINE==ML_ESLL-EXTROW
        4. QUANTITY==ML_ESLL-MENGE
        5. BASE_UOM==ML_ESLL-MEINS
        6. UOM_ISO==ML_ESLL-MEINS
        7. GR_PRICE==ML_ESLL-TBTWR
        8. SHORT_TEXT==ML_ESLL-KTEXT1

Any other field I need to pass?

Thanks & Regards

Manish

Share
10 |10000 characters needed characters left characters exceeded