Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom tab in creating Project Definitions

Former Member
0 Likes
3,601

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

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

9 REPLIES 9
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,418

Yes this Customer Exit will serve your purpose.

And is documented in SMOD and SPRO

But do you have any precise question ?

Regards,

Raymond

Read only

0 Likes
3,418

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.

Read only

0 Likes
3,418

- On my systems the tab appears for new and existing project. (Nothing special was coded)

- To insure user will input required data, you can create a validation rule on project

Regards,

Raymond

Read only

0 Likes
3,418

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.



Read only

0 Likes
3,418

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

Read only

0 Likes
3,418

ok but what about a new tab should i use the layout editor in screen to add tab and sub screen ?

Read only

0 Likes
3,418

There is no standard enhancement to get 2 tabs, but you can split the customer enhancement tab subsscreen  in two blocks, in PBO hide the non-pertinent block. Else you will be required to change standard code.

Regards,

Raymond

Read only

0 Likes
3,418

Acutely its one tab not 2 so do i have to work on the screen lay out or not ? .

Read only

0 Likes
3,418

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