Screen Exit - ME21N - ME22N - ME23N - Header - SAPCODES
Screen Exit - ME21N - ME22N - ME23N - Header - SAPCODES
Screen Exit - ME21N - ME22N - ME23N - Header - SAPCODES
SAPCODES
ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM
Advertisements
Step1. Go to Tcode- ME21N. Let it be as a requirement, we need some customer specific
input field on the header section of the screen. As this is a standard program and screen,
let’s look for a screen exit for it.
RECENT POSTS
Step4. Go to Tcode- SMOD to find out any screen enhancement available or not. Click on F4 Follow sapcodes.com
option.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 1/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
BLOG STATS
2,781,103 hits
RECENT COMMENTS
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 2/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step12. Double click on the Include: CI_EKKODB and maintain some fields.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 3/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 4/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step17. Make a text label and input field as shown below. Go back to the flow logic,.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 5/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step22.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 6/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step25. The calling program is ‘SAPMM06E’ with the screen 101. Go to SE51 transaction and
open the flow logic. So here the customer sub screen is called.
Step26. Coming back to the project our back end table extension and screen field is ready.
now we need certain code to read the screen input value and store it in the back end field in
Po creation Tcode- ME21N and Need to retrieve the field value from the database to the
screen field when user launches ME22N or ME23N transaction.
Step27. So here we have the FM ‘EXIT_SAPMM06E_008’ to read the screen field value and
putting into the DB field. So double click on the Fm.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 7/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step28. So here we have the changing field e_ci_ekko is available take the value from the
screen.
Step30. Put the code in the include and here map the screen input value to the changing
parameter.
Step31. Now double click on the function module ‘EXIT_SAPMM06E_006’ where our code can
place the value from the database to the screen.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 8/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step33. So inside the include map the value from the importing parameter to the screen
field.
Step34. Activate the project. now execute the tcode- ME21N . So here in the header we can
find a new tab CUSTOMER DATA where we have our new custom field. Provide some value
and create a purchase order.
Step36. check in the db table EKKO and here have the po and our extended custom filed
value.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 9/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
Step37. Now execute Tcode- ME22N and we can see the value in our custom field.
Rate this:
6 Votes
Like
Be the first to like this.
Related
Screen Enhancement for Pre, Post & Over Write- Function Module Exit
Delivery Header [ Exit November 20, 2015
VL01N/VL02N ] By BAdI November 20, 2015
November 20, 2015 With 1 comment
With 2 comments
ONE COMMENT
Laxmikant says:
December 19, 2018 at 4:00 pm
Like
Reply
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 10/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES
LEAVE A REPLY
Advertisements
ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM WORKFLOW HANA ODATA-UI5
Website Powered by
WordPress.com.
https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 11/11