You are on page 1of 3

SR / Issue #: Date Written: Date Revised: Business Owner Functional Analyst Developer

10/09/20 13

Description: By: By:

screen exit for me23n Est. Hours: Revision: Est. Hours:

I.

Overview:
Developing a screen exit for me23n. Creating a z table.

II.

Objects:
Type Description New / Existing

Object

III.

Installation Instructions:
Batch Job On-line Transaction: __ Authorizations: _________________________ Name: _______ Variant: __ _________

Frequency: __ _______________________

IV. Technical Flow:


1) Creation of a ztable with fields: Purchase order number, personal number, name with values 123,999 and nareshvepuri respectively.

2) When new purchase order is created, personal number field need to be updated with increasing value of one in sequence and a random string value need to be updated in the name field. Using enhancement MM06E005 with exit-EXIT_SAPMM06E_013 (which are executed when saving the purchase order number) ztable is updated with fields: purchase order number, personal number and name. Personal number field: updating the ztable with one default value (in a field) every time a new purchase number is created. Querying it to get into an internal table, with help of loop and sy-index value, using count functionality a sequence number is generated and updated as a personal number Name field: using RSEC_GENERATE_PASSWORD function module and using subfields shift and split functions in character strings, a random string is passed as input to the function module to get a string value.

3) Enhancing screen exists with fields Purchase order number, personal number, name to any of the tabs ( conditions, texts, address, communication, partners, additionaldata) in me23n transaction code. Using enhancement MM06E005 , go to component CI_EKPODB (for this the ztable fields need to be appended in the ekpo table) doulble click it and include the field need to enhance. Visual part: Double click on EXIT 0111. go to screen painter and create label and text fields. Enter the field names to get it from data dictionary.

4) This screen exist should only visible for only single user. Using AT SELECTION-SCREEN OUTPUT and sy-uname Loop at screen If sy-uname =nvepuri Screen-active=1 Else Screen-active=0 Endif.

Modify screen.

5) Default value for screen exit on field personal number from ztable.
transfer data to the screen: using exit EXIT_SAPMM06E_016 and in INCLUDE ZXM06U41 to query the ztable add a default value on to the screen.

6) F4 help for the personal number.


Using function module 'F4IF_INT_TABLE_VALUE_REQUEST' personal number is

displayed with f4 help. 7) Name need to be displayed in the status bar when selecting personal number automatically.

use to get the data back from the sub-screen: using exit EXIT_SAPMM06E_018 and in include and using AT SELECTION-SCREEN ON FIELD event, ztable is queried and name is displayed in the status bar using message type s.

You might also like