SAP RM_CPZP_READ Function Module for NOTRANSL: Zählpunktmengen zum Stichdatum aus CPZP-Datei lesen









RM_CPZP_READ is a standard rm cpzp read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Zählpunktmengen zum Stichdatum aus CPZP-Datei lesen 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 rm cpzp read FM, simply by entering the name RM_CPZP_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_CPZP_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 'RM_CPZP_READ'"NOTRANSL: Zählpunktmengen zum Stichdatum aus CPZP-Datei lesen
EXPORTING
I_PKOSA = "
* I_VERID = ' ' "
* I_SAFNR = ' ' "Run Schedule Header Number
* I_WERKS = ' ' "
* I_DATUM = "
* I_GJPER = "
* I_PZPS_INCL_TOP = ' ' "
* I_DONT_CHECK_CHZP = ' ' "

IMPORTING
E_GJPER = "
E_DATA_IN_PREVIOUS_PERIOD = "
E_DATA_IN_FUTURE_PERIOD = "

TABLES
* E_CPZP = "
* E_PZPS = "

EXCEPTIONS
NOT_FOUND = 1 DATA_IN_PZPP = 2 WRONG_INPUT = 3 DATE_ERROR = 4
.



IMPORTING Parameters details for RM_CPZP_READ

I_PKOSA -

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

I_VERID -

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

I_SAFNR - Run Schedule Header Number

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

I_WERKS -

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

I_DATUM -

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

I_GJPER -

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

I_PZPS_INCL_TOP -

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

I_DONT_CHECK_CHZP -

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

EXPORTING Parameters details for RM_CPZP_READ

E_GJPER -

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

E_DATA_IN_PREVIOUS_PERIOD -

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

E_DATA_IN_FUTURE_PERIOD -

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

TABLES Parameters details for RM_CPZP_READ

E_CPZP -

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

E_PZPS -

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

EXCEPTIONS details

NOT_FOUND -

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

DATA_IN_PZPP -

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

WRONG_INPUT - Incorrect Input Parameter

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

DATE_ERROR -

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

Copy and paste ABAP code example for RM_CPZP_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:
lt_e_cpzp  TYPE STANDARD TABLE OF CPZP, "   
lv_e_gjper  TYPE CPZP-GJPER, "   
lv_i_pkosa  TYPE PKOSA-AUFNR, "   
lv_not_found  TYPE PKOSA, "   
lt_e_pzps  TYPE STANDARD TABLE OF PZPS, "   
lv_i_verid  TYPE MKAL-VERID, "   SPACE
lv_data_in_pzpp  TYPE MKAL, "   
lv_e_data_in_previous_period  TYPE C, "   
lv_i_safnr  TYPE SAFK-AUFNR, "   SPACE
lv_wrong_input  TYPE SAFK, "   
lv_e_data_in_future_period  TYPE C, "   
lv_i_werks  TYPE PKOSA-WERKS, "   SPACE
lv_date_error  TYPE PKOSA, "   
lv_i_datum  TYPE SY-DATUM, "   
lv_i_gjper  TYPE CPZP-GJPER, "   
lv_i_pzps_incl_top  TYPE C, "   SPACE
lv_i_dont_check_chzp  TYPE C. "   SPACE

  CALL FUNCTION 'RM_CPZP_READ'  "NOTRANSL: Zählpunktmengen zum Stichdatum aus CPZP-Datei lesen
    EXPORTING
         I_PKOSA = lv_i_pkosa
         I_VERID = lv_i_verid
         I_SAFNR = lv_i_safnr
         I_WERKS = lv_i_werks
         I_DATUM = lv_i_datum
         I_GJPER = lv_i_gjper
         I_PZPS_INCL_TOP = lv_i_pzps_incl_top
         I_DONT_CHECK_CHZP = lv_i_dont_check_chzp
    IMPORTING
         E_GJPER = lv_e_gjper
         E_DATA_IN_PREVIOUS_PERIOD = lv_e_data_in_previous_period
         E_DATA_IN_FUTURE_PERIOD = lv_e_data_in_future_period
    TABLES
         E_CPZP = lt_e_cpzp
         E_PZPS = lt_e_pzps
    EXCEPTIONS
        NOT_FOUND = 1
        DATA_IN_PZPP = 2
        WRONG_INPUT = 3
        DATE_ERROR = 4
. " RM_CPZP_READ




ABAP code using 7.40 inline data declarations to call FM RM_CPZP_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 GJPER FROM CPZP INTO @DATA(ld_e_gjper).
 
"SELECT single AUFNR FROM PKOSA INTO @DATA(ld_i_pkosa).
 
 
 
"SELECT single VERID FROM MKAL INTO @DATA(ld_i_verid).
DATA(ld_i_verid) = ' '.
 
 
 
"SELECT single AUFNR FROM SAFK INTO @DATA(ld_i_safnr).
DATA(ld_i_safnr) = ' '.
 
 
 
"SELECT single WERKS FROM PKOSA INTO @DATA(ld_i_werks).
DATA(ld_i_werks) = ' '.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datum).
 
"SELECT single GJPER FROM CPZP INTO @DATA(ld_i_gjper).
 
DATA(ld_i_pzps_incl_top) = ' '.
 
DATA(ld_i_dont_check_chzp) = ' '.
 


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!