‎2009 Aug 10 11:52 AM
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,
‎2009 Aug 10 11:54 AM
‎2009 Aug 10 12:42 PM
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'.
‎2009 Aug 10 12:48 PM
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
‎2009 Aug 11 9:05 AM