Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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'.

Tags:
Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question