Additional Data Tab in Sales Order
Choose the table VBAP or VBAK ( depending on header or item)
Click on button "append Structures" .
It will propose you the standard name for the table ZAVBAP or ZAVBAK
Add fields with prefix ZZ like ZZCOLOR
In transaction SE51 maintain user exit screens in program SAPMV45A
- 8459 user exit item level
- 8309 user exit header level
You can then design your own layout. and define your flow logic.
PBO modules MV45AOZZ
PAI modules MV45AIZZ
Data definitions MV45ATZZ
Subroutines in MV45AFZZ
[@more@]Just to add in to the above points...
If you are planning to bring in fields that needs to be updated in table VBAK(header sales) or Vbap (item sales) then
(1) first add the required fields as an append include in se11
go to se11 -> table -> click on "Append Structure" ..in the new pop up..create a new include by clicking on "create" or using an existing include if any..give the description and you will get a structure where you can enter the fields required
follow this for vbak/vbap
(2) Go to SAPMV45A program in Se38 and take screen
8459 for screen to add fields at (additional dataB -> item)
take the screen layout and select the fields
VBAP-ZZ fields or the newly added fields or the ones you need on additional data B -> item details,put in on this screen, save and activate
Code can be written in PBO/PAI like a normal screen..
Repeat the same procedure but with screen number 8310 of program SAPMV45A (VBAK-ZZ fields) to obtain fields on additional dataB of header
Please note that the program SAPMV45A is common for other transactions like sales contract VA41/42/43..so whenever we write code ..please put check for VA01/Va02/Va03
if sy-tcode = Va01..etc
endif...Also pls note that access key is required for screen modifications
Also if you are showing fields from tables VBAK/VBAP in the screen of additional data B , no separate code needs to be writtn while saving and whatever checks that needs to be done for the fields,it can be done in 2 places
(a) in PAI/PBO of the screen itself
(b) go to se38 -> MV45AFZZ -> userexit_save_document or
userexit_save_document_prepare and write the code to check the conditions and give messages accordingly
here VBAK/VBAP data are available in XVBAK/XVBAP
If you are using Ztable fields on additional data B screen then we need to write code in PBO of the corresponding screen to fetch data in case of VA02/Va03 since data comes from a Ztable and not standard table VBAK/VBAP and also do validations here itself
Adding append structures to standard table VBAK/VBAP with required fields and using those fields on screen is advisable to avoid complications
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21882360/viewspace-1059287/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Sales Order Form · Additional Line InformationORM
- How to get propose products in Sales Order
- SAP Cloud for Customer裡Sales Order和Sales Quote的建模方式Cloud
- [轉]Sales Order 中的User Exit開發
- Order-level sales credit total () must equal 100%.
- SCM600--Master Data in Sales and DistributionAST
- EBS:OM Sales Order銷售訂單【Open Interface、Open API】API
- 如何利用BAPI SD_SALESDOCUMENT_CHANGE修改Sales Order的欄位API
- 使用ABAP程式碼建立S/4HANA裡的Sales Order
- SAP SD 基礎知識之Cash Sales和Rush Order的區別
- magento app/design/adminhtml/default/default/template/sales/order/view/info.phtml XSS VulAPPHTMLView
- Siebel初始化"All Order Line Items Analysis View (Sales)"出現"SBL-DAT-0View
- SAP PP how to re-read master data for process order?AST
- 如何處理用程式碼建立SD Sales order時遇到的錯誤訊息KI 180
- 使用函式BAPISDORDER_GETDETAILEDLIST讀取S/4HANA中Sales Order行專案資料函式APIAI
- Siebel初始化"All Order Line Items Analysis View (Sales)"出現"SBL-DAT-00500"錯誤View
- mysql additional pool 指的是什麼?MySql
- Step 8: Create Additional Tablespaces (66)
- SCM605--Controlling Sales Documents with Sales Document Types
- CSS orderCSS
- What is the difference between gross sales and revenue?ROS
- SAP CRM Fiori應用如何啟用Sales Office和Sales Group兩個欄位
- Tasks of a Database Administrator : Roll Out to Additional Hosts (17)Database
- Step 10: Run Scripts to Install Additional Options (Optional) (68)
- 瀏覽器子Tab能控制父Tab嗎瀏覽器
- Order by 優化優化
- MySQL之order byMySql
- marketing和sales的區別
- Simple JQuery Plugin Tab/簡易的jq tab外掛jQueryPlugin
- Global Sales Data:統計顯示PS 5玩家更喜歡在零售店中選購盒裝遊戲遊戲
- 淺談SAP Cloud for Sales 自動化Cloud
- 【Lintcode】1793. Balanced Sales Array
- Create sales scheduling agreement with FM
- user_tab_columns和user_tab_cols的區別!
- MySQL 之 ORDER BY FIELDMySql
- CSS3 orderCSSS3
- mysql order by 優化MySql優化
- [Javascript] Object property orderJavaScriptObject