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: 

RF button modification

Former Member
0 Kudos
2,342

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

Former Member
0 Kudos
1,408

hi,

you should disable conditon under the function code.

thanks,

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

Message was edited by:

Alvaro Tejada Galindo

Former Member
0 Kudos
1,408

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

Former Member
0 Kudos
1,408

case sy-ucomm.

when f2.

screen-invisible = 1.

modify screen.

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

Message was edited by:

Alvaro Tejada Galindo

Former Member
1,408

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

Former Member
0 Kudos
1,408

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

0 Kudos
1,247

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.

Former Member
0 Kudos
1,408

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