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_CREATEFROMDAT2

Former Member
0 Likes
542

Hello,

How to create a Sales Order using this bapi. can anyone tell me what parameters should i pass to get the order created?

4 REPLIES 4
Read only

Former Member
0 Likes
498

Hi Geetha,

These are mandatory entries you should pass to the function module.

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

Ship-to party:

If no ship-to party is entered, use the following: Ship- to party = sold-to party.

If you get mesage type 'S' (success), then you should use

BAPI_TRANSACTION_COMMIT to commit the data to database.

regards,

ram

Read only

0 Likes
498

Hi,

I've full filled all require data and when I execute my BAPI everything goes good.

After a commit transaction, I've checked to a VA03 and unfortunately I don'' see any change.

What I mist ?

Regards

Read only

0 Likes
498

Hi Ram,

Can u please tell me the values that are to be passed for the fields DOC_TYPE, SALES_ORG, DISTR_CHAN, DIVISION, PARTN_ROLE, SOLD-TO-PARTY, PARTN_NUMB & MATERIAL NUMBER for BAPI_SALESORDER_CREATEFROMDAT2.

Ramesh

Read only

Former Member
0 Likes
498

Hi,

The Import fields are:

ORDER_HEADER_IN LIKE BAPISDHD1

The tables to be filled are:

ORDER_ITEMS_IN

ORDER_ITEMS_INX

ORDER_PARTNERS

ORDER_SCHEDULES_IN

ORDER_SCHEDULES_INX

ORDER_CONDITIONS_IN

ORDER_CONDITIONS_INX

ORDER_CFGS_REF

ORDER_CFGS_INST

ORDER_CFGS_PART_OF

ORDER_CFGS_VALUE

ORDER_CFGS_BLOB

ORDER_CFGS_VK

ORDER_CFGS_REFINST

ORDER_CCARD

ORDER_TEXT

ORDER_KEYS

EXTENSIONIN

PARTNERADDRESSES

Regards,

Tanveer.

<b>Please mark helpful answers</b>