SAP LASP_DISPLAY Function Module for NOTRANSL: LASP: Visualisierung eines Sequenzplans/Datenübergabe









LASP_DISPLAY is a standard lasp display 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: LASP: Visualisierung eines Sequenzplans/Datenübergabe 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 lasp display FM, simply by entering the name LASP_DISPLAY into the relevant SAP transaction such as SE37 or SE38.

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



Function LASP_DISPLAY 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 'LASP_DISPLAY'"NOTRANSL: LASP: Visualisierung eines Sequenzplans/Datenübergabe
EXPORTING
WINID_IV = "
* ABAP_CMD_IV = "
* FOCUS_IV = 'X' "
* CONTROL_IV = ' ' "
* TSPP0_IS = "
* M_PLAF_IT = "
* OP_IT = "

IMPORTING
USER_CMD_EV = "
OP_ET = "
PER_PAT_CHANGED_EV = "

CHANGING
* VIS_MODE = "
* JVIEW_IV = ' ' "

TABLES
* PLAF_ET = "
* LINECHANGE_TT = "

EXCEPTIONS
WINID_INVALID = 1 SEQUENCING_ERROR = 2 DISPLAY_ERROR = 3 NO_UPDATE_POSSIBLE = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLSP00_001 Customer Exit for Order Display (Characteristics -> Colors)

IMPORTING Parameters details for LASP_DISPLAY

WINID_IV -

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

ABAP_CMD_IV -

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

FOCUS_IV -

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

CONTROL_IV -

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

TSPP0_IS -

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

M_PLAF_IT -

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

OP_IT -

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

EXPORTING Parameters details for LASP_DISPLAY

USER_CMD_EV -

Data type: SY-UCOMM
Optional: No
Call by Reference: Yes

OP_ET -

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

PER_PAT_CHANGED_EV -

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

CHANGING Parameters details for LASP_DISPLAY

VIS_MODE -

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

JVIEW_IV -

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

TABLES Parameters details for LASP_DISPLAY

PLAF_ET -

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

LINECHANGE_TT -

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

EXCEPTIONS details

WINID_INVALID - Incorrect window ID

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

SEQUENCING_ERROR -

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

DISPLAY_ERROR -

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

NO_UPDATE_POSSIBLE -

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

Copy and paste ABAP code example for LASP_DISPLAY 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_plaf_et  TYPE STANDARD TABLE OF PLAF, "   
lv_vis_mode  TYPE CHAR1, "   
lv_winid_iv  TYPE NET_GRAPH-WINID, "   
lv_user_cmd_ev  TYPE SY-UCOMM, "   
lv_winid_invalid  TYPE SY, "   
lv_op_et  TYPE LASP_OP_TA, "   
lv_jview_iv  TYPE TSPG1-JVIEW, "   ' '
lv_abap_cmd_iv  TYPE NET_GRAPH-ABAP_CMD, "   
lt_linechange_tt  TYPE STANDARD TABLE OF LASP_LINECHANGE_TA, "   
lv_sequencing_error  TYPE LASP_LINECHANGE_TA, "   
lv_focus_iv  TYPE NET_GRAPH-FLAG, "   'X'
lv_display_error  TYPE NET_GRAPH, "   
lv_per_pat_changed_ev  TYPE C, "   
lv_control_iv  TYPE NET_GRAPH-FLAG, "   ' '
lv_no_update_possible  TYPE NET_GRAPH, "   
lv_tspp0_is  TYPE TSPP0, "   
lv_m_plaf_it  TYPE LASP_PLAF_TA, "   
lv_op_it  TYPE LASP_OP_TA. "   

  CALL FUNCTION 'LASP_DISPLAY'  "NOTRANSL: LASP: Visualisierung eines Sequenzplans/Datenübergabe
    EXPORTING
         WINID_IV = lv_winid_iv
         ABAP_CMD_IV = lv_abap_cmd_iv
         FOCUS_IV = lv_focus_iv
         CONTROL_IV = lv_control_iv
         TSPP0_IS = lv_tspp0_is
         M_PLAF_IT = lv_m_plaf_it
         OP_IT = lv_op_it
    IMPORTING
         USER_CMD_EV = lv_user_cmd_ev
         OP_ET = lv_op_et
         PER_PAT_CHANGED_EV = lv_per_pat_changed_ev
    CHANGING
         VIS_MODE = lv_vis_mode
         JVIEW_IV = lv_jview_iv
    TABLES
         PLAF_ET = lt_plaf_et
         LINECHANGE_TT = lt_linechange_tt
    EXCEPTIONS
        WINID_INVALID = 1
        SEQUENCING_ERROR = 2
        DISPLAY_ERROR = 3
        NO_UPDATE_POSSIBLE = 4
. " LASP_DISPLAY




ABAP code using 7.40 inline data declarations to call FM LASP_DISPLAY

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 WINID FROM NET_GRAPH INTO @DATA(ld_winid_iv).
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_user_cmd_ev).
 
 
 
"SELECT single JVIEW FROM TSPG1 INTO @DATA(ld_jview_iv).
DATA(ld_jview_iv) = ' '.
 
"SELECT single ABAP_CMD FROM NET_GRAPH INTO @DATA(ld_abap_cmd_iv).
 
 
 
"SELECT single FLAG FROM NET_GRAPH INTO @DATA(ld_focus_iv).
DATA(ld_focus_iv) = 'X'.
 
 
 
"SELECT single FLAG FROM NET_GRAPH INTO @DATA(ld_control_iv).
DATA(ld_control_iv) = ' '.
 
 
 
 
 


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!