cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 MEPO 085 error

ogrezear
Member
0 Kudos

I am using UIPATH BAPI library to call BAPI_PO_CREATE1.

After calling the function I get the following result in the RETURN list:

List<BapiRet2>(4) 
{
  BapiRet2 
  {
    Field="",
    Id="W5",
    LogMessageNumber="000000",
    LogNumber="",
    Message="Please enter items first",
    MessageVariable1="",
    MessageVariable2="",
    MessageVariable3="",
    MessageVariable4="",
    Number="005",
    Parameter="BAPIMEPOITEM",
    Row=1,
    System="LS600",
    Type='E' 
  },
  BapiRet2 
  {
    Field="",
    Id="BAPI",
    LogMessageNumber="000000",
    LogNumber="",
    Message="No instance of object type PurchaseOrder has been created. External reference:",
    MessageVariable1="PurchaseOrder",
    MessageVariable2="",
    MessageVariable3="",
    MessageVariable4="",
    Number="001",
    Parameter="POHEADER",
    Row=1,
    System="LS600",
    Type='E' 
  },
  BapiRet2 
  {
    Field="",
    Id="06",
    LogMessageNumber="000000",
    LogNumber="",
    Message="Document contains no items",
    MessageVariable1="",
    MessageVariable2="",
    MessageVariable3="",
    MessageVariable4="",
    Number="010",
    Parameter="POHEADER",
    Row=1,
    System="LS600",
    Type='E' 
  },
  BapiRet2 
  {
    Field="",
    Id="MEPO",
    LogMessageNumber="000000",
    LogNumber="",
    Message="Check item number 00010 in table POITEMX",
    MessageVariable1="00010",
    MessageVariable2="POITEMX",
    MessageVariable3="",
    MessageVariable4="",
    Number="085",
    Parameter="POHEADER",
    Row=1,
    System="LS600",
    Type='E' 
  }
}

Can anyone help me debuging this?

If you need any other info let me know. This is the data that I am curently sending:

POHEADER:
poHeaderRow["COMP_CODE"] = "RO03";
poHeaderRow["DOC_TYPE"] = "ROR";
poHeaderRow["VENDOR"] = "RO17042060";
poHeaderRow["LANGU"] = "RO";
poHeaderRow["LANGU_ISO"] = "RO";
poHeaderRow["PMNTTRMS"] = "0006";
poHeaderRow["DSCNT1_TO"] = "30";
poHeaderRow["PURCH_ORG"] = "AP30";
poHeaderRow["PUR_GROUP"] = "G30";
poHeaderRow["CURRENCY"] = "RON";
poHeaderRow["CURRENCY_ISO"] = "RON";
poHeaderRow["EXCH_RATE"] = "1";
poHeaderRow["VAT_CNTRY"] = "RO";
poHeaderRow["VAT_CNTRY_ISO"] = "RO";

POHEADERX
data_Row["COMP_CODE"]="X";
data_Row["DOC_TYPE"]="X";
data_Row["VENDOR"]="X";
data_Row["LANGU"]="X";
data_Row["LANGU_ISO"]="X";
data_Row["PMNTTRMS"]="X";
data_Row["DSCNT1_TO"]="X";
data_Row["PURCH_ORG"]="X";
data_Row["PUR_GROUP"]="X";
data_Row["CURRENCY"]="X";
data_Row["CURRENCY_ISO"]="X";
data_Row["EXCH_RATE"]="X";
data_Row["VAT_CNTRY"]="X";
data_Row["VAT_CNTRY_ISO"]="X";

POITEM
data_Row["PO_ITEM"]="00010"; 
data_Row["MATERIAL"]="205184";
data_Row["PLANT"]="1300";
data_Row["STGE_LOC"]="AD20";
data_Row["QUANTITY"]=1;
data_Row["NET_PRICE"]=11;

POITEMX
data_Row["PO_ITEM"]="00010";
data_Row["PO_ITEMX"]="X";
data_Row["MATERIAL"]="X";
data_Row["PLANT"]="X";
data_Row["STGE_LOC"]="X";
data_Row["QUANTITY"]="X";
data_Row["NET_PRICE"]="X";

is verry stange that everything seems to work fine if I run sthe transaction in the SE37 interface. But when I am calling it remotely from c# it gives that error.

moshenaveh
Community Manager
Community Manager
0 Kudos

Welcome to the SAP Community. Thank you for visiting us to get answers to your questions.

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see https://community.sap.com/resources/questions-and-answers, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html, as that will help you when submitting questions to the community.

I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.

Now for some specific suggestions on how you might improve your question:

* Outline what steps you took to find answers (and why they weren't helpful) -- so members don't make suggestions that you've already tried.

Should you wish, you can revise your question by selecting Actions, then Edit.

The more details you provide (in questions tagged correctly), the more likely it is that members will be able to respond.

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

Accepted Solutions (0)

Answers (1)

Answers (1)

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

This can have several possible causes. See SAP note 206068 for explanations and solutions to all of them.