cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase Order Response(POR) document created with incorrect quantity

Former Member
0 Kudos
645

Hello,

I am facing issues while creating Purchase Order Response(POR) document.

We are using custom Fiori app to create a POR document.

Below are the steps that we are following:

1. Create a Purchase Order with quantity=10 and order it.

2. Create a POR document for this PO. 1st POR document has correct quantity(i.e 10).

3.Now change the quantity in PO to 20 and re-order it and create a POR document for the new version of the PO.

The issue that we are facing is that the quantity in 2nd POR is 10 instead of 20. We are passing the active header guid which has quantity=20 but still the POR created is having quantity=10.

Backend logic -

While creating a POR document through custom Fiori application, we are using below method:

CALL METHOD /sapsrm/cl_pdo_bo_por=>create_new_instance

Could you please help us out with this issue.

Regards,

Rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Summer,

Thanks for the response. I am passing the current active GUID of the PO but still it is taking the old quantity. The quantity in active version of the PO is correct but somehow in POR it's incorrect.

Regards,

Rahul

summer_wang
Advisor
Advisor
0 Kudos

Dear Rahul,

I am not sure about the background of the custom Fiori, but I assume it is not using XML to create SRM po response like from SUS .

I think it is similar to create PO response manually in POWL.

When creating PO response, /SAPSRM/CL_PDO_BO_POR~CREATE_PCO_DB is call, in which

method GET_PO_DETAILS gets PO details. You need to ensure the Guid passed to the method is the correct one. The active version of the PO with quantity = 20 (Change version with qty 20 is already successfully copied to active version and transferred to

ECC.).