Skip to end of metadata
Go to start of metadata

Author: Sudeesh Kumar Ravindran

Submitted:  April 5th, 2011

Description :

Creating a new button on the application toolbar of the standard screen. Using the SSCRFIELDS( Fields on selection screens ).

How to create a new button on the application toobar.

Create a report program of attribute type executable type using the transaction SE38.

Example:

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'
TABLES : sscrfields.                                            " Structure for Fields on selection screens

SELECTION-SCREEN FUNCTION KEY 1.                                " Function Key for the Button

SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-001.  " Selection Screen to display the Program Name
PARAMETERS  : p_pname   TYPE syrepid.                           " Program Name
SELECTION-SCREEN END OF BLOCK b01.

INITIALIZATION.
  p_pname = sy-repid.                                           " Pass the Program Name
  MOVE 'User Details' TO sscrfields-functxt_01.                 " Pass the Button Name

AT SELECTION-SCREEN.
  IF sy-ucomm EQ 'FC01'.                                        " Check the sy-ucomm  value

    MESSAGE i000(zcode) WITH sy-uname.                          " Display the User name
  ENDIF.

I hope this will be useful one.

With regards,

Sudeesh Kumar Ravindran

  • No labels

1 Comment

  1. Thank you very much.