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: 

Field 'BSTKD' cannot be changed, VBAKKOM (Order Number) ready for input

Former Member
0 Kudos

Hi All,

I get the above error when I try to change an order using the following code. Can anyone think of a reason for this? I can change the PO manually.


            MOVE xvbak-bstkd TO t_headerpo-purch_no_c.
            MOVE 'U' TO t_hdr_inxpo-updateflag.
            MOVE 'X' TO t_hdr_inxpo-purch_no_c.

            CALL FUNCTION 'BAPI_SALESDOCUMENT_CHANGE'
              EXPORTING
                salesdocument    = lv_vbeln
                order_header_in  = t_headerpo
                order_header_inx = t_hdr_inxpo
              TABLES
                return           = t_return.

            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait = 'X'.

1 ACCEPTED SOLUTION

Jelena
Active Contributor
0 Kudos

It works fine with BAPI_SALESORDER_CHANGE. I got the same error with BAPI_SALESDOCUMENT_CHANGE, not sure what's up with that...

2 REPLIES 2

Jelena
Active Contributor
0 Kudos

It works fine with BAPI_SALESORDER_CHANGE. I got the same error with BAPI_SALESDOCUMENT_CHANGE, not sure what's up with that...

0 Kudos

Hello all,

If I can complete, function BAPI_SALESDOCUMENT_CHANGE is not released (check Attributes in function), so it shouldn't be used.

Thanks for answer, it clearly helps.