In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Suppose I want to modify the Service Date field SERV_DATE of the Sales Order header in S/4HANA:
First of all, from the database table VBKD, it is found that the value before the modification of SERV_DATE is January 1, 2020.
Using the following code, change the value of this field to January 2, 2020.
REPORT zchange_so1.DATA: lv_num TYPE bapivbeln-vbeln, ls_doc_header TYPE bapisdhd1 Lt_vbap TYPE STANDARD TABLE OF vbap.lv_num = '0000000268'.CALL FUNCTION' SD_VBAP_READ_WITH_VBELN' EXPORTING i_vbeln = lv_num TABLES et_vbap = lt_vbap EXCEPTIONS record_not_found = 1 OTHERS = 2.BREAK-POINT.DATA: i_order_header_in LIKE bapisdhd1 .data: i_order_header_inx LIKE bapisdhd1x Lt_bapiret2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.i_order_header_inx-updateflag = 'U'.i_order_header_in-serv_date =' 20200102'.I _ order_header_inx-serv_date = 'X'.CALL FUNCTION' SD_SALESDOCUMENT_CHANGE' EXPORTING salesdocument = lv_num order_header_in = i_order_header_in order_header_inx = i_order_header_inx TABLES return = Lt_bapiret2.clear: lt_bapiret2.CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' IMPORTING RETURN = lt_bapiret2.BREAK-POINT.
After execution, you can see that the Sales Order has been successfully updated from the output parameter lt_bapiret2.
From the background database table VBKD, we can see that the value of this field has also been successfully updated:
For more original Jerry articles, please follow the official account "Wang Zixi":
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.