Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help with BAPI_PO_CREATE1

Former Member
0 Kudos

I can execute BAPI_PO_CREATE1 successfully in SE37 and create a Purchase Order.

However when calling the BAPI remotely, I get these messages:

  • No instance of object type Purchase Order has been created.  External reference:
  • PO Header Data still faulty
  • No master record exists for vendor 20220
  • The material 3000223 does not exist or is not activated
  • Can delivery be met?
  • Source not included in list despite source list requirement

In the PO Header, I am supplying:

  • COMP_CODE
  • DOC_TYPE
  • VENDOR
  • PURCH_ORG
  • PUR_GROUP
  • CURRENCY

In the PO Line Item, I am supplying

  • PO_ITEM
  • MATERIAL
  • PLANT
  • QUANTITY
  • PO_UNIT
  • AGREEMENT
  • AGMT_ITEM
1 ACCEPTED SOLUTION

Former Member
0 Kudos

Make sure you have run both the vendor number and the material through the appropriate conversion exits.

Rob

7 REPLIES 7

Former Member
0 Kudos

Make sure you have run both the vendor number and the material through the appropriate conversion exits.

Rob

0 Kudos

Rob,

That was it;  the old 0000... syndrome.

Now I am getting a message,  "Acccount assignment mandatory for material.... (enter acc. ass. cat.)"

Have you seen this message before?

0 Kudos

No, but it's telling you the material needs an account assignment category entered. So see if there is anywhere to add that.

Also check the long text of the message.

Rob

0 Kudos

According to the documentation, use the table POACCOUNT.

Maybe you should have a look at it.

Rob

0 Kudos

Where is this documentation to which you refer? 

Also, I have no table named POACCOUNT in my ECC.

0 Kudos

Never mind about the POACCOUNT table.  I found the documenation to what you were referring.  Thanks!!!

0 Kudos

For completeness sake, the documentation to which I was referring was the that for this BAPI.

Rob