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

Selection screen Issue

Former Member
0 Likes
978

hi all ,

Is it possible to show only Execute button on the selection screen but nothing else ?

Main purpose is to create a Z-transaction which only contain an Execute button but nothing else, if i click this button , an program is executed.

so, please help .

best regards

Kevin

10 REPLIES 10
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
946

You can try to NO-DISPLAY(do an F1 on this & check SAP documentation)the selection-screen element. Try & revert back.

BR,

Suhas

Read only

Former Member
0 Likes
946

Hi,

I think so why dont you try putting a dummy parameter with no-display.

parameter : p_para no-display.

Regards,

Himanshu

Read only

0 Likes
946

hello ,

thanks for the replies , i have tried . but i still cannot get the selection screen .

parameters: p_temp type c no-display.

this doesn't work .

any other idea?

Regards

Kevin

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
946

Hello,

Then AT SELECTION-SCREEN OUTPUT try to make that dummy param INVISIBLE by LOOP'ing AT SCREEN.

BR,

Suhas

Read only

0 Likes
946

Hi,

I am not sure how much this will help you.. But this is one option which i see.


TYPE-POOLS icon.
SELECTION-SCREEN:
  BEGIN OF SCREEN 500 AS WINDOW TITLE title,
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1
                           VISIBLE LENGTH 10,
  END OF SCREEN 500.



START-OF-SELECTION.
  title  = 'Push button'.
  but1 = 'Button 1'.


  CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

This will create a push button in the screen .. this can be used for execution.. use the function code.

Regards

Ansari

Read only

0 Likes
946

Hi,

Adding to the above reply..


PARAMETERS p_mat type matnr.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    if screen-name = 'P_MAT'.
      screen-invisible = 1.
      screen-active = 0.
       MODIFY SCREEN.
     endif.

     IF screen-name = '%_P_MAT_%_APP_%-TEXT'.
      screen-invisible = 1.
      screen-active = 0.
       MODIFY SCREEN.
     ENDIF.

     ENDLOOP.

It workks fine.

Regards

Ansari

Read only

0 Likes
946

hi all ,

thanks for your answers ! especially the ones who give this kind of tips !

the code below works . just like I expect .



PARAMETERS p_dummy TYPE c.

AT SELECTION-SCREEN OUTPUT .
  LOOP AT SCREEN.
    screen-active = '0'.
    MODIFY SCREEN.
  ENDLOOP.

Best regards

Kevin

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
946

Goto se80->choose program RSSYSTDB->GUI Status %_00->right click copy->.

give your program name and GUI status name.

Goto se41->program name and GUI name->change->delete the functions which ever not required->activate

In your program initialization event set your new pf status

Read only

venkat_o
Active Contributor
0 Likes
946

Hi Kevin, Try this way. It works.

   REPORT  ZVENKAT_MAIL_SIMPLE.
   PARAMETERS :P_DATA.
   AT SELECTION-SCREEN OUTPUT.
     LOOP AT SCREEN.
       IF SCREEN-NAME = 'P_DATA'                 OR
          SCREEN-NAME = '%_P_DATA_%_APP_%-TEXT'.
         SCREEN-ACTIVE = '0'.
         MODIFY SCREEN.
       ENDIF.
     ENDLOOP.
Thanks Venkat.O

Read only

Former Member
0 Likes
946

Yes it is possible do like this

Example

PARAMETERS: p_par1 TYPE c MODIF ID gr1,

p_par2 type c MODIF ID gr1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'GR1'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Now create a t-code for report and when u execute the t-code you will see only the exexute icon.

Hope this will help u.