cancel
Showing results for 
Search instead for 
Did you mean: 

PO is creating in Held status in SAP SRM

P13599469
Explorer
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

P13599469
Explorer
0 Kudos

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.

ricardo_cavedini
Active Contributor
0 Kudos

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

P13599469
Explorer
0 Kudos

Hi Ricardo,

Thanks for your reply, There was an issue with the requester business partner(he is missing in org structure) which is causing the error, I fixed it and there are no error messages at all now. still Po's are creating in 'Held' status only. I tried t use some FM's to change the status but no use, Please suggest any FM or any other solution.

I want to change the PO status to 'Awaiting approval' or 'Ordered' status.

Thank you,

Dileep.

P13599469
Explorer
0 Kudos

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.