SAP SLWL_WORKLIST_GET_NEW_OBJECTS Function Module for NOTRANSL: Beschaffung eines Arbeitsvorrates









SLWL_WORKLIST_GET_NEW_OBJECTS is a standard slwl worklist get new objects 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: Beschaffung eines Arbeitsvorrates 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 slwl worklist get new objects FM, simply by entering the name SLWL_WORKLIST_GET_NEW_OBJECTS into the relevant SAP transaction such as SE37 or SE38.

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



Function SLWL_WORKLIST_GET_NEW_OBJECTS 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 'SLWL_WORKLIST_GET_NEW_OBJECTS'"NOTRANSL: Beschaffung eines Arbeitsvorrates
EXPORTING
USER_ID = "User ID of translator
* MAX_ENTRIES = 100 "Max. number of entries
* U_STAT = "LWRKOBJ status
* DEVC = "Dev. class generic, against lantr1
TRANSL_ID = "ID of SE63 run
* WLIST_ID = 1 "SE63 run ID
T_LANG = "Targ. lang. (if translator has several)
* S_LANG = "Source Language
* STATUS = ' ' "Active status, to which lwrkobj is set

TABLES
OBJ_LIST = "
WORKLIST = "BS
WORKLIST_KEYS = "Key for WL
OTR_OBJECTS = "OTR Objects

EXCEPTIONS
INVALID_SELECT = 1
.



IMPORTING Parameters details for SLWL_WORKLIST_GET_NEW_OBJECTS

USER_ID - User ID of translator

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

MAX_ENTRIES - Max. number of entries

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

U_STAT - LWRKOBJ status

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

DEVC - Dev. class generic, against lantr1

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

TRANSL_ID - ID of SE63 run

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

WLIST_ID - SE63 run ID

Data type: LWRKOBJ-WORKLISTID
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_LANG - Targ. lang. (if translator has several)

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

S_LANG - Source Language

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

STATUS - Active status, to which lwrkobj is set

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

TABLES Parameters details for SLWL_WORKLIST_GET_NEW_OBJECTS

OBJ_LIST -

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

WORKLIST - BS

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

WORKLIST_KEYS - Key for WL

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

OTR_OBJECTS - OTR Objects

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

EXCEPTIONS details

INVALID_SELECT - Invalid selection

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

Copy and paste ABAP code example for SLWL_WORKLIST_GET_NEW_OBJECTS 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_user_id  TYPE SY-UNAME, "   
lt_obj_list  TYPE STANDARD TABLE OF LANGOBJ, "   
lv_invalid_select  TYPE LANGOBJ, "   
lt_worklist  TYPE STANDARD TABLE OF LWRKOBJ, "   
lv_max_entries  TYPE SY-TFILL, "   100
lv_u_stat  TYPE LWRKOBJ-STATUS, "   
lt_worklist_keys  TYPE STANDARD TABLE OF LWRKKEY, "   
lv_devc  TYPE LWRKOBJ-DEVCLASS, "   
lt_otr_objects  TYPE STANDARD TABLE OF LWRKOTR, "   
lv_transl_id  TYPE LWRKOBJ-TRACUSKORR, "   
lv_wlist_id  TYPE LWRKOBJ-WORKLISTID, "   1
lv_t_lang  TYPE LWRKOBJ-TARGETLANG, "   
lv_s_lang  TYPE LWRKOBJ-SOURCELANG, "   
lv_status  TYPE LWRKOBJ-STATUS. "   ' '

  CALL FUNCTION 'SLWL_WORKLIST_GET_NEW_OBJECTS'  "NOTRANSL: Beschaffung eines Arbeitsvorrates
    EXPORTING
         USER_ID = lv_user_id
         MAX_ENTRIES = lv_max_entries
         U_STAT = lv_u_stat
         DEVC = lv_devc
         TRANSL_ID = lv_transl_id
         WLIST_ID = lv_wlist_id
         T_LANG = lv_t_lang
         S_LANG = lv_s_lang
         STATUS = lv_status
    TABLES
         OBJ_LIST = lt_obj_list
         WORKLIST = lt_worklist
         WORKLIST_KEYS = lt_worklist_keys
         OTR_OBJECTS = lt_otr_objects
    EXCEPTIONS
        INVALID_SELECT = 1
. " SLWL_WORKLIST_GET_NEW_OBJECTS




ABAP code using 7.40 inline data declarations to call FM SLWL_WORKLIST_GET_NEW_OBJECTS

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 UNAME FROM SY INTO @DATA(ld_user_id).
 
 
 
 
"SELECT single TFILL FROM SY INTO @DATA(ld_max_entries).
DATA(ld_max_entries) = 100.
 
"SELECT single STATUS FROM LWRKOBJ INTO @DATA(ld_u_stat).
 
 
"SELECT single DEVCLASS FROM LWRKOBJ INTO @DATA(ld_devc).
 
 
"SELECT single TRACUSKORR FROM LWRKOBJ INTO @DATA(ld_transl_id).
 
"SELECT single WORKLISTID FROM LWRKOBJ INTO @DATA(ld_wlist_id).
DATA(ld_wlist_id) = 1.
 
"SELECT single TARGETLANG FROM LWRKOBJ INTO @DATA(ld_t_lang).
 
"SELECT single SOURCELANG FROM LWRKOBJ INTO @DATA(ld_s_lang).
 
"SELECT single STATUS FROM LWRKOBJ INTO @DATA(ld_status).
DATA(ld_status) = ' '.
 


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!