Problem: you want to add customer fields to the item of the Purchase Order in the ERP (ME23N).
Solution: To do this you need to use the SMOD project called MM06E005.
First you need to enhance structure CI_EKPODB with fields that you want to add to the transaction.
Second you need to put those fields into the screen 0111 of report SAPLXM06. This screen will be presented in the item, on the Customer Data tab of the ME23N transaction.
Last part is to transport data to and from the screen. There are two function modules for this:
- EXIT_SAPMM06E_016 – executed before PBO event of the screen; here you need to retrieve all the information from the item and move it to the screen’s structure;
- EXIT_SAPMM06E_018 – executed after PAI event of the screen; here you need to retrieve data from the screen and move it to the item. To inform system that data has been changed parameter E_CI_UPDATE needs to be set to abap_true (X).
Any additional, extended logic for the screen can be of course programmed in the standard PBO and PAI events of the 0111 screen.
Komentowanie jest zakończone.