2015 Dec 03 6:56 AM
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:
2015 Dec 17 4:35 AM
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.
2015 Dec 03 7:57 AM
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
2015 Dec 03 8:21 AM
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
2015 Dec 03 9:26 AM
Do not put your logic in standard screen, but in the screen 0600 of the exit function group.
2015 Dec 03 9:49 AM
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!
2015 Dec 03 10:44 AM
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
2015 Dec 17 4:35 AM
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.
2016 Apr 27 10:59 AM
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.
2016 Apr 28 9:17 AM
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