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

sales order creation using RFC

Former Member
0 Likes
2,467

hi

my requirement is to upload flat file data from application server and create a sales order using rfc function module

sd_salesdocument_create .

i didnt found field sold-to-party (kunnr) in header structure i.e, bapisdhd1 structure and i think that is a mandatory field to create sales order.i have manually created salesorder via VA01 and i found sold-to-party as a mmandatory field.

plz do suggest..

reagards

sameer

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,509

The customer numbers must be in table parameter SALES_PARTNERS.

Did you try to use

- BAPI_SALESORDER_CREATEFROMDAT2 (from 46a)

- BAPI_SALESORDER_CREATEFROMDAT1 (from 40b)

- BAPI_SALESORDER_CREATEFROMDATA (from 31h)

same program inside, but released

Regards,

Raymond

hi

my requirement is to upload flat file data from application server and create a sales order using rfc function module

sd_salesdocument_create .

i didnt found field sold-to-party (kunnr) in header structure i.e, bapisdhd1 structure and i think that is a mandatory field to create sales order.i have manually created salesorder via VA01 and i found sold-to-party as a mmandatory field.

plz do suggest..

reagards

sameer

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,510

The customer numbers must be in table parameter SALES_PARTNERS.

Did you try to use

- BAPI_SALESORDER_CREATEFROMDAT2 (from 46a)

- BAPI_SALESORDER_CREATEFROMDAT1 (from 40b)

- BAPI_SALESORDER_CREATEFROMDATA (from 31h)

same program inside, but released

Regards,

Raymond

Read only

0 Likes
1,509

iam using the RFC SD_SALESDOCUMENT_CREATE

Ok i try for bapi ..

Read only

0 Likes
1,509

By the way, I prefer to use RFC-enabled SD_SALESORDER_CREATE (which is internally called by the BAPI) because it is less restrictive regarding order types.

so how to create as i dont find sold-to-party field in structure header .

Read only

0 Likes
1,509

Mist first line was 🙂

The customer numbers must be in table parameter SALES_PARTNERS.

Try [SALES_PARTNERS-PARTN_ROLE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=sales_partners+partn_role] = 'WE', 'SP' etc.

Regards,

Raymond