09-29-2008 10:41 AM
creating bapi for purchase order...
getting this error ???
No instance of object type PurchaseOrder has been created. External reference:
why this error is coming
09-29-2008 10:53 AM
Please make sure that you are passing -
Company Code
Purchasing Document Type
Account Number of the Vendor
Purchasing Organization
Purchasing group
Short text
Material Group
Plant Table for National (Centrally Agreed) Contracts
G/L Account Number
Cost Center
Controlling Area
Along with servies of PO.
Once I faced the same problm beacause I passed wrong data to BAPI. Check if all values are correct.
Regards,
Aparna Gaikwad
09-29-2008 10:53 AM
Please make sure that you are passing -
Company Code
Purchasing Document Type
Account Number of the Vendor
Purchasing Organization
Purchasing group
Short text
Material Group
Plant Table for National (Centrally Agreed) Contracts
G/L Account Number
Cost Center
Controlling Area
Along with servies of PO.
Once I faced the same problm beacause I passed wrong data to BAPI. Check if all values are correct.
Regards,
Aparna Gaikwad
09-29-2008 10:54 AM
Hi
Can you let us know which BAPI you are using
if you are using BAPI_PO_CREATE1 then in this TAX field is mandatory so make sure that you have filled this field
Regards
Pavan
09-29-2008 11:08 AM
09-29-2008 11:34 AM
Hi Ankesh ,
This error normally occurs when you dont pass all the mandatory fields to the BAPI or else the mapping you have done is not proper.....
so the po is not created...
hence this error is returned...
just check it again
09-29-2008 11:43 AM
Hi Ankesh,
While filling the values in the fields of the structure make sure that you use conversion_routines for the fields required or atleast match the field length by using UNPACK statement.
Thanks
Sudharshan
09-29-2008 11:56 AM
09-29-2008 12:06 PM
Hi Ankesh,
For e.g some field length in the structure of BAPI is say 10 and the data you are inserting is only of length 6 then pad 4 zeroes and then pass the value.
e.g abcd(10)
abcd='123456'.
unpack abcd to abcd
will result to 0000123456.
Thanks
Sudharshan