10-14-2010 7:51 PM
Hi Gurus,
I am working on the BAPI_SALEDOCUMENT_CHANGE trying to update the delivery block information of sales order.
For this purpose, I am writing a program in which after calling the BAPI_SALESDOCUMENT_CHANGE, I am calling BAP_TRANSACTION_COMMIT FM.
Unfotunately, this code is dumping at the line of calling the FM BAPI_SALESDOCUMENT_CHANGE with error
CX_SY_DYN_CALL_ILLEGAL_TYPE. Please help.
" An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "ORDER_HEADER_IN".
Although the currently specified field
"ORDER_HEADER_IN1" is the correct type, its length is incorrect."
Thanks,
Suresh V
10-14-2010 8:01 PM
>
> In the function module interface, you can specify only
> fields of a specific type and length under "ORDER_HEADER_IN".
> Although the currently specified field
> "ORDER_HEADER_IN1" is the correct type, its length is incorrect."
It's telling you exactly what the problem is. You haven't declared ORDER_HEADER_IN1 correctly.
Rob