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

how to disable BACK-button, SAVE button in specific ABAP ?

Former Member
0 Likes
4,423

hi,

i have 2 z-abaps, which are called in HTML-SAP-GUI

now i want to hide the buttons for 'BACK' and 'SAVE' in the selection screen.

how to handle this ? i am using FM RS_SET_SELSCREEN_STATUS

to hide other buttons, but is this also possible for the above mentioned ones ??

reg, Martin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,388

check this sample

REPORT  ztest_status.

DATA: it_ucomm TYPE TABLE OF sy-ucomm.

PARAMETERS: carrid TYPE sflight-carrid.


AT SELECTION-SCREEN OUTPUT.
  APPEND :
    'PRIN' TO it_ucomm,  "for print
    'SPOS' TO it_ucomm,
    'ONLI' TO it_ucomm,  "for execute
    'E' TO it_ucomm,    "for back
    'ENDE' TO it_ucomm,  "for exit
    'ECAN' TO it_ucomm.  "for cancel

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = sy-pfkey
    TABLES
      p_exclude = it_ucomm.

hi,

i have 2 z-abaps, which are called in HTML-SAP-GUI

now i want to hide the buttons for 'BACK' and 'SAVE' in the selection screen.

how to handle this ? i am using FM RS_SET_SELSCREEN_STATUS

to hide other buttons, but is this also possible for the above mentioned ones ??

reg, Martin

10 REPLIES 10
Read only

Former Member
0 Likes
2,388

Use the SET PF-STATUS command with the EXCLUDING addition.

DATA fcode TYPE TABLE OF sy-ucomm.

...

MODULE status_0100 OUTPUT.

APPEND 'CHANGE' TO fcode.

APPEND 'SAVE' TO fcode.

SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.

ENDMODULE.

Where CHANGE and SAVE are the function codes.

Read only

0 Likes
2,388

thanks,

but how should my program know about MODULE status_0100 OUTPUT.

how to call this module ????

reg, Martin

Read only

Former Member
0 Likes
2,388
Read only

Former Member
0 Likes
2,389

check this sample

REPORT  ztest_status.

DATA: it_ucomm TYPE TABLE OF sy-ucomm.

PARAMETERS: carrid TYPE sflight-carrid.


AT SELECTION-SCREEN OUTPUT.
  APPEND :
    'PRIN' TO it_ucomm,  "for print
    'SPOS' TO it_ucomm,
    'ONLI' TO it_ucomm,  "for execute
    'E' TO it_ucomm,    "for back
    'ENDE' TO it_ucomm,  "for exit
    'ECAN' TO it_ucomm.  "for cancel

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = sy-pfkey
    TABLES
      p_exclude = it_ucomm.

Read only

0 Likes
2,388
AT SELECTION-SCREEN OUTPUT.
  APPEND :
    'PRIN' TO it_ucomm,  "for print
    'SPOS' TO it_ucomm,
    'ONLI' TO it_ucomm,  "for execute
    'E' TO it_ucomm,    "for back
    'ENDE' TO it_ucomm,  "for exit
    'ECAN' TO it_ucomm.  "for cancel

yeeeeeees, thats working !

but one thing left: how is the function code for SAVE ??? the save button is still there.

with 'E' i was able to hide the back-button ! thats fine.

reg, Martin

Read only

0 Likes
2,388
APPEND :
    'PRIN' TO it_ucomm,  "for print
    'SPOS' TO it_ucomm,  "is for save

For me it s in Disable mode. what about you.

Read only

0 Likes
2,388

Vijay,

thanks a lot !!!! it is working !!!!

full points for you !!

reg, Martin

Read only

0 Likes
2,388

it works for me also.thank you vijay dudla.

Read only

0 Likes
2,388

Dear VIjay,

     How Did U Get the User Commands Like 'PRIN' and 'SPOS'.

     I have analysed the above Code, I tried to Debug the FM: RS_SET_SELSCREEN_STATUS

     But it is Not going into the FM.

     Can U explain why it is Not going in to Debugging.

Read only

Former Member
0 Likes
2,388

Actually, As per the requirement two selection screens are there. In the 2nd Screen, I want to disable back , exit and cancel button and your suggestion is not working for this scenario.

Could anyone suggest me some idea ?