SAP READ_LAYMOD_LISTING Function Module for









READ_LAYMOD_LISTING is a standard read laymod listing 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 read laymod listing FM, simply by entering the name READ_LAYMOD_LISTING into the relevant SAP transaction such as SE37 or SE38.

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



Function READ_LAYMOD_LISTING 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 'READ_LAYMOD_LISTING'"
EXPORTING
* PI_WLK1_SELECT_VIA_URSAC = 'X' "
* PI_SELECT_WSOH_ONLY_ACTIVE = 'X' "
* PI_SELECT_WSOT = 'X' "
* PI_SELECT_WSOF = 'X' "
* PI_SELECT_WLK1 = 'X' "

TABLES
TI_WLMV = "
* TE_WSOH = "
* TE_WSOT = "
* TE_WSOF = "
* TE_WLK1 = "

EXCEPTIONS
KEY_UNCOMPLETE = 1 NO_REC_FOUND = 2
.



IMPORTING Parameters details for READ_LAYMOD_LISTING

PI_WLK1_SELECT_VIA_URSAC -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

PI_SELECT_WSOH_ONLY_ACTIVE -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

PI_SELECT_WSOT -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

PI_SELECT_WSOF -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

PI_SELECT_WLK1 -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for READ_LAYMOD_LISTING

TI_WLMV -

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

TE_WSOH -

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

TE_WSOT -

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

TE_WSOF -

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

TE_WLK1 -

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

EXCEPTIONS details

KEY_UNCOMPLETE -

Data type:
Optional: No
Call by Reference: Yes

NO_REC_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for READ_LAYMOD_LISTING 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_ti_wlmv  TYPE STANDARD TABLE OF WLMV, "   
lv_key_uncomplete  TYPE WLMV, "   
lv_pi_wlk1_select_via_ursac  TYPE XFELD, "   'X'
lt_te_wsoh  TYPE STANDARD TABLE OF WSOH, "   
lv_no_rec_found  TYPE WSOH, "   
lv_pi_select_wsoh_only_active  TYPE XFELD, "   'X'
lt_te_wsot  TYPE STANDARD TABLE OF WSOT, "   
lv_pi_select_wsot  TYPE XFELD, "   'X'
lt_te_wsof  TYPE STANDARD TABLE OF WSOF, "   
lv_pi_select_wsof  TYPE XFELD, "   'X'
lt_te_wlk1  TYPE STANDARD TABLE OF WLK1, "   
lv_pi_select_wlk1  TYPE XFELD. "   'X'

  CALL FUNCTION 'READ_LAYMOD_LISTING'  "
    EXPORTING
         PI_WLK1_SELECT_VIA_URSAC = lv_pi_wlk1_select_via_ursac
         PI_SELECT_WSOH_ONLY_ACTIVE = lv_pi_select_wsoh_only_active
         PI_SELECT_WSOT = lv_pi_select_wsot
         PI_SELECT_WSOF = lv_pi_select_wsof
         PI_SELECT_WLK1 = lv_pi_select_wlk1
    TABLES
         TI_WLMV = lt_ti_wlmv
         TE_WSOH = lt_te_wsoh
         TE_WSOT = lt_te_wsot
         TE_WSOF = lt_te_wsof
         TE_WLK1 = lt_te_wlk1
    EXCEPTIONS
        KEY_UNCOMPLETE = 1
        NO_REC_FOUND = 2
. " READ_LAYMOD_LISTING




ABAP code using 7.40 inline data declarations to call FM READ_LAYMOD_LISTING

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_pi_wlk1_select_via_ursac) = 'X'.
 
 
 
DATA(ld_pi_select_wsoh_only_active) = 'X'.
 
 
DATA(ld_pi_select_wsot) = 'X'.
 
 
DATA(ld_pi_select_wsof) = 'X'.
 
 
DATA(ld_pi_select_wlk1) = 'X'.
 


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!