Application Development 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: 

To enhance cj20n project profile screen

0 Kudos
1,376

Hello,

I have a requirement in which I need to enhance a particular tab (refer last screenshot) for project profiles in cj20n transaction code. Now, this tab is already customised and available in CJWB function group, screen number 3998. I suppose this is the only tab where we can add our Z fields for cj20n project profiles. also, it is being implemented in CNEX0006 enhancement.

now, I want to replace sub-screen 600 dynamically according to project profiles selected in cj20n transaction code. but, since this screen exit is already implemented, I cannot edit the program and call sub-screen according to my requirement.

can you please suggest me ways how I can achieve my requirement.

CJ20N tab where I want to call different subscreens according to project profiles selected:

1 ACCEPTED SOLUTION

0 Kudos
654

I found the answer myself. To replace the current screen elements with new screen elements, keep the old screen elements in a group and display them according to the group.

LOOP AT SCREEN.

       IF screen-group1 = 'CON'. " CON is group name

         screen-active = 0.

         MODIFY SCREEN.

       ENDIF.

     ENDLOOP.


This command will hide all those screen elements which belong to 'CON' group.

8 REPLIES 8

raymond_giuseppi
Active Contributor
0 Kudos
654
  • Build multiple dynpros (subscreen, SAPLXCN1 9000, 9001, etc. or another Z-function group) depending on your requirements, one per profile?
  • In the master subscreen dynpro (SAPLXCN1 0600) used it in CNEX0006, in this subscreen, only create a single subscreen area, and in its logic call the subscreen associated to profile.

If you didn't create the profile dynpros in the exit function group, add and call some FM to pass data between SAPLXCN1 and your main program in PBO/PAI modules of the 0600 dynpro)

Regards,

Raymond

0 Kudos
654

Hello Raymond,

I have created multiple subscreens per profile but the problem is that I cannot call them according to my requirement in flow logic of the screen 1216 as SAP does not allow to edit that part of code. for details, refer my second screenshot.

let me know in case I am going wrong somewhere. Thanks.

Regards,

Vishu

0 Kudos
654

Do not put your logic in standard screen, but in the screen 0600 of the exit function group.

0 Kudos
654

If you can see my 3rd screenshot, there you can see we have a block for CRM fields. This block is coming by default for all project profiles. for selected project profiles, user wants to replace this sub-screen with which we have designed based on project profile.

If I add a logic to call a new sub-screen in screen 600 logic, it won't allow as screen 600 is of sub-screen type not normal screen! and to call a sub-screen in 600 logic, we have to give one more sub-screen. Additional sub-screen I can design but how to replace the current block with a new one seems difficult!

0 Kudos
654

The current 600 dynpro must be copied to one of the new dynpro, and only keep in dynpro 600 fields that must be always available (none?) and a subscreen area then display eiher the new copied dynpro or one of the new profile dynpros.

Regards,

Raymond

0 Kudos
655

I found the answer myself. To replace the current screen elements with new screen elements, keep the old screen elements in a group and display them according to the group.

LOOP AT SCREEN.

       IF screen-group1 = 'CON'. " CON is group name

         screen-active = 0.

         MODIFY SCREEN.

       ENDIF.

     ENDLOOP.


This command will hide all those screen elements which belong to 'CON' group.

Former Member
0 Kudos
654

Dear Vishal,

I want to add one extra tab in CJ20N transaction.Customer Enhancement tab already been used..

Could you please guide me, how to add one more tab.

Thanks in Advance.

Regards,

Rajkumar.

0 Kudos
654

Hi Rajkumar,

You cannot add a new tab since SAP provides only one tab in which you can add additional fields. May be you can add your fields in same tab and hide others based on conditions.

please refer to my answer in this post itself. may be it can help you.

Regards,

Vishu