SAP G_RP_PROCESS_LAYOUT Function Module for









G_RP_PROCESS_LAYOUT is a standard g rp process layout 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 g rp process layout FM, simply by entering the name G_RP_PROCESS_LAYOUT into the relevant SAP transaction such as SE37 or SE38.

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



Function G_RP_PROCESS_LAYOUT 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 'G_RP_PROCESS_LAYOUT'"
EXPORTING
* MODE = 'S' "
TABNAME = "Library
FORM = "Report Name
* LAYOUT = "Standard Layout

IMPORTING
COLTEXTPOS = "
PAGEWIDTH = "Page Width
TOPDOWN = "
LEADCOLWIDTH = "Width of lead column
SUM_FROM = "
SUM_TO = "

TABLES
PRINTCLASS = "

EXCEPTIONS
LAYOUT_NOT_FOUND = 1 REPORT_NOT_FOUND = 2 LIB_NOT_FOUND = 3 INVALID_MODE = 4
.



IMPORTING Parameters details for G_RP_PROCESS_LAYOUT

MODE -

Data type: RWIF_C1-PARAM
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABNAME - Library

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

FORM - Report Name

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

LAYOUT - Standard Layout

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

EXPORTING Parameters details for G_RP_PROCESS_LAYOUT

COLTEXTPOS -

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

PAGEWIDTH - Page Width

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

TOPDOWN -

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

LEADCOLWIDTH - Width of lead column

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

SUM_FROM -

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

SUM_TO -

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

TABLES Parameters details for G_RP_PROCESS_LAYOUT

PRINTCLASS -

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

EXCEPTIONS details

LAYOUT_NOT_FOUND -

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

REPORT_NOT_FOUND -

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

LIB_NOT_FOUND -

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

INVALID_MODE -

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

Copy and paste ABAP code example for G_RP_PROCESS_LAYOUT 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_mode  TYPE RWIF_C1-PARAM, "   'S'
lv_coltextpos  TYPE T800-COLTP, "   
lt_printclass  TYPE STANDARD TABLE OF CEPRINT, "   
lv_layout_not_found  TYPE CEPRINT, "   
lv_tabname  TYPE CEFORMF-TABNAME, "   
lv_pagewidth  TYPE T800-PAGWD, "   
lv_report_not_found  TYPE T800, "   
lv_form  TYPE CEFORMF-FORM, "   
lv_topdown  TYPE T800-TFROW, "   
lv_lib_not_found  TYPE T800, "   
lv_layout  TYPE T801X-SNAME, "   
lv_invalid_mode  TYPE T801X, "   
lv_leadcolwidth  TYPE T800-RTITW, "   
lv_sum_from  TYPE T800-SUM_FROM, "   
lv_sum_to  TYPE T800-SUM_TO. "   

  CALL FUNCTION 'G_RP_PROCESS_LAYOUT'  "
    EXPORTING
         MODE = lv_mode
         TABNAME = lv_tabname
         FORM = lv_form
         LAYOUT = lv_layout
    IMPORTING
         COLTEXTPOS = lv_coltextpos
         PAGEWIDTH = lv_pagewidth
         TOPDOWN = lv_topdown
         LEADCOLWIDTH = lv_leadcolwidth
         SUM_FROM = lv_sum_from
         SUM_TO = lv_sum_to
    TABLES
         PRINTCLASS = lt_printclass
    EXCEPTIONS
        LAYOUT_NOT_FOUND = 1
        REPORT_NOT_FOUND = 2
        LIB_NOT_FOUND = 3
        INVALID_MODE = 4
. " G_RP_PROCESS_LAYOUT




ABAP code using 7.40 inline data declarations to call FM G_RP_PROCESS_LAYOUT

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 PARAM FROM RWIF_C1 INTO @DATA(ld_mode).
DATA(ld_mode) = 'S'.
 
"SELECT single COLTP FROM T800 INTO @DATA(ld_coltextpos).
 
 
 
"SELECT single TABNAME FROM CEFORMF INTO @DATA(ld_tabname).
 
"SELECT single PAGWD FROM T800 INTO @DATA(ld_pagewidth).
 
 
"SELECT single FORM FROM CEFORMF INTO @DATA(ld_form).
 
"SELECT single TFROW FROM T800 INTO @DATA(ld_topdown).
 
 
"SELECT single SNAME FROM T801X INTO @DATA(ld_layout).
 
 
"SELECT single RTITW FROM T800 INTO @DATA(ld_leadcolwidth).
 
"SELECT single SUM_FROM FROM T800 INTO @DATA(ld_sum_from).
 
"SELECT single SUM_TO FROM T800 INTO @DATA(ld_sum_to).
 


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!