SAP TRINT_REQUEST_CHOICE Function Module for









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

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



Function TRINT_REQUEST_CHOICE 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_REQUEST_CHOICE'"
EXPORTING
* IV_SIMULATION = ' ' "Simulation run
* IV_WITH_ERROR_LOG = 'X' "Display error log
* IV_NO_OWNER_CHECK = ' ' "
* IV_FOREIGN_REQUEST = ' ' "
* IT_E071K_STR = "
* IT_OBJ_ENTRIES = "
* IV_SUPPRESS_DIALOG = ' ' "Suppress dialog
* IV_REQUEST_TYPES = "Request types chosen (T, C, K, L,...)
* IV_CLI_DEP = ' ' "Check request client
* IV_REQUEST = ' ' "Proposed request
* IV_LOCK_OBJECTS = ' ' "Objects are locked in request
* IV_TITLE = "
* IV_START_COLUMN = 3 "Column from which the dialog box starts
* IV_START_ROW = 7 "Row from which the dialog box starts

IMPORTING
ES_REQUEST = "Selected request
ET_LOG = "

TABLES
* IT_E071 = "
* IT_E071K = "

EXCEPTIONS
INVALID_REQUEST = 1 INVALID_REQUEST_TYPE = 2 USER_NOT_OWNER = 3 NO_OBJECTS_APPENDED = 4 ENQUEUE_ERROR = 5 CANCELLED_BY_USER = 6 RECURSIVE_CALL = 7
.



IMPORTING Parameters details for TRINT_REQUEST_CHOICE

IV_SIMULATION - Simulation run

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

IV_WITH_ERROR_LOG - Display error log

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_OWNER_CHECK -

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

IV_FOREIGN_REQUEST -

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

IT_E071K_STR -

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

IT_OBJ_ENTRIES -

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

IV_SUPPRESS_DIALOG - Suppress dialog

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

IV_REQUEST_TYPES - Request types chosen (T, C, K, L,...)

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

IV_CLI_DEP - Check request client

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

IV_REQUEST - Proposed request

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

IV_LOCK_OBJECTS - Objects are locked in request

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

IV_TITLE -

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

IV_START_COLUMN - Column from which the dialog box starts

Data type: SY-CUCOL
Default: 3
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_START_ROW - Row from which the dialog box starts

Data type: SY-CUROW
Default: 7
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TRINT_REQUEST_CHOICE

ES_REQUEST - Selected request

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

ET_LOG -

Data type: SPROT_U_TAB
Optional: No
Call by Reference: Yes

TABLES Parameters details for TRINT_REQUEST_CHOICE

IT_E071 -

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

IT_E071K -

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

EXCEPTIONS details

INVALID_REQUEST - Invalid request

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

INVALID_REQUEST_TYPE - Invalid request type

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

USER_NOT_OWNER - User is not the owner of the request

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

NO_OBJECTS_APPENDED - Objects could not be appended

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

ENQUEUE_ERROR - Error in lock management

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

CANCELLED_BY_USER - Cancellation by user

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

RECURSIVE_CALL - Recursive call of function module

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

Copy and paste ABAP code example for TRINT_REQUEST_CHOICE 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_it_e071  TYPE STANDARD TABLE OF E071, "   
lv_es_request  TYPE TRWBO_REQUEST_HEADER, "   
lv_iv_simulation  TYPE TRBOOLEAN, "   ' '
lv_invalid_request  TYPE TRBOOLEAN, "   
lv_iv_with_error_log  TYPE C, "   'X'
lv_iv_no_owner_check  TYPE C, "   ' '
lv_iv_foreign_request  TYPE C, "   ' '
lv_it_e071k_str  TYPE E071K_STRTYP, "   
lv_it_obj_entries  TYPE CTS_OBJ_ENTRIES, "   
lv_et_log  TYPE SPROT_U_TAB, "   
lt_it_e071k  TYPE STANDARD TABLE OF E071K, "   
lv_iv_suppress_dialog  TYPE TRBOOLEAN, "   ' '
lv_invalid_request_type  TYPE TRBOOLEAN, "   
lv_user_not_owner  TYPE TRBOOLEAN, "   
lv_iv_request_types  TYPE TRPARI-W_LONGSTAT, "   
lv_iv_cli_dep  TYPE TRBOOLEAN, "   ' '
lv_no_objects_appended  TYPE TRBOOLEAN, "   
lv_iv_request  TYPE TRKORR, "   ' '
lv_enqueue_error  TYPE TRKORR, "   
lv_iv_lock_objects  TYPE TRBOOLEAN, "   ' '
lv_cancelled_by_user  TYPE TRBOOLEAN, "   
lv_iv_title  TYPE C, "   
lv_recursive_call  TYPE C, "   
lv_iv_start_column  TYPE SY-CUCOL, "   3
lv_iv_start_row  TYPE SY-CUROW. "   7

  CALL FUNCTION 'TRINT_REQUEST_CHOICE'  "
    EXPORTING
         IV_SIMULATION = lv_iv_simulation
         IV_WITH_ERROR_LOG = lv_iv_with_error_log
         IV_NO_OWNER_CHECK = lv_iv_no_owner_check
         IV_FOREIGN_REQUEST = lv_iv_foreign_request
         IT_E071K_STR = lv_it_e071k_str
         IT_OBJ_ENTRIES = lv_it_obj_entries
         IV_SUPPRESS_DIALOG = lv_iv_suppress_dialog
         IV_REQUEST_TYPES = lv_iv_request_types
         IV_CLI_DEP = lv_iv_cli_dep
         IV_REQUEST = lv_iv_request
         IV_LOCK_OBJECTS = lv_iv_lock_objects
         IV_TITLE = lv_iv_title
         IV_START_COLUMN = lv_iv_start_column
         IV_START_ROW = lv_iv_start_row
    IMPORTING
         ES_REQUEST = lv_es_request
         ET_LOG = lv_et_log
    TABLES
         IT_E071 = lt_it_e071
         IT_E071K = lt_it_e071k
    EXCEPTIONS
        INVALID_REQUEST = 1
        INVALID_REQUEST_TYPE = 2
        USER_NOT_OWNER = 3
        NO_OBJECTS_APPENDED = 4
        ENQUEUE_ERROR = 5
        CANCELLED_BY_USER = 6
        RECURSIVE_CALL = 7
. " TRINT_REQUEST_CHOICE




ABAP code using 7.40 inline data declarations to call FM TRINT_REQUEST_CHOICE

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.

 
 
DATA(ld_iv_simulation) = ' '.
 
 
DATA(ld_iv_with_error_log) = 'X'.
 
DATA(ld_iv_no_owner_check) = ' '.
 
DATA(ld_iv_foreign_request) = ' '.
 
 
 
 
 
DATA(ld_iv_suppress_dialog) = ' '.
 
 
 
"SELECT single W_LONGSTAT FROM TRPARI INTO @DATA(ld_iv_request_types).
 
DATA(ld_iv_cli_dep) = ' '.
 
 
DATA(ld_iv_request) = ' '.
 
 
DATA(ld_iv_lock_objects) = ' '.
 
 
 
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_iv_start_column).
DATA(ld_iv_start_column) = 3.
 
"SELECT single CUROW FROM SY INTO @DATA(ld_iv_start_row).
DATA(ld_iv_start_row) = 7.
 


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!