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

Error in BAPI : BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
945

Hi there... can anyone help me with my problem,

I'm using BAPI_SALESORDER_CREATEFROMDAT2 in creating sales

order.

My inputs are:

ORDER_HEADER_IN:

DOC_TYPE = Sales Document Type

SALES_ORG = Sales Organization

DISTR_CHAN = Distribution Channel

DIVISION = Division

PURCH_NO_C = PO Number

CURRENCY = Currency

PO_DAT_S = PO Date

REQ_DATE_H = Required Delivery Date

ORDER_HEADER_INX:

DOC_TYPE = 'X'

SALES_ORG = 'X'

DISTR_CHAN = 'X'

DIVISION = 'X'

PURCH_NO_C = 'X'

CURRENCY = 'X'

PO_DAT_S = 'X'

REQ_DATE_H = 'X'

ORDER_PARTNERS:

PARTN_ROL = ?SP?

PARTN_NUMB = Sold to Party or Ship to Party

ORDER_ITEMS_IN:

ITM_NUMBER = Increment Counter By 10

MATERIAL = Material Number

TARGET_QTY = Quantity

ORDER_ITEMS_INX:

ITM_NUMBER = Increment Counter By 10

MATERIAL = 'X'

TARGET_QTY = 'X'

ORDER_CONDITIONS_IN:

ITM_NUMBER = Increment Counter By 10

COND_TYPE = ?ZPR0?

COND_VALUE = List Price

ORDER_CONDITIONS_INX:

ITM_NUMBER = Increment Counter By 10

COND_TYPE = ?ZPR0?

COND_VALUE = 'X'

ORDER_TEXT:

ITM_NUMBER = Increment Counter By 10

TEXT_LINE = Text

I still receieve errors such as

"Please enter Sold-to Party or Ship-to Party"

Kindly help me with my concern.

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
494

The codes for partner roles are language dependent. This means that internally another code is used and stored by SAP then the code you get displayed on reports, screens etc. (conversion exit)

For sold-to the internal value is 'AG', the external value in English is

'SP'.

1 REPLY 1
Read only

Former Member
0 Likes
495

The codes for partner roles are language dependent. This means that internally another code is used and stored by SAP then the code you get displayed on reports, screens etc. (conversion exit)

For sold-to the internal value is 'AG', the external value in English is

'SP'.