SAP TRINT_TP_INTERFACE Function Module for









TRINT_TP_INTERFACE is a standard trint tp interface 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 trint tp interface FM, simply by entering the name TRINT_TP_INTERFACE into the relevant SAP transaction such as SE37 or SE38.

Function Group: STPA
Program Name: SAPLSTPA
Main Program: SAPLSTPA
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TRINT_TP_INTERFACE 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 'TRINT_TP_INTERFACE'"
EXPORTING
IV_TP_COMMAND = "tp command (SHOWBUFFER,IMPORT,...)
* IV_FEEDBACK = "ID for feedback job (Workflow, UserExit,...)
* IV_TP_TPPARAM = "Alternative TPPARAM (only for test purposes)
* IV_TP_DESTINATION = "Alternative RFC destination (only for test purposes)
* IV_PRID_TEXT = "
* IV_PRID_MIN = 0 "
* IV_PRID_MAX = 100 "
* IV_HOLD_CONNECT_TIMES = 10 "
* IT_TARFILTER = "
* IV_SYSTEM_NAME = "System name
* IV_TRANSPORT_REQUEST = "Transport request
* IV_CLIENT = "Client
* IV_CLIENT_RESTRICT = "
* IV_PROJECT = "Project in Change and Transport System
* IV_UMODES = "R3trans umodes
* IV_TP_OPTIONS = "Options for tp
* IV_OFFLINE = ' ' "Start tp in the background

IMPORTING
EV_INTERFACE_VERSION = "Version of tp interface
EV_TP_MESSAGE = "tp short message
EV_TP_VERSION = "tp version
EV_TP_SOURCE = "
EV_R3TRANS_SOURCE = "
EV_TPSTAT_KEY = "
EV_TP_ALOG = "ALOG file name
EV_TP_SLOG = "SLOG file name
EV_TP_PID = "tp process ID
EV_BUFFER_COUNT = "Number of buffer entries
EV_TRANS_DIR = "
EV_TPPARAM_PATH = "tp parameter file (complete path)
EV_TPPARAM_NAME = "
EV_TP_PATH = "tp program (complete path)
EV_RFC_MESSAGE = "Error message for RFC error
EV_TP_CMD_STRING = "
EV_TP_CMD_LINE = "
EV_TP_RETURN_CODE = "tp return code

TABLES
* TT_OPTIONS = "
* TT_LOGPTR = "
* TT_OBJLST = "
* TT_REQUEST = "
* TT_PROJECT = "
* TT_TARCLI = "
* TT_ARGV = "Call parameter for tp
* TT_STDOUT = "Output from tp
* TT_BUFFER = "Buffer contents (only for SHOWBUFFER)
* TT_BUFCNT = "
* TT_PARAMS = "Contents of tp parameter file (only for SHOWPARAM)

EXCEPTIONS
UNSUPPORTED_TP_COMMAND = 1 INSERT_TPSTAT_FAILED = 10 INSERT_TPLOG_FAILED = 11 INVALID_TP_COMMAND = 2 MISSING_PARAMETER = 3 INVALID_PARAMETER = 4 GET_TPPARAM_FAILED = 5 UPDATE_TP_DESTINATION_FAILED = 6 GET_TMS_INFO_FAILED = 7 PERMISSION_DENIED = 8 TP_CALL_FAILED = 9
.



IMPORTING Parameters details for TRINT_TP_INTERFACE

IV_TP_COMMAND - tp command (SHOWBUFFER,IMPORT,...)

Data type: STPA-COMMAND
Optional: No
Call by Reference: No ( called with pass by value option)

IV_FEEDBACK - ID for feedback job (Workflow, UserExit,...)

Data type: STPA-FEEDBACK
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TP_TPPARAM - Alternative TPPARAM (only for test purposes)

Data type: STPA-FILE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TP_DESTINATION - Alternative RFC destination (only for test purposes)

Data type: RFCDES-RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PRID_TEXT -

Data type: STPA-MESSAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PRID_MIN -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PRID_MAX -

Data type: I
Default: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_HOLD_CONNECT_TIMES -

Data type: I
Default: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TARFILTER -

Data type: TPTARFILTERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SYSTEM_NAME - System name

Data type: STPA-SYSNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TRANSPORT_REQUEST - Transport request

Data type: STPA-TRKORR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CLIENT - Client

Data type: STPA-CLIENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CLIENT_RESTRICT -

Data type: STPA-FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PROJECT - Project in Change and Transport System

Data type: STPA-PROJECT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_UMODES - R3trans umodes

Data type: STPA-UMODES
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TP_OPTIONS - Options for tp

Data type: STPA-OPTIONS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_OFFLINE - Start tp in the background

Data type: STPA-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TRINT_TP_INTERFACE

EV_INTERFACE_VERSION - Version of tp interface

Data type: STPA-VERSION
Optional: No
Call by Reference: Yes

EV_TP_MESSAGE - tp short message

Data type: STPA-MESSAGE
Optional: No
Call by Reference: No ( called with pass by value option)

EV_TP_VERSION - tp version

Data type: STPA-VERSION
Optional: No
Call by Reference: Yes

EV_TP_SOURCE -

Data type: STPA-TIMESTAMP
Optional: No
Call by Reference: Yes

EV_R3TRANS_SOURCE -

Data type: STPA-TIMESTAMP
Optional: No
Call by Reference: Yes

EV_TPSTAT_KEY -

Data type: STPA-TIMESTAMP
Optional: No
Call by Reference: Yes

EV_TP_ALOG - ALOG file name

Data type: STPA-FILE
Optional: No
Call by Reference: No ( called with pass by value option)

EV_TP_SLOG - SLOG file name

Data type: STPA-FILE
Optional: No
Call by Reference: No ( called with pass by value option)

EV_TP_PID - tp process ID

Data type: STPA-PID
Optional: No
Call by Reference: No ( called with pass by value option)

EV_BUFFER_COUNT - Number of buffer entries

Data type: STPA-COUNTER
Optional: No
Call by Reference: No ( called with pass by value option)

EV_TRANS_DIR -

Data type: STPA-FILE
Optional: No
Call by Reference: Yes

EV_TPPARAM_PATH - tp parameter file (complete path)

Data type: STPA-FILE
Optional: No
Call by Reference: Yes

EV_TPPARAM_NAME -

Data type: STPA-FILE
Optional: No
Call by Reference: Yes

EV_TP_PATH - tp program (complete path)

Data type: STPA-FILE
Optional: No
Call by Reference: Yes

EV_RFC_MESSAGE - Error message for RFC error

Data type: STPA-MESSAGE
Optional: No
Call by Reference: Yes

EV_TP_CMD_STRING -

Data type: STPA-CMDSTRING
Optional: No
Call by Reference: Yes

EV_TP_CMD_LINE -

Data type: STPA-CMDLINE
Optional: No
Call by Reference: Yes

EV_TP_RETURN_CODE - tp return code

Data type: STPA-RETCODE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TRINT_TP_INTERFACE

TT_OPTIONS -

Data type: TPSTDOUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_LOGPTR -

Data type: TPLOGPTR
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_OBJLST -

Data type: TPOBJLST
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_REQUEST -

Data type: TPREQUEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_PROJECT -

Data type: TPPROJECT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_TARCLI -

Data type: TPTARCLI
Optional: Yes
Call by Reference: Yes

TT_ARGV - Call parameter for tp

Data type: TPSTDOUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_STDOUT - Output from tp

Data type: TPSTDOUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_BUFFER - Buffer contents (only for SHOWBUFFER)

Data type: TPBUFFER
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_BUFCNT -

Data type: TPBUFCNT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TT_PARAMS - Contents of tp parameter file (only for SHOWPARAM)

Data type: TPPARAMS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

UNSUPPORTED_TP_COMMAND - Command not supported by tp interface

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INSERT_TPSTAT_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INSERT_TPLOG_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_TP_COMMAND - Command not known to tp interface

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MISSING_PARAMETER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_PARAMETER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

GET_TPPARAM_FAILED - Path of TPPARAM could not be determined

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

UPDATE_TP_DESTINATION_FAILED - The RFC destination could not be adapted

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

GET_TMS_INFO_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PERMISSION_DENIED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TP_CALL_FAILED - The tp call failed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TRINT_TP_INTERFACE 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:
lt_tt_options  TYPE STANDARD TABLE OF TPSTDOUT, "   
lv_iv_tp_command  TYPE STPA-COMMAND, "   
lv_ev_interface_version  TYPE STPA-VERSION, "   
lv_unsupported_tp_command  TYPE STPA, "   
lt_tt_logptr  TYPE STANDARD TABLE OF TPLOGPTR, "   
lv_iv_feedback  TYPE STPA-FEEDBACK, "   
lv_ev_tp_message  TYPE STPA-MESSAGE, "   
lv_insert_tpstat_failed  TYPE STPA, "   
lt_tt_objlst  TYPE STANDARD TABLE OF TPOBJLST, "   
lv_ev_tp_version  TYPE STPA-VERSION, "   
lv_iv_tp_tpparam  TYPE STPA-FILE, "   
lv_insert_tplog_failed  TYPE STPA, "   
lv_ev_tp_source  TYPE STPA-TIMESTAMP, "   
lv_iv_tp_destination  TYPE RFCDES-RFCDEST, "   
lv_iv_prid_text  TYPE STPA-MESSAGE, "   
lv_ev_r3trans_source  TYPE STPA-TIMESTAMP, "   
lv_iv_prid_min  TYPE I, "   0
lv_ev_tpstat_key  TYPE STPA-TIMESTAMP, "   
lv_ev_tp_alog  TYPE STPA-FILE, "   
lv_iv_prid_max  TYPE I, "   100
lv_ev_tp_slog  TYPE STPA-FILE, "   
lv_iv_hold_connect_times  TYPE I, "   10
lv_ev_tp_pid  TYPE STPA-PID, "   
lv_it_tarfilter  TYPE TPTARFILTERS, "   
lv_ev_buffer_count  TYPE STPA-COUNTER, "   
lt_tt_request  TYPE STANDARD TABLE OF TPREQUEST, "   
lv_ev_trans_dir  TYPE STPA-FILE, "   
lv_iv_system_name  TYPE STPA-SYSNAME, "   
lv_invalid_tp_command  TYPE STPA, "   
lt_tt_project  TYPE STANDARD TABLE OF TPPROJECT, "   
lv_ev_tpparam_path  TYPE STPA-FILE, "   
lv_missing_parameter  TYPE STPA, "   
lv_iv_transport_request  TYPE STPA-TRKORR, "   
lv_iv_client  TYPE STPA-CLIENT, "   
lt_tt_tarcli  TYPE STANDARD TABLE OF TPTARCLI, "   
lv_ev_tpparam_name  TYPE STPA-FILE, "   
lv_invalid_parameter  TYPE STPA, "   
lt_tt_argv  TYPE STANDARD TABLE OF TPSTDOUT, "   
lv_ev_tp_path  TYPE STPA-FILE, "   
lv_get_tpparam_failed  TYPE STPA, "   
lv_iv_client_restrict  TYPE STPA-FLAG, "   
lt_tt_stdout  TYPE STANDARD TABLE OF TPSTDOUT, "   
lv_iv_project  TYPE STPA-PROJECT, "   
lv_ev_rfc_message  TYPE STPA-MESSAGE, "   
lv_update_tp_destination_failed  TYPE STPA, "   
lv_iv_umodes  TYPE STPA-UMODES, "   
lt_tt_buffer  TYPE STANDARD TABLE OF TPBUFFER, "   
lv_ev_tp_cmd_string  TYPE STPA-CMDSTRING, "   
lv_get_tms_info_failed  TYPE STPA, "   
lt_tt_bufcnt  TYPE STANDARD TABLE OF TPBUFCNT, "   
lv_iv_tp_options  TYPE STPA-OPTIONS, "   
lv_ev_tp_cmd_line  TYPE STPA-CMDLINE, "   
lv_permission_denied  TYPE STPA, "   
lt_tt_params  TYPE STANDARD TABLE OF TPPARAMS, "   
lv_iv_offline  TYPE STPA-FLAG, "   SPACE
lv_tp_call_failed  TYPE STPA, "   
lv_ev_tp_return_code  TYPE STPA-RETCODE. "   

  CALL FUNCTION 'TRINT_TP_INTERFACE'  "
    EXPORTING
         IV_TP_COMMAND = lv_iv_tp_command
         IV_FEEDBACK = lv_iv_feedback
         IV_TP_TPPARAM = lv_iv_tp_tpparam
         IV_TP_DESTINATION = lv_iv_tp_destination
         IV_PRID_TEXT = lv_iv_prid_text
         IV_PRID_MIN = lv_iv_prid_min
         IV_PRID_MAX = lv_iv_prid_max
         IV_HOLD_CONNECT_TIMES = lv_iv_hold_connect_times
         IT_TARFILTER = lv_it_tarfilter
         IV_SYSTEM_NAME = lv_iv_system_name
         IV_TRANSPORT_REQUEST = lv_iv_transport_request
         IV_CLIENT = lv_iv_client
         IV_CLIENT_RESTRICT = lv_iv_client_restrict
         IV_PROJECT = lv_iv_project
         IV_UMODES = lv_iv_umodes
         IV_TP_OPTIONS = lv_iv_tp_options
         IV_OFFLINE = lv_iv_offline
    IMPORTING
         EV_INTERFACE_VERSION = lv_ev_interface_version
         EV_TP_MESSAGE = lv_ev_tp_message
         EV_TP_VERSION = lv_ev_tp_version
         EV_TP_SOURCE = lv_ev_tp_source
         EV_R3TRANS_SOURCE = lv_ev_r3trans_source
         EV_TPSTAT_KEY = lv_ev_tpstat_key
         EV_TP_ALOG = lv_ev_tp_alog
         EV_TP_SLOG = lv_ev_tp_slog
         EV_TP_PID = lv_ev_tp_pid
         EV_BUFFER_COUNT = lv_ev_buffer_count
         EV_TRANS_DIR = lv_ev_trans_dir
         EV_TPPARAM_PATH = lv_ev_tpparam_path
         EV_TPPARAM_NAME = lv_ev_tpparam_name
         EV_TP_PATH = lv_ev_tp_path
         EV_RFC_MESSAGE = lv_ev_rfc_message
         EV_TP_CMD_STRING = lv_ev_tp_cmd_string
         EV_TP_CMD_LINE = lv_ev_tp_cmd_line
         EV_TP_RETURN_CODE = lv_ev_tp_return_code
    TABLES
         TT_OPTIONS = lt_tt_options
         TT_LOGPTR = lt_tt_logptr
         TT_OBJLST = lt_tt_objlst
         TT_REQUEST = lt_tt_request
         TT_PROJECT = lt_tt_project
         TT_TARCLI = lt_tt_tarcli
         TT_ARGV = lt_tt_argv
         TT_STDOUT = lt_tt_stdout
         TT_BUFFER = lt_tt_buffer
         TT_BUFCNT = lt_tt_bufcnt
         TT_PARAMS = lt_tt_params
    EXCEPTIONS
        UNSUPPORTED_TP_COMMAND = 1
        INSERT_TPSTAT_FAILED = 10
        INSERT_TPLOG_FAILED = 11
        INVALID_TP_COMMAND = 2
        MISSING_PARAMETER = 3
        INVALID_PARAMETER = 4
        GET_TPPARAM_FAILED = 5
        UPDATE_TP_DESTINATION_FAILED = 6
        GET_TMS_INFO_FAILED = 7
        PERMISSION_DENIED = 8
        TP_CALL_FAILED = 9
. " TRINT_TP_INTERFACE




ABAP code using 7.40 inline data declarations to call FM TRINT_TP_INTERFACE

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 COMMAND FROM STPA INTO @DATA(ld_iv_tp_command).
 
"SELECT single VERSION FROM STPA INTO @DATA(ld_ev_interface_version).
 
 
 
"SELECT single FEEDBACK FROM STPA INTO @DATA(ld_iv_feedback).
 
"SELECT single MESSAGE FROM STPA INTO @DATA(ld_ev_tp_message).
 
 
 
"SELECT single VERSION FROM STPA INTO @DATA(ld_ev_tp_version).
 
"SELECT single FILE FROM STPA INTO @DATA(ld_iv_tp_tpparam).
 
 
"SELECT single TIMESTAMP FROM STPA INTO @DATA(ld_ev_tp_source).
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_iv_tp_destination).
 
"SELECT single MESSAGE FROM STPA INTO @DATA(ld_iv_prid_text).
 
"SELECT single TIMESTAMP FROM STPA INTO @DATA(ld_ev_r3trans_source).
 
 
"SELECT single TIMESTAMP FROM STPA INTO @DATA(ld_ev_tpstat_key).
 
"SELECT single FILE FROM STPA INTO @DATA(ld_ev_tp_alog).
 
DATA(ld_iv_prid_max) = 100.
 
"SELECT single FILE FROM STPA INTO @DATA(ld_ev_tp_slog).
 
DATA(ld_iv_hold_connect_times) = 10.
 
"SELECT single PID FROM STPA INTO @DATA(ld_ev_tp_pid).
 
 
"SELECT single COUNTER FROM STPA INTO @DATA(ld_ev_buffer_count).
 
 
"SELECT single FILE FROM STPA INTO @DATA(ld_ev_trans_dir).
 
"SELECT single SYSNAME FROM STPA INTO @DATA(ld_iv_system_name).
 
 
 
"SELECT single FILE FROM STPA INTO @DATA(ld_ev_tpparam_path).
 
 
"SELECT single TRKORR FROM STPA INTO @DATA(ld_iv_transport_request).
 
"SELECT single CLIENT FROM STPA INTO @DATA(ld_iv_client).
 
 
"SELECT single FILE FROM STPA INTO @DATA(ld_ev_tpparam_name).
 
 
 
"SELECT single FILE FROM STPA INTO @DATA(ld_ev_tp_path).
 
 
"SELECT single FLAG FROM STPA INTO @DATA(ld_iv_client_restrict).
 
 
"SELECT single PROJECT FROM STPA INTO @DATA(ld_iv_project).
 
"SELECT single MESSAGE FROM STPA INTO @DATA(ld_ev_rfc_message).
 
 
"SELECT single UMODES FROM STPA INTO @DATA(ld_iv_umodes).
 
 
"SELECT single CMDSTRING FROM STPA INTO @DATA(ld_ev_tp_cmd_string).
 
 
 
"SELECT single OPTIONS FROM STPA INTO @DATA(ld_iv_tp_options).
 
"SELECT single CMDLINE FROM STPA INTO @DATA(ld_ev_tp_cmd_line).
 
 
 
"SELECT single FLAG FROM STPA INTO @DATA(ld_iv_offline).
DATA(ld_iv_offline) = ' '.
 
 
"SELECT single RETCODE FROM STPA INTO @DATA(ld_ev_tp_return_code).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!