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: 

Skip First Screen 'SLG1'

techy
Explorer
0 Kudos

Hey,

in an alv the user klicks a defined button and thoe transaction 'slg1' is opened. Unfortunately, the first screen appears although there is the command skip first screen.

Code:

  METHOD on_user_command.

    CASE e_salv_function.

      WHEN 'SHOWLOG'.

        SET PARAMETER ID 'BALOBJ' FIELD 'ZDBS_AZUBI_ELEMENT'.

        CALL TRANSACTION 'SLG1' AND SKIP FIRST SCREEN.

    ENDCASE.

Could you please help me?

1 ACCEPTED SOLUTION

former_member188827
Active Contributor
0 Kudos

Use function module " APPL_LOG_DISPLAY" for this. set parameter "SUPPRESS_SELECTION_DIALOG" = 'X'.

CALL FUNCTION 'APPL_LOG_DISPLAY'

  EXPORTING

    OBJECT                               = zdbs_azubi_element

    DATE_FROM                            date_from

    DATE_TO                              = date_to

    SUPPRESS_SELECTION_DIALOG            = 'X'

  EXCEPTIONS

    NO_AUTHORITY                         = 1

    OTHERS                               = 2

           .

IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards

6 REPLIES 6

SimoneMilesi
Active Contributor
0 Kudos

i think you have to manage the 'F8' via a little bdc to pass in call transaction

0 Kudos

This way I already tried and it doesn't go

0 Kudos

Hey,

refer below code..

former_member188827
Active Contributor
0 Kudos

Use function module " APPL_LOG_DISPLAY" for this. set parameter "SUPPRESS_SELECTION_DIALOG" = 'X'.

CALL FUNCTION 'APPL_LOG_DISPLAY'

  EXPORTING

    OBJECT                               = zdbs_azubi_element

    DATE_FROM                            date_from

    DATE_TO                              = date_to

    SUPPRESS_SELECTION_DIALOG            = 'X'

  EXCEPTIONS

    NO_AUTHORITY                         = 1

    OTHERS                               = 2

           .

IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards

0 Kudos

the command SUPRESS_SELECTION_DIALOG = 'X' blocks completley the call of this transaction.

0 Kudos

Make sure that log exists on specified date otherwise FM wont display any result. Try passing appropriate date range and see. By default FM uses current date to display results.

Regards