SAP L_RFMON_WK_ASSIGN Function Module for NOTRANSL: Zuweisung Lagerarbeiter zu Queue









L_RFMON_WK_ASSIGN is a standard l rfmon wk assign SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Zuweisung Lagerarbeiter zu Queue processing and below is the pattern details for this FM, 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 l rfmon wk assign FM, simply by entering the name L_RFMON_WK_ASSIGN into the relevant SAP transaction such as SE37 or SE38.

Function Group: LRFMON
Program Name: SAPLLRFMON
Main Program: SAPLLRFMON
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function L_RFMON_WK_ASSIGN 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 'L_RFMON_WK_ASSIGN'"NOTRANSL: Zuweisung Lagerarbeiter zu Queue
EXPORTING
IV_LGNUM = "Warehouse Number / Warehouse Complex
IV_BNAME = "User Name in User Master Record
IV_QUEUE = "Unique warehouse number of a queue
* IV_NOCHECK = ' ' "Generic Type

IMPORTING
EV_STATU = "Indicator: Status User

EXCEPTIONS
NOT_LOGGED_ON = 1 NO_WH_USER = 2 QUEUE_NOT_EXIST = 3
.



IMPORTING Parameters details for L_RFMON_WK_ASSIGN

IV_LGNUM - Warehouse Number / Warehouse Complex

Data type: LRF_WKQU-LGNUM
Optional: No
Call by Reference: Yes

IV_BNAME - User Name in User Master Record

Data type: LRF_WKQU-BNAME
Optional: No
Call by Reference: Yes

IV_QUEUE - Unique warehouse number of a queue

Data type: LRF_WKQU-QUEUE
Optional: No
Call by Reference: Yes

IV_NOCHECK - Generic Type

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for L_RFMON_WK_ASSIGN

EV_STATU - Indicator: Status User

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

EXCEPTIONS details

NOT_LOGGED_ON -

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

NO_WH_USER -

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

QUEUE_NOT_EXIST -

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

Copy and paste ABAP code example for L_RFMON_WK_ASSIGN 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_ev_statu  TYPE LRF_WKQU-STATU, "   
lv_iv_lgnum  TYPE LRF_WKQU-LGNUM, "   
lv_not_logged_on  TYPE LRF_WKQU, "   
lv_iv_bname  TYPE LRF_WKQU-BNAME, "   
lv_no_wh_user  TYPE LRF_WKQU, "   
lv_iv_queue  TYPE LRF_WKQU-QUEUE, "   
lv_queue_not_exist  TYPE LRF_WKQU, "   
lv_iv_nocheck  TYPE C. "   SPACE

  CALL FUNCTION 'L_RFMON_WK_ASSIGN'  "NOTRANSL: Zuweisung Lagerarbeiter zu Queue
    EXPORTING
         IV_LGNUM = lv_iv_lgnum
         IV_BNAME = lv_iv_bname
         IV_QUEUE = lv_iv_queue
         IV_NOCHECK = lv_iv_nocheck
    IMPORTING
         EV_STATU = lv_ev_statu
    EXCEPTIONS
        NOT_LOGGED_ON = 1
        NO_WH_USER = 2
        QUEUE_NOT_EXIST = 3
. " L_RFMON_WK_ASSIGN




ABAP code using 7.40 inline data declarations to call FM L_RFMON_WK_ASSIGN

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 STATU FROM LRF_WKQU INTO @DATA(ld_ev_statu).
 
"SELECT single LGNUM FROM LRF_WKQU INTO @DATA(ld_iv_lgnum).
 
 
"SELECT single BNAME FROM LRF_WKQU INTO @DATA(ld_iv_bname).
 
 
"SELECT single QUEUE FROM LRF_WKQU INTO @DATA(ld_iv_queue).
 
 
DATA(ld_iv_nocheck) = ' '.
 


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!