Skip to Content
author's profile photo Former Member
Former Member

BAPI_SALESDOCUMENT_CHANGE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.