I AM CREATING PURCHASE ORDER (ME21N) FROM BAPI ,
BAPI_PO_CREATE AND I AM GETTING FOLLOWING ERROR/
I have put 'U' in account assignment thats why it is showing 1st error and due to 1st error 2nd error is coming ..
when i am creating po manually then it is accepting 'U' but thru bapi it is throwing below error , plz help.
1 E ME069 Unknown account assignment not defined for use here 2 E 06010 Document contains no items
Amit Gujargoud replied
You may need to assign these fields only:*
Fill bapiekko ekko_b-doc_date = i_bedat. ekko_b-doc_type = i_bsart. ekko_b-co_code = i_bukrs. ekko_b-pur_group = i_ekgrp. ekko_b-purch_org = i_ekorg. ekko_b-agreement = i_konnr. ekko_b-vendor = i_lifnr. ekko_b-suppl_plnt = i_reswk.
Account assignment would be pick from material master automatically.
Edited by: Ámit Güjärgoüd on Sep 29, 2008 10:13 AM