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 salesorder

Former Member
0 Likes
394

i need to create a salesorder in .net application which should be posted in sap.for this we had connected sap and .net by sap.netconnectors.and we are using bapi_salesorder_createfromdat2 FM.In this FM we are having orders_header_in as mandatory parameter which is table parameter.inthat there are so many fields,but i dont require all those.how would i know in those which are mandatory and which are optional

1 REPLY 1
Read only

Former Member
0 Likes
277

In the documentation for this BAPI it mentions that the following fields are mandatory:

ORDER_HEADER_IN : DOC_TYPE Sales document type

SALES_ORG Sales organization

DISTR_CHAN Distribution channel

DIVISION Division

ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party

PARTN_NUMB Customer number

ORDER_ITEMS_IN..: MATERIAL Material number

Hope this helps.

Gill