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 TAX CODE

Former Member
0 Likes
691

Hi All

I'm using BAPI_POCREATE1 for creating purchasing order.

I have a problem with tax amount,

when I use the tax code "A2" for testing

the purchasing creation the answer is OK,

instead when I use the tax code "D2" (Non-deductible input tax)

the system show me this message

"In case of account assignment, please enter acc. assignment data for item " (message class 06 number 436)

I attach the code where I assigne the value in the structure bapimepoitem

FORM fill_poitem TABLES p_poitem STRUCTURE t_poitem

p_poitemx STRUCTURE t_poitemx

USING p_item STRUCTURE t_item

CHANGING p_packno.

CLEAR : p_poitem,

p_poitemx.

ADD 1 TO p_packno.

p_poitem-po_item = p_item-ebelp.

p_poitem-short_text = p_item-txz01.

p_poitem-plant = p_item-werks.

p_poitem-matl_group = p_item-matkl.

p_poitem-item_cat = p_item-pstyp.

p_poitem-acctasscat = p_item-knttp.

p_poitem-pckg_no = p_packno.

p_poitem-quantity = p_item-menge.

p_poitem-tax_code = p_item-mwskz.

p_poitem-srv_based_iv = c_flx.

APPEND p_poitem.

p_poitemx-po_item = p_item-ebelp.

p_poitemx-po_itemx = c_flx.

p_poitemx-short_text = c_flx.

p_poitemx-plant = c_flx.

p_poitemx-matl_group = c_flx.

p_poitemx-item_cat = c_flx.

p_poitemx-acctasscat = c_flx.

p_poitemx-pckg_no = c_flx.

p_poitemx-quantity = c_flx.

p_poitemx-tax_code = c_flx.

p_poitemx-srv_based_iv = c_flx.

APPEND p_poitemx.

ENDFORM. " fill_POITEM

Could you give me any suggest for solving this problem ?

Thanks in advance.

Saluti,

Andrea.

Edited by: Andrea Spaggiari on Dec 19, 2007 9:09 AM

2 REPLIES 2
Read only

Former Member
0 Likes
524

Someone can help me

or give me a suggest ?

Thanks.

Read only

0 Likes
524

hi Andrea,

you might need to add the tax code in the accounting data also.

Thanks

Smita sahay