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

disabling subscreen fields..

Former Member
0 Likes
2,057

hi,

i have a screen with a subscreen that has a tabstrip with 5 tabs.

during one of the operations i need to disable all the fields in all the screen areas of that screen inclduing the subscreen tabstrip fields.

its not working, in my PBO module i write as follows:

LOOP AT SCREEN.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDLOOP.

only the fields of the current screen are disabled. the fields in the tabstrip in subscreen are still in input mode !! what to do ?

thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,215

you need to do the same logic for the subscreen also.

if you placed the above logic for main screen . place the same logic for subscreens also.

main screen logic

process before output.

 call subscreen sub including sy-repid '0200'.
  module status_0100.
*
process after input.
 module user_command_0100.

subscreen logic.

process before output.
* MODULE STATUS_0200.
  module status_0100.
*
process after input.
* MODULE USER_COMMAND_0200.

module code.

module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
loop at screen.
 screen-input = 0.
 modify screen.
endloop.
endmodule.                 " STATUS_0100  OUTPUT

this work for me, you try it from your end.

6 REPLIES 6
Read only

Former Member
0 Likes
1,215

also i get a message in the status bar at runtime that says

"Protected tab titles are not supported...".

Read only

Former Member
0 Likes
1,216

you need to do the same logic for the subscreen also.

if you placed the above logic for main screen . place the same logic for subscreens also.

main screen logic

process before output.

 call subscreen sub including sy-repid '0200'.
  module status_0100.
*
process after input.
 module user_command_0100.

subscreen logic.

process before output.
* MODULE STATUS_0200.
  module status_0100.
*
process after input.
* MODULE USER_COMMAND_0200.

module code.

module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
loop at screen.
 screen-input = 0.
 modify screen.
endloop.
endmodule.                 " STATUS_0100  OUTPUT

this work for me, you try it from your end.

Read only

0 Likes
1,215

hey , I am able to disable the fields...but still getting the message ""Protected tab titles are not supported..." when i select every tab in the tabstrip ..any idea why is it displayed ??

thks

Read only

0 Likes
1,215

You are getting the message because you are trying the make the TABs as input disable field.

Don't change anything for tab control. Like:


loop at screen.
if screen-name NE 'TABCONTROL'
 screen-input = 0.
 modify screen.
endif.
endloop.

Regards,

Naimesh Patel

Read only

0 Likes
1,215

yes Naimesh it helped. thanks..

Read only

Former Member
0 Likes
1,215

hiii

try using

LOOP AT SCREEN.

SCREEN-ENABLE = 0.

MODIFY SCREEN.

ENDLOOP.

regards

twinkal