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

Pushbutton in Tabstrip (module pool program)

former_member628175
Active Participant
0 Likes
1,631

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 ?

9 REPLIES 9
Read only

Former Member
0 Likes
1,232

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.

Read only

0 Likes
1,232

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

Read only

0 Likes
1,232

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.

Read only

0 Likes
1,232

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

Read only

0 Likes
1,232

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.

Read only

0 Likes
1,232

Yeah i am using subscreen

Read only

0 Likes
1,232

and have you tried the code in the PBO of the subscreen?

Read only

0 Likes
1,232

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 ?

Read only

Former Member
0 Likes
1,232

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)