Skip to Content
0
Jul 17, 2018 at 09:02 AM

Purchase Order Response(POR) document created with incorrect quantity

89 Views

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