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_SALESDOCUMENT_CHANGE

0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

>

> 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