Skip to Content
avatar image
Former Member

How to update VBKD-TRATY dynamically in a custom program?

Hi Experts,

I have a requirement to update VBKD-TRATY field from a custom editable ALV GRID.

I already used FM 'SD_SALESDOCUMENT_CHANGE' but when i check the SO document in VBKD table or in tcode VA03 the field TRATY:"Means of Transport Type" has not been updated

Please Help can't find any answers on other blogs. Thank you in advance :)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 13, 2017 at 08:09 AM

    When you run a test sequence with this FM and BAPI_TRANSACTION_COMMIT and the same data that you use for testing this custom program - does it work?

    Did you try entering exactly the same data in VA02 and observe the outcome?

    I do not know if you are also populating valid values for VBKD-TRMTYP - these depend on each other.

    I am not a developer myself and I might not be able to understand entirely your code, but without posting some code samples I doubt that even experienced ABAPers will be able to go beyond guessing what could be the exact problem.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2017 at 07:23 AM

    Not sure which version you are into but you can have a look at OSS note 537742

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2017 at 07:30 AM

    Just so that there are no misunderstandings, did you commit after call of BAPI_SALESORDER_CHANGE or SD_SALESDOCUMENT_CHANGE?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2017 at 06:15 AM

    Hello experts thank you for your suggestions and comments! :) i already finished my program but sad to say FM "SD_SALESDOCUMENT_CHANGE" and 'BAPI_SALESORDER_CHANGE'' cant update SD Documents on item level so i used BDC process which i want to avoid in the first place but thank you for your fast response :)

    Add comment
    10|10000 characters needed characters exceeded