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

Problem with BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
619

Hi All,

I am creating sales order through BAPI_SALESORDER_CREATEFROMDAT2.

When I execute the BAPI, I got this error :

In the function module interface, you can specify only

fields of a specific type and length under "ORDER_CONDITIONS_IN".

Although the currently specified field

" " is the correct type, its length is incorrect.

I set these values:

order_condition-itm_number = u2018000010u2019. "Numéro de poste de condition

order_condition-cond_type = 'ZPDI'. "Type de condition

order_condition-cond_value = 1.

order_condition-cond_st_no = '011'.

order_condition-cond_count = '01'..

order_conditionx-itm_number = u2018000010u2019.

order_conditionx-cond_type = 'ZPDI'.

order_conditionx-cond_value = 'X'.

order_conditionx-cond_st_no = '011'.

order_conditionx-cond_count = '01'.

order_conditionx-updateflag = 'I'.

anybody Have fased similar problem and can help me with this?

Thanks in advance.

Regards,

4 REPLIES 4
Read only

Former Member
0 Likes
547

Which error?

Max

Read only

Former Member
0 Likes
547

1. Check the internal table that you are passing to ORDER_CONDITIONS_IN is of the type BAPICOND.

2. Check: order_conditionx-cond_value = 'X'. COND_VALUE is of DEC type.

3. Check order_conditionx-updateflag. This may have a limitation on the values it takes. Try and change it to 'X'.

Read only

Former Member
0 Likes
547

Hi,

Try like below:


order_conditionx-itm_number = u2018000010u2019.
order_conditionx-cond_type = 'X'.
order_conditionx-cond_value = 'X'.
order_conditionx-cond_st_no = 'X'
order_conditionx-cond_count = 'X''.
order_conditionx-updateflag = 'X'.

Regards,

Himanshu

Read only

Former Member
0 Likes
547

Thanks all,

it's work.

Regards,