Skip to Content
0
Former Member
Mar 26, 2009 at 10:33 AM

BAPI_SALESORDER_CREATEFROMDAT2

56 Views

Hi,

i am using BAPI_SALESORDER_CREATEFROMDAT2 to create an order with ref(Quotation number).

and i am passing

bapi_head-DOC_TYPE = 'ZORD'.

bapi_head-sales_org = '1000'.

bapi_head-distr_chan = '10'.

bapi_head-division = '20'.

bapi_head-REF_DOC = '0020000002'.

bapi_head-REFDOC_cat = 'B'.

bapi_item-material = 'T0001' .

bapi_item-TARGET_QTY = '20.000'.

bapi_item-REF_DOC = '0020000002'.

bapi_item-REF_DOC_IT = '000020'.

bapi_item-ref_doc_ca = 'B'.

append bapi_item.

bapi_ordpart-partn_role = 'AG'.

bapi_ordpart-partn_numb = '0000000011'.

append bapi_ordpart.

it is created successfully..but quantity is not stored in the table, as well in the transaction.

Can anybody help me...?