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 = 4
OTHERS = 5
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
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 = 4
OTHERS = 5
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Comments
Post a Comment