on 07-11-2014 10:31 AM
Hello Gurus,
I updated a PO in SAP by calling the Bapi. It displays the error:
com.syclo.sap.mm.steplet.POUpdateSteplet::throwExceptionToClient::1513::POUpdateSteplet - Document does not exist |
I checked on SAP and found the PO there. And in the log file, the PONumber, Company code are sent to the server. Then why It throws the above exception.
I spent a day but cannot find out what happen to the PO. Please help me. Thank you very much.
Edit: Even though I hard coded the PO Number, it still display the error.
JCO.Structure header = _imports.getStructure("IS_POHEADER");
String poNumber = user.getString("transaction.PONumber");
setValue(header, log, "PO_NUMBER", poNumber);
String companyCode = user.getString("transaction.CompanyCode");
setValue(header, log, "COMP_CODE", companyCode);
String purchaseOrg = user.getString("transaction.PurchaseOrganization");
JCO.Structure headerX = _imports.getStructure("IS_POHEADERX");
setValue(headerX, log, "PO_NUMBER", poNumber);
setValue(headerX, log, "COMP_CODE", "X");
PH Ngu,
What product and version are you customizing? What BAPI are you running to do the update?
Jason Latko - Senior Product Developer at SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jason,
I didnt customize anything. I write the java backend code from the scratch.
The BAPI wrapper is writen and deployed on SAP agentry framework. It receives ES_poheader structure as an input and update the PO based on PONumber. It seems that the bapi cannot read the PONumber sent by Agentry app.
we run the BAPI on SAP agentry framework and it can update the PO correctly with the parameters input manually.
I dont know why it cannor recognize the PONumber sent from Agentry.
PH Ngu,
I thought you said it didn't work even when you hard-coded the PO number in the java?
Are you saying that user.getString("transaction.PONumber"); is returning a blank string? If that is the case, then your transaction properties are set up incorrectly in the editor.
Jason Latko - Senior Product Developer at SAP
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.