Application Development and Automation 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: 
Read only

BAPI_PO_CREATE1 account assignment mandatory error

Former Member
0 Likes
594

Hi Experts,

I am using BAPI_PO_CREATE1 for creating POs from a file

While creating, I am getting the following error

"Account assignment mandatory for material". The materials I am using in the file do not have account assignment category.

And not linked with any cost center or accounting.

Then why the BAPI is asking for account assignment?

While creating PO manually using ME21N transaction, I am not getting any error for the materials in the file. I guess while populating data into BAPI, there is some tweak to be done to avoid this error. Please suggest

Thanks

Ricky

2 REPLIES 2
Read only

Former Member
0 Likes
472

anybody?

thanks

Read only

Former Member
0 Likes
472

Hello,

Can you checkup the format of material just before submission to BAPI in debugger? It is in table BAPIMEPOITEM-MATERIAL. Probably, you need to use conversion routine CONVERSION_EXIT_MATN1_INPUT.

Thanks,

Venu