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_SALESORDER_CHANGE Problem

Former Member
0 Kudos

I try to update "ORDER_TEXT":

SALESDOCUMENT='0000014020'

ORDER_HEADER_INX-UPDATEFLAG='U'

ORDER_TEXT-DOC_NUMBER='0000014020'

ORDER_TEXT-ITM_NUMBER='000000'

ORDER_TEXT-TEXT_ID='0001'

ORDER_TEXT-LANGU='E'

ORDER_TEXT-TEXT_LINE='Add text to head'

But I can't get the change.

Help me, Any idea?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Thanks everyone.

I just do "Test/Execute"

I get the BAPI RETURN message:

T ID NUM MESSAGE

S V4 233 ORDER_HEADER_IN has been processed successfully

S V1 311 Standard Order 14020 has been saved

but "ORDER_TEXT" don't update.

maybe set ORDER_HEADER_INX some fields?

9 REPLIES 9

Former Member
0 Kudos

Hi

Do have set BAPI-COMMIT?

BR

Michael

Former Member
0 Kudos

Hi

Do have set BAPI-COMMIT?

BR

Michael

Former Member
0 Kudos

Check the Bapi Return. If it is 'Sales order under processing' , Check all the Bapi Inputs and call BAPI_TRANSACTION_COMMIT after the bapi for sales order change.

Thanks,

Rehan

Former Member
0 Kudos

Hi

Check the fields which you want to update and try..

ORDER_HEADER_INX-UPDATEFLAG='U'

Like this..

ORDER_HEADER_INX-DOC_NUMBER='X'

ORDER_HEADER_INX-ITM_NUMBER='X'

ORDER_HEADER_INX-TEXT_ID='X'

ORDER_HEADER_INX-LANGU='X'

ORDER_HEADER_INX-TEXT_LINE='X'

Thanks,

Govind.

Message was edited by: Govindaraju Ayyakkannu

0 Kudos

Hi govindaraju,

Set the BAPISDTEXT-FUNCTION-Parameter in

003 delete

004 change

005 replace

009 First time

023 do nothing

018 send again

See Dataelement: MSGFN => Value Range

Hope I could help You

BR

Michael

Former Member
0 Kudos

Thanks everyone.

I just do "Test/Execute"

I get the BAPI RETURN message:

T ID NUM MESSAGE

S V4 233 ORDER_HEADER_IN has been processed successfully

S V1 311 Standard Order 14020 has been saved

but "ORDER_TEXT" don't update.

maybe set ORDER_HEADER_INX some fields?

0 Kudos

Hi Tony,

You need to issue the FM BAPI_TRANSACTION_COMMIT in the same LUW as your change BAPI.

To do this create a FM "Test Sequence". Do this from Se37. Menu is: Function Module->Test->Test Sequences.

You can then specify the two function modules and your changes will be applied to the database.

Brad

Former Member
0 Kudos

The test successfully

Thanks everyone

Special thanks Brad Williams Michael Bauer

0 Kudos

Hi Tony,

No problems. Please remember to acknowledge those answers that helped you by awarding them points.

This can be done by clicking on the the little stars next to each response in the thread.

Cheers,

Brad