cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SHIPMENT_CHANGE clear plan date and time in header

0 Kudos
ls_headerdeadline-time_zone = 'UTC'. 
ls_headerdeadline-time_stamp_utc = '00000000000000'.
ls_headerdeadline-time_type = 'HDRSTLSPDT'. "Status load start plan
append ls_headerdeadline to lt_headerdeadline.   

ls_headerdeadlineact-time_zone = 'D'. 
ls_headerdeadlineact-time_stamp_utc = 'D'. 
ls_headerdeadlineact-time_type = 'D'.   
append ls_headerdeadlineact to lt_headerdeadlineact.

      call function 'BAPI_SHIPMENT_CHANGE'
        exporting
          headerdata           = ls_headerdata "fill shipment data
          headerdataaction     = ls_headerdataaction "initial structure
        tables
          headerdeadline       = lt_headerdeadline
          headerdeadlineaction = lt_headerdeadlineact
          return               = lt_return.

        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait   = 'X'
          importing
            return = ls_return.

It is necessary to clear the vttk dplbg and uplbg fields.

I fill in the tables as above. In response, everything is going well.

After calling commit .

But there are no changes, and the scheduled date and time are unchanged.

former_member27
Community Manager
Community Manager
0 Kudos

Hi teralot,

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get the most out of your community membership, please consider including a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

Profile https://developers.sap.com/tutorials/community-profile.html

Tips for Questions: https://community.sap.com/resources/questions-and-answers

Consider taking our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html.

I hope you find this advice useful, and we're happy to have you as part of the SAP Community!

All the best,

Dedi

Accepted Solutions (0)

Answers (0)