SAP RPT_D_FORMAT_FOR_REP_LOAD Function Module for RPT: Supplies internal table FORMATS_TAB with the data from CEFORMC









RPT_D_FORMAT_FOR_REP_LOAD is a standard rpt d format for rep load SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RPT: Supplies internal table FORMATS_TAB with the data from CEFORMC 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 rpt d format for rep load FM, simply by entering the name RPT_D_FORMAT_FOR_REP_LOAD into the relevant SAP transaction such as SE37 or SE38.

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



Function RPT_D_FORMAT_FOR_REP_LOAD 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 'RPT_D_FORMAT_FOR_REP_LOAD'"RPT: Supplies internal table FORMATS_TAB with the data from CEFORMC
EXPORTING
APPLCLASS = "Application class
SUBCLASS = "Subgroup
TABNAME = "Table name
FORM = "Form name
* SMODUS = ' ' "
* MEM_ID = ' ' "Memory ID for EXPORT/IMPORT

EXCEPTIONS
FORM_NOT_FOUND_IN_CEPRINT = 1 FORM_NOT_FOUND_IN_CEFORMS = 2
.



IMPORTING Parameters details for RPT_D_FORMAT_FOR_REP_LOAD

APPLCLASS - Application class

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

SUBCLASS - Subgroup

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

TABNAME - Table name

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

FORM - Form name

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

SMODUS -

Data type: RKB1D-SMODUS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MEM_ID - Memory ID for EXPORT/IMPORT

Data type: RGRWA-MEMORYID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FORM_NOT_FOUND_IN_CEPRINT - No records exist for the specified form in CEPRINT

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

FORM_NOT_FOUND_IN_CEFORMS -

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

Copy and paste ABAP code example for RPT_D_FORMAT_FOR_REP_LOAD 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_applclass  TYPE CEPRINT-APPLCLASS, "   
lv_form_not_found_in_ceprint  TYPE CEPRINT, "   
lv_subclass  TYPE CEPRINT-SUBCLASS, "   
lv_form_not_found_in_ceforms  TYPE CEPRINT, "   
lv_tabname  TYPE CEPRINT-TABNAME, "   
lv_form  TYPE CEPRINT-FORM, "   
lv_smodus  TYPE RKB1D-SMODUS, "   SPACE
lv_mem_id  TYPE RGRWA-MEMORYID. "   SPACE

  CALL FUNCTION 'RPT_D_FORMAT_FOR_REP_LOAD'  "RPT: Supplies internal table FORMATS_TAB with the data from CEFORMC
    EXPORTING
         APPLCLASS = lv_applclass
         SUBCLASS = lv_subclass
         TABNAME = lv_tabname
         FORM = lv_form
         SMODUS = lv_smodus
         MEM_ID = lv_mem_id
    EXCEPTIONS
        FORM_NOT_FOUND_IN_CEPRINT = 1
        FORM_NOT_FOUND_IN_CEFORMS = 2
. " RPT_D_FORMAT_FOR_REP_LOAD




ABAP code using 7.40 inline data declarations to call FM RPT_D_FORMAT_FOR_REP_LOAD

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 APPLCLASS FROM CEPRINT INTO @DATA(ld_applclass).
 
 
"SELECT single SUBCLASS FROM CEPRINT INTO @DATA(ld_subclass).
 
 
"SELECT single TABNAME FROM CEPRINT INTO @DATA(ld_tabname).
 
"SELECT single FORM FROM CEPRINT INTO @DATA(ld_form).
 
"SELECT single SMODUS FROM RKB1D INTO @DATA(ld_smodus).
DATA(ld_smodus) = ' '.
 
"SELECT single MEMORYID FROM RGRWA INTO @DATA(ld_mem_id).
DATA(ld_mem_id) = ' '.
 


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!