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_CONTRACT_CREATE

Former Member
0 Likes
835

Hi all,

I have create a purchasing contract with BAPI_CONTRACT_CREATE. The contract has been created correctly, but when i try asssig this contract to te RDA from ME22N ,It is not in the list of attributable contracts.

The item field that i value for bapi (item) are:

MOVE f_posizione-evrtp TO f_item-item_no .

MOVE f_posizione-txz01 TO f_item-short_text.

MOVE f_posizione-ematn TO f_item-material.

MOVE f_posizione-werks TO f_item-plant.

MOVE f_posizione-lgort TO f_item-stge_loc.

MOVE f_posizione-matkl TO f_item-matl_group.

MOVE f_posizione-epstp TO f_item-item_cat.

MOVE v_ktmng TO f_item-target_qty.

MOVE f_posizione-meins TO f_item-po_unit.

MOVE f_posizione-bprme TO f_item-orderpr_un.

MOVE v_netpr TO f_item-net_price.

MOVE f_posizione-peinh TO f_item-price_unit .

MOVE f_posizione-knttp TO f_item-acctasscat.

MOVE f_testata-lifnr TO f_item-supp_vendor.

MOVE f_posizione-netpr TO f_item-net_price

MOVE f_posizione-bpumn TO f_item-conv_den1.

MOVE f_posizione-bpumz TO f_item-conv_num1.

MOVE f_posizione-kzabs TO f_item-ackn_reqd.

MOVE f_posizione-prsdr TO f_item-prnt_price.

MOVE f_posizione-wepos TO f_item-gr_ind.

MOVE f_posizione-repos TO f_item-ir_ind.

MOVE f_posizione-webre TO f_item-gr_basediv.

MOVE f_posizione-bstae TO f_item-conf_ctrl.

APPEND f_item TO t_item.

Thanks.

Laura.

2 REPLIES 2
Read only

Former Member
0 Likes
574

Hi Laura,

I hope you have called BAPI_TRANSACTION_COMMIT after your BAPI call.

Tables ITEMX have been populated.

Regards

Praveen

Read only

0 Likes
574

Yes , i have populate Itemx anche call Bapi transaction commit.

Thanks.

Laura