Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI for SO creation and change

hi

which BAPI can used for sales order creation and what are the mandatory fields required.

I would like to provide easy SO creation in portal so give me the essential input for SO creation.

Former Member
Former Member replied

Dear basheer,

You can use

BAPI_SALESORDER_CREATEFROMDAT2

mandatory fields are ,

clear iohead.

iohead-doc_type

iohead-sales_org

iohead-distr_chan

iohead-division

iohead-req_date_h

iohead-ship_cond

iohead-incoterms1

iohead-pmnttrms

iohead-accnt_asgn

iohead-pymt_meth

clear ipartner. refresh ipartner.

ipartner-partn_role = 'AG'.

ipartner-partn_numb = Sold to party.

append ipartner.

clear ipartner.

ipartner-partn_role = 'WE'.

ipartner-partn_numb = Ship to party.

append ipartner.

refresh : iitem, ibapischdl, ibapicond.

clear : iitem, ibapischdl, ibapicond.

iitem-itm_number = '10'.

iitem-material = material.

iitem-plant = Plant.

iitem-val_type

append iitem.

ibapischdl-itm_number = '10'.

ibapischdl-req_date = sy-datum.

ibapischdl-req_qty = Qty.

append ibapischdl.

saravanan

Edited by: k saravanan on Sep 22, 2008 4:21 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question