SAP TRFC_QOUT_GET_FIRST_LUW Function Module for
TRFC_QOUT_GET_FIRST_LUW is a standard trfc qout get first luw 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 trfc qout get first luw FM, simply by entering the name TRFC_QOUT_GET_FIRST_LUW into the relevant SAP transaction such as SE37 or SE38.
Function Group: ORFC
Program Name: SAPLORFC
Main Program: SAPLORFC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function TRFC_QOUT_GET_FIRST_LUW 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 'TRFC_QOUT_GET_FIRST_LUW'".
EXPORTING
QNAME = "
DEST = "RFC destination
* CLIENT = SY-MANDT "
* NO_READ_LOCK = ' ' "
IMPORTING
TID = "Transaction ID
QSTATE = "
WQNAME = "
ERRMESS = "
FDATE = "
FTIME = "
FQCOUNT = "Counter for serialized tRFC
TABLES
* QTABLE = "
EXCEPTIONS
INVALID_PARAMETER = 1
IMPORTING Parameters details for TRFC_QOUT_GET_FIRST_LUW
QNAME -
Data type: TRFCQOUT-QNAMEOptional: No
Call by Reference: No ( called with pass by value option)
DEST - RFC destination
Data type: TRFCQOUT-DESTOptional: No
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)
NO_READ_LOCK -
Data type: SY-INPUTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TRFC_QOUT_GET_FIRST_LUW
TID - Transaction ID
Data type: ARFCTIDOptional: No
Call by Reference: No ( called with pass by value option)
QSTATE -
Data type: TRFCQOUT-QSTATEOptional: No
Call by Reference: No ( called with pass by value option)
WQNAME -
Data type: TRFCQOUT-QNAMEOptional: No
Call by Reference: No ( called with pass by value option)
ERRMESS -
Data type: T100-TEXTOptional: No
Call by Reference: No ( called with pass by value option)
FDATE -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
FTIME -
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
FQCOUNT - Counter for serialized tRFC
Data type: TRFCQOUT-QCOUNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TRFC_QOUT_GET_FIRST_LUW
QTABLE -
Data type: TRFCQOUTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INVALID_PARAMETER -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TRFC_QOUT_GET_FIRST_LUW 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_tid | TYPE ARFCTID, " | |||
| lv_qname | TYPE TRFCQOUT-QNAME, " | |||
| lt_qtable | TYPE STANDARD TABLE OF TRFCQOUT, " | |||
| lv_invalid_parameter | TYPE TRFCQOUT, " | |||
| lv_dest | TYPE TRFCQOUT-DEST, " | |||
| lv_qstate | TYPE TRFCQOUT-QSTATE, " | |||
| lv_client | TYPE SY-MANDT, " SY-MANDT | |||
| lv_wqname | TYPE TRFCQOUT-QNAME, " | |||
| lv_errmess | TYPE T100-TEXT, " | |||
| lv_no_read_lock | TYPE SY-INPUT, " SPACE | |||
| lv_fdate | TYPE SY-DATUM, " | |||
| lv_ftime | TYPE SY-UZEIT, " | |||
| lv_fqcount | TYPE TRFCQOUT-QCOUNT. " |
|   CALL FUNCTION 'TRFC_QOUT_GET_FIRST_LUW' " |
| EXPORTING | ||
| QNAME | = lv_qname | |
| DEST | = lv_dest | |
| CLIENT | = lv_client | |
| NO_READ_LOCK | = lv_no_read_lock | |
| IMPORTING | ||
| TID | = lv_tid | |
| QSTATE | = lv_qstate | |
| WQNAME | = lv_wqname | |
| ERRMESS | = lv_errmess | |
| FDATE | = lv_fdate | |
| FTIME | = lv_ftime | |
| FQCOUNT | = lv_fqcount | |
| TABLES | ||
| QTABLE | = lt_qtable | |
| EXCEPTIONS | ||
| INVALID_PARAMETER = 1 | ||
| . " TRFC_QOUT_GET_FIRST_LUW | ||
ABAP code using 7.40 inline data declarations to call FM TRFC_QOUT_GET_FIRST_LUW
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 QNAME FROM TRFCQOUT INTO @DATA(ld_qname). | ||||
| "SELECT single DEST FROM TRFCQOUT INTO @DATA(ld_dest). | ||||
| "SELECT single QSTATE FROM TRFCQOUT INTO @DATA(ld_qstate). | ||||
| "SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single QNAME FROM TRFCQOUT INTO @DATA(ld_wqname). | ||||
| "SELECT single TEXT FROM T100 INTO @DATA(ld_errmess). | ||||
| "SELECT single INPUT FROM SY INTO @DATA(ld_no_read_lock). | ||||
| DATA(ld_no_read_lock) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_fdate). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_ftime). | ||||
| "SELECT single QCOUNT FROM TRFCQOUT INTO @DATA(ld_fqcount). | ||||
Search for further information about these or an SAP related objects