SAP STRF_CALL_TP Function Module for
STRF_CALL_TP is a standard strf call tp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for strf call tp FM, simply by entering the name STRF_CALL_TP into the relevant SAP transaction such as SE37 or SE38.
Function Group: STRF
Program Name: SAPLSTRF
Main Program: SAPLSTRF
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function STRF_CALL_TP pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'STRF_CALL_TP'".
EXPORTING
* CALL_NOW = 'X' "
* PAR7 = ' ' "
* PAR8 = ' ' "
* PAR9 = ' ' "
* CALL_OFFLINE = 'X' "
* CLIENT = SY-MANDT "
* PAR1 = ' ' "
* PAR2 = ' ' "
* PAR3 = ' ' "
* PAR4 = ' ' "
* PAR5 = ' ' "
* PAR6 = ' ' "
IMPORTING
COMMAND_STRING = "
TABLES
RESULT_TABLE = "
EXCEPTIONS
CALL_FAILED = 1 MISSING_PARAM = 2
IMPORTING Parameters details for STRF_CALL_TP
CALL_NOW -
Data type: TRPARI-S_CALL_NOWDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR7 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR8 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR9 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALL_OFFLINE -
Data type: TRPARI-S_CALL_OFFDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT -
Data type: SY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR1 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR2 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR3 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR4 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR5 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PAR6 -
Data type: TRPARI-S_CALL_PARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for STRF_CALL_TP
COMMAND_STRING -
Data type: TRPARI-S_RESULTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for STRF_CALL_TP
RESULT_TABLE -
Data type: TPRESULTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CALL_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_PARAM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for STRF_CALL_TP Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_call_now | TYPE TRPARI-S_CALL_NOW, " 'X' | |||
lv_call_failed | TYPE TRPARI, " | |||
lt_result_table | TYPE STANDARD TABLE OF TPRESULT, " | |||
lv_command_string | TYPE TRPARI-S_RESULT, " | |||
lv_par7 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par8 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par9 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_call_offline | TYPE TRPARI-S_CALL_OFF, " 'X' | |||
lv_missing_param | TYPE TRPARI, " | |||
lv_client | TYPE SY-MANDT, " SY-MANDT | |||
lv_par1 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par2 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par3 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par4 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par5 | TYPE TRPARI-S_CALL_PAR, " SPACE | |||
lv_par6 | TYPE TRPARI-S_CALL_PAR. " SPACE |
  CALL FUNCTION 'STRF_CALL_TP' " |
EXPORTING | ||
CALL_NOW | = lv_call_now | |
PAR7 | = lv_par7 | |
PAR8 | = lv_par8 | |
PAR9 | = lv_par9 | |
CALL_OFFLINE | = lv_call_offline | |
CLIENT | = lv_client | |
PAR1 | = lv_par1 | |
PAR2 | = lv_par2 | |
PAR3 | = lv_par3 | |
PAR4 | = lv_par4 | |
PAR5 | = lv_par5 | |
PAR6 | = lv_par6 | |
IMPORTING | ||
COMMAND_STRING | = lv_command_string | |
TABLES | ||
RESULT_TABLE | = lt_result_table | |
EXCEPTIONS | ||
CALL_FAILED = 1 | ||
MISSING_PARAM = 2 | ||
. " STRF_CALL_TP |
ABAP code using 7.40 inline data declarations to call FM STRF_CALL_TP
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single S_CALL_NOW FROM TRPARI INTO @DATA(ld_call_now). | ||||
DATA(ld_call_now) | = 'X'. | |||
"SELECT single S_RESULT FROM TRPARI INTO @DATA(ld_command_string). | ||||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par7). | ||||
DATA(ld_par7) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par8). | ||||
DATA(ld_par8) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par9). | ||||
DATA(ld_par9) | = ' '. | |||
"SELECT single S_CALL_OFF FROM TRPARI INTO @DATA(ld_call_offline). | ||||
DATA(ld_call_offline) | = 'X'. | |||
"SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
DATA(ld_client) | = SY-MANDT. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par1). | ||||
DATA(ld_par1) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par2). | ||||
DATA(ld_par2) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par3). | ||||
DATA(ld_par3) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par4). | ||||
DATA(ld_par4) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par5). | ||||
DATA(ld_par5) | = ' '. | |||
"SELECT single S_CALL_PAR FROM TRPARI INTO @DATA(ld_par6). | ||||
DATA(ld_par6) | = ' '. | |||
Search for further information about these or an SAP related objects