SAP Function Modules

G_PP_READ_AND_PARSE_LAYOUT SAP Function module







G_PP_READ_AND_PARSE_LAYOUT 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 G_PP_READ_AND_PARSE_LAYOUT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: KPP_FISL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM G_PP_READ_AND_PARSE_LAYOUT - G PP READ AND PARSE LAYOUT





CALL FUNCTION 'G_PP_READ_AND_PARSE_LAYOUT' "
  EXPORTING
    applclass =                 " applclass
    subclass =                  " subclass
    tabname =                   " tabname
    form =                      " rke_cform
*   plprof = SPACE              " kpp_plprof
*   posit =                     " kpp_posit
  IMPORTING
    text =                      " glpl_jobtext
    text_plprof =               " text50
    layout_ledger_mis =         " char1
    docty =                     " docty
    cutyp =                     " kurst
    aggregat =                  " glpl_aggregat
  TABLES
    dimensions =                " gppdimensions
    values =                    " gppvalues
  EXCEPTIONS
    NOT_FROM_PLTOOL = 1         "
    CONFIG_ERROR = 2            "
    .  "  G_PP_READ_AND_PARSE_LAYOUT

ABAP code example for Function Module G_PP_READ_AND_PARSE_LAYOUT





The ABAP code below is a full code listing to execute function module G_PP_READ_AND_PARSE_LAYOUT 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:
ld_text  TYPE GLPL_JOBTEXT ,
ld_text_plprof  TYPE TEXT50 ,
ld_layout_ledger_mis  TYPE CHAR1 ,
ld_docty  TYPE DOCTY ,
ld_cutyp  TYPE KURST ,
ld_aggregat  TYPE GLPL_AGGREGAT ,
it_dimensions  TYPE STANDARD TABLE OF GPPDIMENSIONS,"TABLES PARAM
wa_dimensions  LIKE LINE OF it_dimensions ,
it_values  TYPE STANDARD TABLE OF GPPVALUES,"TABLES PARAM
wa_values  LIKE LINE OF it_values .

DATA(ld_applclass) = 'Check type of data required'.
DATA(ld_subclass) = 'Check type of data required'.
DATA(ld_tabname) = 'Check type of data required'.
DATA(ld_form) = 'Check type of data required'.
DATA(ld_plprof) = 'Check type of data required'.
DATA(ld_posit) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dimensions to it_dimensions.

"populate fields of struture and append to itab
append wa_values to it_values. . CALL FUNCTION 'G_PP_READ_AND_PARSE_LAYOUT' EXPORTING applclass = ld_applclass subclass = ld_subclass tabname = ld_tabname form = ld_form * plprof = ld_plprof * posit = ld_posit IMPORTING text = ld_text text_plprof = ld_text_plprof layout_ledger_mis = ld_layout_ledger_mis docty = ld_docty cutyp = ld_cutyp aggregat = ld_aggregat TABLES dimensions = it_dimensions values = it_values EXCEPTIONS NOT_FROM_PLTOOL = 1 CONFIG_ERROR = 2 . " G_PP_READ_AND_PARSE_LAYOUT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_text  TYPE GLPL_JOBTEXT ,
ld_applclass  TYPE APPLCLASS ,
it_dimensions  TYPE STANDARD TABLE OF GPPDIMENSIONS ,
wa_dimensions  LIKE LINE OF it_dimensions,
ld_text_plprof  TYPE TEXT50 ,
ld_subclass  TYPE SUBCLASS ,
it_values  TYPE STANDARD TABLE OF GPPVALUES ,
wa_values  LIKE LINE OF it_values,
ld_layout_ledger_mis  TYPE CHAR1 ,
ld_tabname  TYPE TABNAME ,
ld_docty  TYPE DOCTY ,
ld_form  TYPE RKE_CFORM ,
ld_cutyp  TYPE KURST ,
ld_plprof  TYPE KPP_PLPROF ,
ld_aggregat  TYPE GLPL_AGGREGAT ,
ld_posit  TYPE KPP_POSIT .

ld_applclass = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_dimensions to it_dimensions.
ld_subclass = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_values to it_values.
ld_tabname = 'Check type of data required'.
ld_form = 'Check type of data required'.
ld_plprof = 'Check type of data required'.
ld_posit = 'Check type of data required'.

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 G_PP_READ_AND_PARSE_LAYOUT or its description.