2012 Jun 18 10:05 AM
Hi all.
I want to add new tab & custom fields for all new projects definitions created by users, the user exit CNEX0006 will work for existing projects .
Feedback & suggestions are welcome.
Thanks
Moderator Message: <<Invalid subject altered>>
Message was edited by: Kesavadas Thekkillath
2012 Jun 18 10:17 AM
2012 Jun 18 11:36 AM
But this only for the already existing projects, i want this tab to show each time the user wants to create project definition, this user exit will be useful for specific created project.
2012 Jun 18 2:36 PM
2012 Jun 19 7:01 AM
thanks allot
do you know how can I activate the new tab and fields as below :
PBO
FM : EXIT_SAPLCJWB_002.
the code should be here in the INCLUDE ZXCN1U11.
PAI
EXIT_SAPLCJWB_003
the code should be here in the INCLUDE ZXCN1U12.
2012 Jun 19 7:09 AM
You don't have to put much code in those exits which are called before the PBO and after the PAI of the subscreen.
- Include ZXCN1TOP - include in the TOP of the exit FG - declare with TABLES statements some data like PROJ and CNCI_PROJ (contains CI_PROJ) and create a flag to save SAP_DISPLAY_ONLY (display mode)
- EXIT_SAPLCJWB_002/ZXCN1U11- move import parameters in the fields/structures declared in the TOP include - You can also look in database for the project definition, if not found you are in creation mode else depending on display falg you are in display/change mode
- EXIT_SAPLCJWB_003/ZXCN1U12 - move the screen data to export parameter
- Then create the subscreen dynpro, put your fields in it. Create the modules in include ZXCN1ZZZ, don't forget to use saved value of SAP_DISPLAY_ONLY in PBO to disable input mode in display mode. Most of your code will be in those include.
- Also via CMOD input a text description which will be used in menu of old fashioned transactions (CJ07, etc.) to display the customer fields
- Activate the project
Regards,
Raymond
2012 Jun 19 7:27 AM
ok but what about a new tab should i use the layout editor in screen to add tab and sub screen ?
2012 Jun 19 7:34 AM
2012 Jun 19 8:13 AM
Acutely its one tab not 2 so do i have to work on the screen lay out or not ? .
2012 Jun 19 8:25 AM
Yes, I would create two block in subscreen dynpro, identifying new/existing recod with two values in SCREEN-GROUP1. Then in PBO i would set SCREEN-INACTIVE fields not to display, also disable SCREEN-INPUT in display mode. (Both flag "new record" and "display mode" were set during the call of EXIT_SAPLCJWB_002)
Regards,
Raymond