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

RF button modification

Former Member
0 Likes
3,664

Hi,

On screen 2502 I have buttons <F2 Save><F4 - Next>...

Now I want to make button <F4 Next> disapeared.

What should I do ??

Please help.

Regards,

Greg

7 REPLIES 7
Read only

Former Member
0 Likes
2,730

hi,

you should disable conditon under the function code.

thanks,

<b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
2,730

Hi,

You can use Screen Variant.

Go to transaction SHD0 for Creating Variant.

Here you have the options to Hide particular Button,

Thanks,

<b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
2,730

case sy-ucomm.

when f2.

screen-invisible = 1.

modify screen.

<b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
2,730

Hi

Either Modify the PF status of that screen by removing that button(if you have access) or

write the code to make it inactive .

Regards

Anji

Read only

Former Member
0 Likes
2,730

Hi,

Based on the screen flow, you can disable a button. You need to write your coding in the PBO of the screen. below sample code FYI:

CASE sy-dynnr.

*..For 9000 and 9001

WHEN '9000' OR '9001'.

*..If inspection lot and operation number are not entered,

*..hide the remaining fields from the initial screen

IF scr_opern IS INITIAL.

gv_init = gc_x.

LOOP AT SCREEN.

IF screen-group1 = 'GR1'.

screen-input = 0.

screen-invisible = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

endcase.

Regards,

JLN

Read only

0 Likes
2,569

That is right from the SAP RF environment point of view. You can't just hide the button in program. You should manage it via status.

Read only

Former Member
0 Likes
2,730

Ok but screen is in function group SAPLLMOB wich I can'y modify