SAP RPY_PROGRAM_READ Function Module for









RPY_PROGRAM_READ is a standard rpy program read 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 rpy program read FM, simply by entering the name RPY_PROGRAM_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: SIFP
Program Name: SAPLSIFP
Main Program: SAPLSIFP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RPY_PROGRAM_READ 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 'RPY_PROGRAM_READ'"
EXPORTING
* LANGUAGE = SY-LANGU "
PROGRAM_NAME = "
* WITH_INCLUDELIST = 'X' "
* ONLY_SOURCE = ' ' "
* ONLY_TEXTS = ' ' "
* READ_LATEST_VERSION = ' ' "
* WITH_LOWERCASE = ' ' "

IMPORTING
PROG_INF = "

TABLES
* INCLUDE_TAB = "
* SOURCE = "Source Table
* SOURCE_EXTENDED = "
* TEXTELEMENTS = "

EXCEPTIONS
CANCELLED = 1 NOT_FOUND = 2 PERMISSION_ERROR = 3
.



IMPORTING Parameters details for RPY_PROGRAM_READ

LANGUAGE -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROGRAM_NAME -

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

WITH_INCLUDELIST -

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

ONLY_SOURCE -

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

ONLY_TEXTS -

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

READ_LATEST_VERSION -

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

WITH_LOWERCASE -

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

EXPORTING Parameters details for RPY_PROGRAM_READ

PROG_INF -

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

TABLES Parameters details for RPY_PROGRAM_READ

INCLUDE_TAB -

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

SOURCE - Source Table

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

SOURCE_EXTENDED -

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

TEXTELEMENTS -

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

EXCEPTIONS details

CANCELLED -

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

NOT_FOUND -

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

PERMISSION_ERROR -

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

Copy and paste ABAP code example for RPY_PROGRAM_READ 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_language  TYPE SY-LANGU, "   SY-LANGU
lv_prog_inf  TYPE RPY_PROG, "   
lv_cancelled  TYPE RPY_PROG, "   
lt_include_tab  TYPE STANDARD TABLE OF RPY_REPO, "   
lt_source  TYPE STANDARD TABLE OF ABAPSOURCE, "   
lv_not_found  TYPE ABAPSOURCE, "   
lv_program_name  TYPE RPY_PROG-PROGNAME, "   
lt_source_extended  TYPE STANDARD TABLE OF ABAPTXT255, "   
lv_permission_error  TYPE ABAPTXT255, "   
lv_with_includelist  TYPE RGLIF-WITH_INCL, "   'X'
lv_only_source  TYPE RGLIF-ONLY_SOURC, "   ' '
lt_textelements  TYPE STANDARD TABLE OF TEXTPOOL, "   
lv_only_texts  TYPE RGLIF-ONLY_TEXTS, "   ' '
lv_read_latest_version  TYPE PROGDIR-STATE, "   SPACE
lv_with_lowercase  TYPE RGLIF-LOWERCASE. "   ' '

  CALL FUNCTION 'RPY_PROGRAM_READ'  "
    EXPORTING
         LANGUAGE = lv_language
         PROGRAM_NAME = lv_program_name
         WITH_INCLUDELIST = lv_with_includelist
         ONLY_SOURCE = lv_only_source
         ONLY_TEXTS = lv_only_texts
         READ_LATEST_VERSION = lv_read_latest_version
         WITH_LOWERCASE = lv_with_lowercase
    IMPORTING
         PROG_INF = lv_prog_inf
    TABLES
         INCLUDE_TAB = lt_include_tab
         SOURCE = lt_source
         SOURCE_EXTENDED = lt_source_extended
         TEXTELEMENTS = lt_textelements
    EXCEPTIONS
        CANCELLED = 1
        NOT_FOUND = 2
        PERMISSION_ERROR = 3
. " RPY_PROGRAM_READ




ABAP code using 7.40 inline data declarations to call FM RPY_PROGRAM_READ

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 LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
 
 
 
 
"SELECT single PROGNAME FROM RPY_PROG INTO @DATA(ld_program_name).
 
 
 
"SELECT single WITH_INCL FROM RGLIF INTO @DATA(ld_with_includelist).
DATA(ld_with_includelist) = 'X'.
 
"SELECT single ONLY_SOURC FROM RGLIF INTO @DATA(ld_only_source).
DATA(ld_only_source) = ' '.
 
 
"SELECT single ONLY_TEXTS FROM RGLIF INTO @DATA(ld_only_texts).
DATA(ld_only_texts) = ' '.
 
"SELECT single STATE FROM PROGDIR INTO @DATA(ld_read_latest_version).
DATA(ld_read_latest_version) = ' '.
 
"SELECT single LOWERCASE FROM RGLIF INTO @DATA(ld_with_lowercase).
DATA(ld_with_lowercase) = ' '.
 


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!