Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES

SAPCODES

ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM

WORKFLOW HANA ODATA-UI5 BASIS JOBS TEAM POSTS

SCREEN EXIT- ME21N/ME22N/ME23N- HEADER


 November 20, 2015  One comment
Search … 

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.

Step2. Go to the system->status to get the program.

This site is maintained by


Manish Shankar and Siva
Prasad . This site sapcodes.com
is not affiliated with SAP SE.

RECENT POSTS

outbound & inbound idoc


number
ABAP Format to json
Where to get MIME Type for
Media Related Gateway
Step3.  From Goto->Attributes get the package.
Project?
Gateway Project Create
Deep Entity
Gateway Project PDF FIle
Gateway Project for Multi
Level Association
Gateway Project for
Expanded Entity Set
Gateway Project for Search
Help

Enter your email address

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

Anonymous on ABAP CDS


Table Function Implemented by
AMDP
Anonymous on FPM OVP
Step5. Provide the package – ME and select Screen Exit and Continue. Application -Integrating Header
LIST UIBB and ITEM List UIBB &
Dynamically hiding ITEM LIST
UIBB
Paramasivan on Fiori
Element- CDS View with BOPF
CRUD
Cristian Peiretti on ALV with
IDA(ALVonHANA)-12
Anonymous on Testing
Interface Message in AIF

Step6. Here we have two enhancements. Select the second one.

Step7. go for display option.

https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 2/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES

Step8. Here we have all the options.

Step9. Go to Tcode- CMOD  to create a project.

Step10. Provide short text.

Step11. Provide the Enhancement name and click on Components button.

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

Step13.. So here we have created a field in the include . Activate it.

Step14. The include is created in the EKKO purchasing header table.

Step15. Now Double click on the called program ‘SAPLXM06’.

Step16. Select sub screen option and click on layout.

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,.

Step18.  We have the modules in PBO and PAI.

Step19. Define the module in PBO.

Step20. Activate it.

https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 5/11
7/14/2021 Screen Exit- ME21N/ME22N/ME23N- Header – SAPCODES

Step21. Define the module in PAI.

Step22.

Step23. Activate the module.

Step24. Activate the flow logic and go back.

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.

Double click on the structure- EKKO_CI.

Step29. So we have the extended custom field.

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

Step32. We have the data available in the importing parameter I_CI_EKKO.

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.

Step35. Save it and we have the po number.

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

« Function Module Exit Searching Exit by Tx- SMOD & SE11 »

ONE COMMENT

Laxmikant says:
December 19, 2018 at 4:00 pm

How to make these fields in display mode while ME23N

 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

Enter your comment here...

Advertisements

ABAP OO-ABAP ENHANCEMENTS RFC & BAPI ALE-IDOC USEFUL PROGRAMS WEBDYNPRO FPM WORKFLOW HANA ODATA-UI5

BASIS JOBS TEAM POSTS

Website Powered by
WordPress.com.

https://sapcodes.com/2015/11/20/screen-exit-me21nme22nme23n-header/ 11/11

You might also like