Skip to Content
avatar image
Former Member

PRINT BUTTON DOES NOT WORK IN DIALOG

HELLO FRIENDS,

Can anyone help me solve the problem we have with the PRINT button. When I click on the PRINT button in the dialog box, I get nex message: Requested function PRINT is not available here. My code is:

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING


formname = 'ZMM_PROMJENA_CIJENE_HEP'
* VARIANT = ' '
* DIRECT_CALL = ' '


IMPORTING
fm_name = gv_func_mod_name.
* EXCEPTIONS
* NO_FORM = 1
* NO_FUNCTION_MODULE = 2
* OTHERS = 3


CALL FUNCTION gv_func_mod_name
EXPORTING

* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
IS_MLIT = LS_MLIT
IS_T001W = LS_T001W
IS_BKPF = LS_BKPF
IS_MLHD = p_MLHD
IS_MAKT = LS_MAKT
IS_MLCR = LS_MLCR
IS_BSEG = LS_BSEG
IS_SKAT = LS_SKAT
gt_tabela = gt_tablica1
gt_tab = gt_tablica2


* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 20, 2017 at 06:14 AM

    Hi Josko,

    implement the following code and set a breakpoint to read the messages. It's just to common what you ask for, because there are a 100 different reasons why it could end up there.

    DATA:  lt_sferrors   TYPE tsferror.    
        CALL FUNCTION 'SSF_READ_ERRORS'
              IMPORTING
                errortab = lt_sferrors.
    
            LOOP AT lt_sferrors INTO DATA(ls_error).
    
      *1.     local Variable
              MESSAGE ID ls_error-msgid TYPE ls_error-msgty
                      NUMBER ls_error-msgno
                      WITH ls_error-msgv1 ls_error-msgv2
                           ls_error-msgv3 ls_error-msgv4
                    INTO lv_message.
    
            ENDLOOP.
    
    

    ~Florian

    Add comment
    10|10000 characters needed characters exceeded