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

CJ20N changes

Former Member
0 Likes
697

I searched over and over again but couldn't find a thread for the following so here goes my first post Please let me know if you know the solution.

I have added a custom sub-screen (with tab-strip) in CJ20N using CNEX0007. Everything is working fine except that I just realized that when users toggle between Edit / Display mode, the sub-screen with tabstrips doesn't toggle. It always stays in the Edit mode. I thought there might be a system filed which might tell the status of the main screen but I couldn't find any. I am looking for a trigger that tells me the status of the main screen so that I can do my PBO to make subscreen display only or in edit mode.

Overall, how do I toggle subscreen in edit/display mode along with the main screen?

thanks & regards,

Gowd.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
591

Hi,

Hope the previous code helps you,

in PAI event write :

case sy-ucom.

when <tabstrip Control name>-ActiveTab = < tabstrip name > .

Dynnr = ' sub screen no. ' . "Dynnr type sy-dynnr

EndCase.

Cheers,

Chaitanya.

2 REPLIES 2
Read only

KalC
Active Participant
0 Likes
591

Hi Muneshwar,

Assign group IDs to your fields in the subscreen. Using the transaction code you can check whether the mode is display or change or debug and check sy-ucomm when ever you toggle between display and change. Based on this write code in PBO of your subscreen using SCREEN i.e LOOP at screen.

Please let me know if you require further info.

Regards,

Kalyan.

Read only

Former Member
0 Likes
592

Hi,

Hope the previous code helps you,

in PAI event write :

case sy-ucom.

when <tabstrip Control name>-ActiveTab = < tabstrip name > .

Dynnr = ' sub screen no. ' . "Dynnr type sy-dynnr

EndCase.

Cheers,

Chaitanya.