Screen Enhancement in delivery Header VL01N/VL02N/VL03N via BAdI.
---------------------------------------------------------------------------------------------------
Step1. Go to Outbound Delivery Transaction VL02N.
Step2. Give an existing delivery number and hit Enter Key.
Step3. Go to the Header level of the Delivery.
Step4. Now in some case the business needs to capture of extra information on header level, they can look for some new custom tab with sub screen so that the information can be stored in the enhanced fields of the standard table or in some Z tables.
Step5. Let's look for some BAdI's for this. There are multiple ways to find if a BAdI is available or not. Let's this time go with the Transaction- SE81.
Step6. Delivery falls in the Logistic Execution Area. So select LE & click on Select button to highlight the sub option LE. Then finally click on Information System.
Step7. We reached in this screen. Now here from the left side tree, under Enhancement->BAdI'S , double click on Definition and finally click on the F8 button.
Step8. The search results shows a lot of BAdI's. So lets use the naming convention and the description to choose a appropriate one. Here the BAdI- LE_SHP_TAB_CUST_HEAD seems promising.
Step9. Go to SE18 transaction and provide the badi name to know more details about it.
Step10. Here the interface method contains some meaningful method to do our requirement.
Step11. To create an implementation go to Tcode- SE19. Provide the BAdI name and click on Create implementation.
Step12. Provide an implementation name & continue.
Step13. Provide a short description and double click on the Method : ACTIVATE_TAB_PAGE.
Step14. The method signature contains meaning some meaningful parameters to activate a tab on the delivery header. Here we need to pass the tab name, tab position, the sub screen to be displayed on selection of the tab and the program that holds the sub screen.
Step15. Create a Function Group and a sub screen.
Step16. Provide a screen number '0001' , choose sub screen and click on layout to design the screen.
Step17. For example lets create a Box on the screen.
Step18. Activate everything and mark that for the function group we have the function fool program 'SAPL-FG NAME'.
Step19. Now in the BAdI implementation go to the method 'ACTIVATE_TAB_PAGE' and put the below code, activate the method.
Step20. Activate the BAdI.
Step21. Launch VL02N and go to the Header level and we have our screen under the Enhanced tab.
Step22. Lets create a delivery in VL01N .
Step23. Go to the header level.
Step24. We have the customized enhanced tab and enhanced screen.
-------------------------------------------------------------------------------------------------------
No comments:
Post a Comment