Posts

Showing posts from November, 2017

Selection screen Error Problems

FORM f_datevalidation .   IF sy-ucomm = 'ONLI'.     IF  s_bedat-low IS  INITIAL AND sa_det <> gc_x.       MESSAGE e006.     ENDIF.     IF s_erdat-low IS  INITIAL.       MESSAGE e007.     ENDIF.   ENDIF. ENDFORM. 

how to call samrtfroms

data type : DATA : fm_name TYPE rs38l_fnam,        ls_ctrlop TYPE ssfctrlop,        ls_compop TYPE ssfcompop. * call smartfroms CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'     EXPORTING       formname = 'ZINQM015SF_TICKET_FORMAT'     IMPORTING       fm_name  = fm_name     EXCEPTIONS      NO_FORM  = 1      NO_FUNCTION_MODULE       = 2      OTHERS   = 3     .   IF sy-subrc <> 0. * Implement suitable error handling here   ENDIF. **    .   IF sy-subrc <> 0. ** Implement suitable error handling here   ENDIF.   ls_ctrlop-no_dialog = 'X'.   ls_ctrlop-preview = 'X'.   ls_compop-tddest = 'LP01'. CALL FUNCTION fm_name   EXPORTING     control_parameters = ls_ctrlop     output_options     = ls_compop     user_settings      = 'X'     gs_final                   = gs_final  EXCEPTIONS    FORMATTING_ERROR           = 1    INTERNAL_ERROR             = 2    SEND_ERROR                 = 3    USER_CANCELED