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

BAPI_SALESORDER_CHANGE

Former Member
0 Likes
556

I use this BAPI to change my order . I just pass 4 parameters in the BAPI : SALESDOCUMENT

ORDER_HEADER_INX

SCHEDULE_LINES

SCHEDULE_LINESX

and in the order_header_inx , I input only one field UPDATEFLAG 'U'.

When I execute it , is make a runtime error said :

In the function module interface, you can specify only

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

Although the currently specified field

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

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
456

Lupin,

what ever the parameters you are passing having different data type and then the BAPI FM....

check the data type of your parameters

SALESDOCUMENT should have type BAPIVBELN-VBELN.

ORDER_HEADER_INX should have type BAPISDH1X

The internal table shoud have the structure

SCHEDULE_LINES like BAPISCHDL

SCHEDULE_LINESX like BAPISCHDLX.

Now it will work...

Pls. reward if useful.....

I use this BAPI to change my order . I just pass 4 parameters in the BAPI : SALESDOCUMENT

ORDER_HEADER_INX

SCHEDULE_LINES

SCHEDULE_LINESX

and in the order_header_inx , I input only one field UPDATEFLAG 'U'.

When I execute it , is make a runtime error said :

In the function module interface, you can specify only

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

Although the currently specified field

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

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
457

Lupin,

what ever the parameters you are passing having different data type and then the BAPI FM....

check the data type of your parameters

SALESDOCUMENT should have type BAPIVBELN-VBELN.

ORDER_HEADER_INX should have type BAPISDH1X

The internal table shoud have the structure

SCHEDULE_LINES like BAPISCHDL

SCHEDULE_LINESX like BAPISCHDLX.

Now it will work...

Pls. reward if useful.....