Application Development 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: 

how to disable the screen which is to be in display mode

anil_kumar98
Participant
0 Kudos

hi here is requirement need to display is display mode the table control save button remaining cancel should not be in the display mode

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Anil,

Try the following logic:

Loop At screen.

If screen-name is nt equal to <Button Name>.

Set screen-input as zero.

Modify Screen.

endif.

endloop.

This should help.

Regards,

Sonal

3 REPLIES 3

Former Member
0 Kudos

Hi Anil,

Try the following logic:

Loop At screen.

If screen-name is nt equal to <Button Name>.

Set screen-input as zero.

Modify Screen.

endif.

endloop.

This should help.

Regards,

Sonal

Former Member
0 Kudos

Hi,

Go for this logic.

Loop at screen.

if screen-name = <fieldname>.

screen-name-input = 0.

endif.

Do same for all fields in the table control.

endloop.

I will surely helps.

Regards,

Angi.

Former Member
0 Kudos

Hi Anil,

As you know in the PBO,the first module will contain

set pf-status 'XXXXX'...what we need to do is remove save from it for some particular case....

so here is what you do..in display mode you must be having a different tcode or some field to identify that it is a display mode

The PF status of the field should be excluded of "SAVE"

do the following.....

imagine we are having va01\va02\va03

so write the logic..imagine if XXXXX is your pf-status....

SAVE must be the function code you need to disable

DATA fcode TYPE TABLE OF sy-ucomm.

if sy-tcode = 'VA03'.

APPEND 'SAVE' TO fcode.

SET PF-STATUS 'XXXXX' EXCLUDING fcode.

endif.

now 'SAVE' will not be displayed on the screen..

Reward if helpful

Regards

Byju

.