I am trying to use BAPI_PO_CHANGE to change PO quantity and execution ran successul but it is not changing PO quantity .
when i checked Src logs this are two messages i received
Field= Id=MMPUR_BASE LogMessageNumber=000000 LogNumber= Message=Function “Change Purchase Order” Performed in Test Run MessageVariable1= MessageVariable2= MessageVariable3= MessageVariable4= Number=053 Parameter=POHEADER Row=1 System=DS4CLNT120 Type=I
Field= Id=06 LogMessageNumber=000000 LogNumber= Message=Document 1 does not exist MessageVariable1=1 MessageVariable2= MessageVariable3= MessageVariable4= Number=019 Parameter=POHEADER Row=1 System=DS4CLNT120 Type=E
Log message 1 seems to be ok but Log message 2 says Document1 doesnt not exist .
I am passing PO number and every other details but still it keep saying that
Please help me and guide me where i am wrong
this is how my BAPI Excel looks, only mentioning POHeader sheet here
the first message does not indicate things are o.k. It just tells you which line in your Excel the second message with Type=E relates to. In your case this means there is no PO in SAP which can be changes.
This is an error which depends purely on the dat in your SAP system, therefore I can only give some general advise.
Check that the PO exists for the company specified.
To minimize the risk of a missmatch for an update besides the PO number you should only provide data which should be changed. Means for which you did set the X flag in e.g. POHEADERX. SAP will dissregard data provided in all other columns, except of course the PO_NUMBER.
please try to clear all values from your Excel and keep just PURCHASEORDER on the sheet BAPI_PO_CHANGE plus the quantity information on POITEM, plus of course the flag on the sheet POITEMX.