In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to deal with error message KI 180 encountered by SD Sales order". In daily operation, I believe many people have doubts about how to deal with error message KI 180 encountered by SD Sales order. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts of "how to deal with error message KI 180 encountered by SD Sales order"! Next, please follow the small series to learn together!
Error Message KI 180:You must enter a company code for transaction Create sales document
Code:
REPORT zcreate_so.DATA: ls_header TYPE bapisdhd1, ls_headerx TYPE bapisdhd1x, lt_bapiret2 LIKE bapiret2 OCCURS 0 WITH HEADER LINE.ls_header-serv_date = '20200101'.ls_header-doc_type = 'TA'.ls_headerx-doc_type = 'X'.ls_headerx-updateflag = 'U'.CALL FUNCTION 'SD_SALESDOCUMENT_CREATE' EXPORTING sales_header_in = ls_header sales_header_inx = ls_headerx int_number_assignment = 'X' TABLES return = lt_bapiret2.LOOP AT lt_bapiret2 ASSIGNING FIELD-SYMBOL() WHERE type = 'E'. WRITE:/ 'Error:', -message COLOR COL_NEGATIVE. RETURN.ENDLOOP.
After debugging, we found that the error message was thrown in the following function:
Reason: Transaction code VA03, open an existing Sales Order, Goto->Header->Billing, view Company code:
Know that Company code is stored in field BUKRS of table VBAK.
Solution: Add the following two lines to the above code and the problem is solved:
ls_header-comp_cde_b = '0001'. ls_headerx-comp_cde_b = ' X'. At this point, the study on "How to handle error message KI 180 encountered by SD Sales order" is over. I hope we can solve your doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.