Skip to Content
avatar image
Former Member

PO is creating in Held status in SAP SRM

Hi experts,

I have developed a program to create PO in SRM with BBP_PD_PO_CREATE FM, our SRM system is using Extended classic scenario. The program is able to create the PO but in 'Held' status. when I opened the PO it is showing an error message 'User does not exist', message no is 557. Since this message is raising outside of my program I am not able to check it in debugging.

1. I want to avoid the error message and create the PO in 'Awaiting approval' status. My user id is valid.

2. Is there any function module to change the status from held to Awaiting approval? I tried with FM 'CRM_STATUS_UPDATE' and 'BBP_PD_PO_STATUS_CHANGE'.

Please suggest some solution.

Regards,

Dileep.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 29, 2017 at 07:16 PM

    Hi,

    The FM BBP_PD_PO_STATUS_CHANGE is returning a message as 'Active status of document purchase order XYZ is Held. No changes are possible' I am passing the details like below.

    Guid = PO GUID

    Activity = 'TREL'

    Save = 'X'

    Test = ' '

    Is there something I am missing? Any guess?

    Regards,

    Dileep.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 28, 2017 at 08:37 PM

    Hi Dileep,

    Actually, the only way to change the PO status from held to awaiting approval is when PO does not have any error message.
    In your case, since "user does not exist" is being raised, PO will always be created in held and it won't be possible to order it.

    Try to see where this message is coming. From transaction BBP_PD, press "check again" link in the bottom of the screen and see the message class for "user does not exist". If it is a message type "BBP_PD", you can put a breakpoint in function module BBP_PD_MSG_ADD and check the document again from BBP_PD.

    Breakpoint should stop and you will see which user system is checking.

    Regards,
    Ricardo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      The issue was with the Data, I didn't pass the field SUB_TYPE in input which is causing the issue but didn't raise any error message, The PO was creating in Held status. What I understood was if there is any error with the data then the PO will be created in Held status.

      I got one more error message "User does not exist", it means the partner(vendor or ship to) does not exist in the org structure. check at org structure level(not in the DB level) if anybody face this error message.

      Regards,

      Dileep.