‎2008 Jan 04 9:25 AM
Hello All,
I am working on ECR/ECO and as per the requirement i'll need to insert three button and table control in the tabstrip .
Now conditonally, i need to hide one of the button but when i have done the coding as LOOP at screen , i am not able to find the Buttons in this loop.Is there anything that i'll need to be taken care of while inserting the push button in the tabstrip ?
‎2008 Jan 04 9:31 AM
Hi,
assign the button to a screen group and then.
loop at screen.
if screen-group1 = <ur group>.
screen-active = 0.
endif.
modify screen.
endloop.
Regards,
Renjith Michael.
‎2008 Jan 04 10:03 AM
Renjith,
I tried it but it's not working , my problem is that whenever i am doing LOOP AT SCREEN , it will show all the elements present in the table control only and hence assigning a group won't work in this case.Any other alternative please
‎2008 Jan 04 10:10 AM
Hi,
If it is a push button sith function code,
data:
itab type table of char5.
append 'FUNC' to itab.
where FUNC will be the function code.
then in PBO you can write
set pf-status <your status> excluding itab.
If it is a particular field,
loop at screen.
if screen-field_name = <your field name>.
screen-input = 0. hides the field
screen-active = 0. make to display mode.
endif.
modify screen.
endloop.
regards,
Renjith Michael.
‎2008 Jan 04 10:37 AM
That's where the problem lies,
loop at screen.
if screen-field_name = <your field name>.
screen-input = 0. hides the field
screen-active = 0. make to display mode.
endif.
modify screen.
endloop.
In this code i am not able see the buttons fields in the screen structure.Maybe in Tabstrip having table control have different behaviour and it skips the element in the tabstrip and start with table control element.Any suggestion
‎2008 Jan 04 11:04 AM
Hi,
I think you have used subscreens for tabstrip, for display of values. In which screen's PBO did you try the code, main scree or subscreen?
Regards,
Renjith Michael.
‎2008 Jan 04 11:11 AM
‎2008 Jan 04 11:14 AM
‎2008 Jan 04 11:16 AM
yeah tried in both the screen PBO but the button element still missing in the LOOP at SCREEN?Is there anyhting that i should take care in subscreen ?
‎2008 Jan 04 11:51 AM
Hi,
do u want to hide the tab dynamically?
if this is the case then do this in pbo.
loop at screen.
if screen-name = 'TAB1'.
SCREEN-INVISIBLE = 1.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
take care of the case (upper or lower in the screen name)