Last active
May 17, 2018 18:34
-
-
Save iespino00/2a438ade4000c6240e8e832eac3f62b9 to your computer and use it in GitHub Desktop.
SmartForm Functions in ABAP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FORM IMPRIMIR_FORMULARIO . | |
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' | |
EXPORTING | |
formname = 'ZSMARTIER' "It can be any name of the form | |
IMPORTING | |
FM_NAME = l_funcion | |
EXCEPTIONS | |
NO_FORM = 1 | |
NO_FUNCTION_MODULE = 2 | |
OTHERS = 3. | |
. | |
IF sy-subrc <> 0. | |
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO | |
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. | |
endif. | |
if sy-subrc = 0. | |
CALL FUNCTION l_funcion "It can be any name. | |
EXPORTING | |
fldate = date1 "Field to send Number 1 | |
carrier = carrier1 "Field to send Number 2 | |
connection = connection1 Field to send Numer 3 | |
TABLES | |
gs_sbook = ti_sbook "Table to send | |
EXCEPTIONS | |
formatting_error = 1 | |
internal_error = 2 | |
send_error = 3 | |
user_canceled = 4 | |
others = 5. | |
ENDIF. | |
ENDFORM. " IMPRIMIR_FORMULARIO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment