Application Development 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: 

Unable to create Sales Order???

Former Member
0 Kudos

Hi All,

I am calling the BAPI_SALESORDER_CREATEFROMDAT1 to create Sales Order by passing the following values.

But getting an error "Please enter sold-to party or ship-to party.

If I execute the same BAPI by passing the sames values from SE37, I didn't get any error, it created the sales order.

Any one knows why this is happening?

Do I need to pass any additional parameters when I call this BAPI?

ORDER_HEADER_IN

-


DOC_TYPE

SALES_ORG

DISTR_CHAN

DIVISION

PURCH_NO

PURCH_DATE

ORDER_ITEMS_IN

-


ITM_NUMBER

MATERIAL

REQ_QTY

ORDER_PARTNERS

-


PARTN_ROLE

PARTN_NUMB

Thanks

Sundar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

check that you have added correct partner details..

for Ship to party , order_partners-partn_role = 'WE'.

for -Sold to party, order_partners-partn_role = 'AG'.

5 REPLIES 5

Former Member
0 Kudos

Hi

Try to check the code (PARVW) of the type of partner you're using

Max

Former Member
0 Kudos

check that you have added correct partner details..

for Ship to party , order_partners-partn_role = 'WE'.

for -Sold to party, order_partners-partn_role = 'AG'.

0 Kudos

Mahalakshmi,

From SE37 I am passing only sold-to party Partner Role to 'SP' and Partn_Num ' 0000108992' and able to create SO.

When I call the same BAPI and same values from WDA application, i get this error.

Thanks

Sundar

Edited by: Sundar on Feb 2, 2010 3:32 PM

0 Kudos

Hi

Probably SP is the output code, not input code of your partenr type.

The field PARVW has a routine to convert the value from/to output/input format.

Check the table TPAUM in order to know the corrent "input" value, this is the value u need to use in your program.

Max

0 Kudos

Hi All,

I resolved the issue.

Thanks for your help.

Regards

Sundar