SAP Function Modules

TMS_UI_FORWARD_TR_REQUEST SAP Function module







TMS_UI_FORWARD_TR_REQUEST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TMS_UI_FORWARD_TR_REQUEST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TMSU
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TMS_UI_FORWARD_TR_REQUEST - TMS UI FORWARD TR REQUEST





CALL FUNCTION 'TMS_UI_FORWARD_TR_REQUEST' "
  EXPORTING
    iv_request =                " tmsbuffer-trkorr  Transport Request
*   iv_reqtxt =                 " tmsbuffer-text
*   iv_target =                 " tmscsys-sysnam
*   iv_tardom =                 " tmscsys-domnam
*   iv_tartxt =                 " tmscsys-systxt
*   iv_source =                 " tmscsys-sysnam
*   iv_srcdom =                 " tmscsys-domnam  Source domain
*   iv_ftp_allowed =            " stms_flag
*   iv_nr_of_grps =             " i
*   iv_ctc_active =             " stms_flag
*   iv_verbose =                " stms_flag
*   iv_expert_mode =            " stms_flag
*   it_requests =               " stms_tr_requests
  IMPORTING
    ev_target =                 " tmscsys-sysnam
    ev_tarcli =                 " tmsbuffer-tarcli
* TABLES
*   tt_system =                 " tmscsys
  EXCEPTIONS
    CANCELLED_BY_USER = 1       "
    FORWARD_REQUEST_FAILED = 2  "
    .  "  TMS_UI_FORWARD_TR_REQUEST

ABAP code example for Function Module TMS_UI_FORWARD_TR_REQUEST





The ABAP code below is a full code listing to execute function module TMS_UI_FORWARD_TR_REQUEST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ev_target  TYPE TMSCSYS-SYSNAM ,
ld_ev_tarcli  TYPE TMSBUFFER-TARCLI ,
it_tt_system  TYPE STANDARD TABLE OF TMSCSYS,"TABLES PARAM
wa_tt_system  LIKE LINE OF it_tt_system .


SELECT single TRKORR
FROM TMSBUFFER
INTO @DATA(ld_iv_request).


SELECT single TEXT
FROM TMSBUFFER
INTO @DATA(ld_iv_reqtxt).


SELECT single SYSNAM
FROM TMSCSYS
INTO @DATA(ld_iv_target).


SELECT single DOMNAM
FROM TMSCSYS
INTO @DATA(ld_iv_tardom).


SELECT single SYSTXT
FROM TMSCSYS
INTO @DATA(ld_iv_tartxt).


SELECT single SYSNAM
FROM TMSCSYS
INTO @DATA(ld_iv_source).


SELECT single DOMNAM
FROM TMSCSYS
INTO @DATA(ld_iv_srcdom).

DATA(ld_iv_ftp_allowed) = 'Check type of data required'.
DATA(ld_iv_nr_of_grps) = 'Check type of data required'.
DATA(ld_iv_ctc_active) = 'Check type of data required'.
DATA(ld_iv_verbose) = 'Check type of data required'.
DATA(ld_iv_expert_mode) = 'Check type of data required'.
DATA(ld_it_requests) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tt_system to it_tt_system. . CALL FUNCTION 'TMS_UI_FORWARD_TR_REQUEST' EXPORTING iv_request = ld_iv_request * iv_reqtxt = ld_iv_reqtxt * iv_target = ld_iv_target * iv_tardom = ld_iv_tardom * iv_tartxt = ld_iv_tartxt * iv_source = ld_iv_source * iv_srcdom = ld_iv_srcdom * iv_ftp_allowed = ld_iv_ftp_allowed * iv_nr_of_grps = ld_iv_nr_of_grps * iv_ctc_active = ld_iv_ctc_active * iv_verbose = ld_iv_verbose * iv_expert_mode = ld_iv_expert_mode * it_requests = ld_it_requests IMPORTING ev_target = ld_ev_target ev_tarcli = ld_ev_tarcli * TABLES * tt_system = it_tt_system EXCEPTIONS CANCELLED_BY_USER = 1 FORWARD_REQUEST_FAILED = 2 . " TMS_UI_FORWARD_TR_REQUEST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ev_target  TYPE TMSCSYS-SYSNAM ,
ld_iv_request  TYPE TMSBUFFER-TRKORR ,
it_tt_system  TYPE STANDARD TABLE OF TMSCSYS ,
wa_tt_system  LIKE LINE OF it_tt_system,
ld_ev_tarcli  TYPE TMSBUFFER-TARCLI ,
ld_iv_reqtxt  TYPE TMSBUFFER-TEXT ,
ld_iv_target  TYPE TMSCSYS-SYSNAM ,
ld_iv_tardom  TYPE TMSCSYS-DOMNAM ,
ld_iv_tartxt  TYPE TMSCSYS-SYSTXT ,
ld_iv_source  TYPE TMSCSYS-SYSNAM ,
ld_iv_srcdom  TYPE TMSCSYS-DOMNAM ,
ld_iv_ftp_allowed  TYPE STMS_FLAG ,
ld_iv_nr_of_grps  TYPE I ,
ld_iv_ctc_active  TYPE STMS_FLAG ,
ld_iv_verbose  TYPE STMS_FLAG ,
ld_iv_expert_mode  TYPE STMS_FLAG ,
ld_it_requests  TYPE STMS_TR_REQUESTS .


SELECT single TRKORR
FROM TMSBUFFER
INTO ld_iv_request.


"populate fields of struture and append to itab
append wa_tt_system to it_tt_system.

SELECT single TEXT
FROM TMSBUFFER
INTO ld_iv_reqtxt.


SELECT single SYSNAM
FROM TMSCSYS
INTO ld_iv_target.


SELECT single DOMNAM
FROM TMSCSYS
INTO ld_iv_tardom.


SELECT single SYSTXT
FROM TMSCSYS
INTO ld_iv_tartxt.


SELECT single SYSNAM
FROM TMSCSYS
INTO ld_iv_source.


SELECT single DOMNAM
FROM TMSCSYS
INTO ld_iv_srcdom.

ld_iv_ftp_allowed = 'Check type of data required'.
ld_iv_nr_of_grps = 'Check type of data required'.
ld_iv_ctc_active = 'Check type of data required'.
ld_iv_verbose = 'Check type of data required'.
ld_iv_expert_mode = 'Check type of data required'.
ld_it_requests = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TMS_UI_FORWARD_TR_REQUEST or its description.