SAP Function Modules

LASP_LEGENDDISPLAY SAP Function module







LASP_LEGENDDISPLAY is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name LASP_LEGENDDISPLAY into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SP00
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM LASP_LEGENDDISPLAY - LASP LEGENDDISPLAY





CALL FUNCTION 'LASP_LEGENDDISPLAY' "
  EXPORTING
    mode_iv =                   " spgl1-lmode
*   title_iv =                  " spgl1-title
*   variant_iv =                " spgl1-variant
*   repid_iv =                  " sy-repid
* TABLES
*   colorlink_it =              " spgl2
    .  "  LASP_LEGENDDISPLAY

ABAP code example for Function Module LASP_LEGENDDISPLAY





The ABAP code below is a full code listing to execute function module LASP_LEGENDDISPLAY including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_colorlink_it  TYPE STANDARD TABLE OF SPGL2,"TABLES PARAM
wa_colorlink_it  LIKE LINE OF it_colorlink_it .


DATA(ld_mode_iv) = some text here

DATA(ld_title_iv) = some text here

DATA(ld_variant_iv) = some text here
DATA(ld_repid_iv) = 'some text here'.

"populate fields of struture and append to itab
append wa_colorlink_it to it_colorlink_it. . CALL FUNCTION 'LASP_LEGENDDISPLAY' EXPORTING mode_iv = ld_mode_iv * title_iv = ld_title_iv * variant_iv = ld_variant_iv * repid_iv = ld_repid_iv * TABLES * colorlink_it = it_colorlink_it . " LASP_LEGENDDISPLAY
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_mode_iv  TYPE SPGL1-LMODE ,
it_colorlink_it  TYPE STANDARD TABLE OF SPGL2 ,
wa_colorlink_it  LIKE LINE OF it_colorlink_it,
ld_title_iv  TYPE SPGL1-TITLE ,
ld_variant_iv  TYPE SPGL1-VARIANT ,
ld_repid_iv  TYPE SY-REPID .


ld_mode_iv = some text here

"populate fields of struture and append to itab
append wa_colorlink_it to it_colorlink_it.

ld_title_iv = some text here

ld_variant_iv = some text here
ld_repid_iv = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name LASP_LEGENDDISPLAY or its description.