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: 

bapi_salesorder_fromdata error

Former Member
0 Kudos

Hi ,

I am trying to create a Purchase order in the R/3 system by sending HTTP post request using XI.

i figured out from some previous post in the forum that the following are the required fields for the bapi_salesorder_fromdata.

ORDER_HEADER_IN :

DOC_TYPE Sales document type -


"RO"

SALES_ORG Sales organization --- "1000"

DISTR_CHAN Distribution channel --- "10"

DIVISION Division -


"01"

ORDER_PARTNERS:

PARTN_ROLE Partner role, SP sold-to party -- "SP"

PARTN_NUMB Customer number --- "1001"

ORDER_ITEMS_IN:

MATERIAL Material number -- "p-100"

These are the values i am passing to this BAPI when i am executing it using the transaction se37 .

But i get the following error :

Order type "RO" not defined in sales area <'1000','10','01'>

I also tried entering the following vales for the order type -- "or","ro","cs","FD" but i get similar errors.

I am using the IDES version of r/3. Please let me know where i am going wrong.

Thanks in Adavance

karthikeyan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

this is Config issue , u have to assign Sale Area to Order Type .

check Views <b>V_TVAKZ</b>,or check config

SPRO--> SD->Sales -> Sales Doc Header->assign Sale Area to order Types.

Regards

Prabhu

3 REPLIES 3

Former Member
0 Kudos

In think the order type should be OR NOT RO.

Try with OR and that should work.

In SAP you do the cusotmizing to allow only specifc order types to be created.

Regards,

Ravi

Note : Please mark all the helpful answers and close the thread if the issue is resolved.

Former Member
0 Kudos

Hi natarajan,

1. Order type "RO" not defined in sales area <'1000','10','01'>

From the error message,

it seems that

its a functional error

(and not program error)

2. 1000 may be the company code for which RO type order has not been defined/customized.

3. If possible,

try to MANUALLY enter the same data,

using standard transaction,

in that also, it should give the same error !

regards,

amit m.

Former Member
0 Kudos

Hi ,

this is Config issue , u have to assign Sale Area to Order Type .

check Views <b>V_TVAKZ</b>,or check config

SPRO--> SD->Sales -> Sales Doc Header->assign Sale Area to order Types.

Regards

Prabhu