08-29-2014 9:54 AM
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?
08-29-2014 10:08 AM
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
08-29-2014 9:59 AM
i think you have to manage the 'F8' via a little bdc to pass in call transaction
08-29-2014 10:05 AM
08-29-2014 10:08 AM
08-29-2014 10:08 AM
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
08-29-2014 10:31 AM
the command SUPRESS_SELECTION_DIALOG = 'X' blocks completley the call of this transaction.
08-29-2014 10:43 AM
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