Professional Documents
Culture Documents
CJ92 Transaction
Business Requirement: Add a custom screen in CJ92 transaction to
Display the date/name of the person created the PROJECT.
For this we need to implement Menu Exits and Screen Exits for transaction
CJ92
Technical requirements:
Tcode is : CJ91/ CJ92/ CJ93.
Date : Field Name is ERDAT.
Nmae : Field Name is ERNAM.
Table name is : PROJ
The above tables and fields are given by functional consultants.
STEPS:
Step1 : Find the Package Name
Step 2: Find the Enhancements(FM exits) using package name in
SMOD Transaction.
Step 3: If no Enhancements are available, use CALL CUSTOMER and
find an enhancement.
Step 4: Implement the enhancement using CMOD Transaction .
Step5 : Test it
Goto SMOD
Give the first Enhancement Name
Click on Display.
Click on Components
You can observe that there are no screen exits available.
Repeat the same for each enhancement and find the screen exits.
Goto SMOD
Give the first Enhancement Name
Click on Display.
Click on Components
You can observe that there are screen exits/Menu exits/FM Exits
available.
Click on change
Click on Enhancement Assignments
Give the Enhancement name as CNEX0003
Click on Components
Below screen will be displayed
SAPLCJSS +CUD is used for the description to appear in the menu. +CUD acts as
Fcode (user command).
Here Screen Exit
SAPLXCN1 0300 - Here we add the screen elements.
Click on Continue
A screen will be created.
Give description
Select the screen type as SUBSCREEN Bcoz all screen exits will be
of type SUB-SCREENS
Click on Layout.
Drag and drop a text label and give name, text as NAME
Drag and drop a INPUT field and give name as V_NAME
Drag and drop another text label and give name, text as DATE
Drag and drop a INPUT field and give name as V_DATE
Change the format to DATS data type
Click on flowlogic->activate it .
The Below fields need to be declared in the TOP Include file .
V_DATE, V_NAME .
Click on Display object list ICON
Expand XCN1
Expand Includes
Double click on TOP include file LXCN1TOP.
v_name = SAP_PROJS_IMP-ernam .
v_date = SAP_PROJS_IMP-erdat .
Menu Exit
Now to call this screen. We need Menu Exit.
Go back to the below screen.
Step5 : Test it
Now a new screen (i.e., our custom screen) would appear. Now the PBO Function exit would get
executed and shows the following Screen.