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

Disabling The SAVE button on calling a screen.

Former Member
0 Likes
5,767

When i call a Z transaction from my report i want to disable the SAVE Button can any one help me out with this . how do i go about it?

When i call a Z transaction from my report i want to disable the SAVE Button can any one help me out with this . how do i go about it?

11 REPLIES 11
Read only

Former Member
0 Likes
3,233

Hi,

You can define your own PF-STATUS in the report and you can disable it.

Thanks & Regards,

Roja Velagapudi.

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
3,233

hi,

SET PF-STATUS 'NAME' EXCLUDING 'SAVE'  "---> SAVE is the function code of the save button.

Read only

Former Member
0 Likes
3,233

Hi,

You can use EXCLUDING option in set PF-status.

Regards,

jaya

Read only

Former Member
0 Likes
3,233

hi,

Since its a ZTRANSACTION, in the PF-STATUS which you set to appear on the transaction, avoid assigning function code to the SAVE button this way , you can exclude save button appearing in the PF-STATUS.

Thanks

Sharath

Read only

Former Member
0 Likes
3,233

hi

you can use following statment in at point wher you want to disable it....

set pf-status (name of your pf-status) excluding 'SAVE' (its sy-ucomm value) immediatly.

regards

Read only

Former Member
0 Likes
3,233

Hi,

Use SET PF-STATUS and use EXCLUDING option in set PF-status

Regards,

Jyothi CH.

Read only

Former Member
0 Likes
3,233

Hi,

U can do this by setting pf-status.

In this only write required function codes in the tool bars.

This works.

Read only

Former Member
0 Likes
3,233

Hi,

Use SET PF-STATUS and use EXCLUDING option in set PF-status

Regards,

Jyothi CH.

Read only

Former Member
0 Likes
3,233

Hi,

if the SAVE button is displyed with the help of PF-STATUS,

then use the statement

set pf-status 'STATUS_NAME' excluding 'SAVE'.

else if its a pushbutton on the selection screen.

then

at selection-screen output.
loop at screen.
if screen-name CS 'SAVE'.
screen-active = 0.
modify screen.
endif.
endloop.

Regards

Siddarth

Read only

Former Member
0 Likes
3,233

To disable the SAVE button with PF-STATUS,

SET PF-STATUS 'SAVE_BUT' EXCLUDING 'SAVE'.

Regards,

Joan

Read only

Former Member
0 Likes
3,233

Hi Dilip,

You have to set the pf status in your program and then exclude function codes in that pf-status

created and then pass them in function module Reuse_alv_grid_display.

-->to create pf-status

FORM pf_status USING rt_extab TYPE slis_t_extab.

SET PF-STATUS 'FIRST'.

ENDFORM. "PF_STATUS -->and pass this form name in the function module's this line

i_callback_pf_status_set = 'PF_STATUS'

-->And then exclude your save button function code from the pf status created by:

-->Declaration of internal tables for Excluding save button

DATA: itab_exclude TYPE slis_t_extab,

wa_exclude TYPE slis_extab.

--.To pass this itab in this parameter of the Reuse.. FM:

it_excluding = itab_exclude

wa_exclude-fcode = '&LFO'.

APPEND wa_exclude TO itab_exclude.

CLEAR wa_exclude.

wa_exclude-fcode = '&NFO'.

APPEND wa_exclude TO itab_exclude.

CLEAR wa_exclude.

Hope it helps

Regrds

Mansi