SAP CY01_INDEX_INFORMATION_READ Function Module for NOTRANSL: Lesen von Daten zu einem Index (z.B. AFKO zum Index eines KBED-S









CY01_INDEX_INFORMATION_READ is a standard cy01 index information 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: Lesen von Daten zu einem Index (z.B. AFKO zum Index eines KBED-S 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 cy01 index information read FM, simply by entering the name CY01_INDEX_INFORMATION_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function CY01_INDEX_INFORMATION_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 'CY01_INDEX_INFORMATION_READ'"NOTRANSL: Lesen von Daten zu einem Index (z.B. AFKO zum Index eines KBED-S
EXPORTING
IN_INDEX = "Index to object
* PERS_INFO = ' ' "
* MARA_INFO = ' ' "
* IN_BEGIN_DATE = SY-DATLO "Date and Time, Current (Application Server) Date
* IN_END_DATE = SY-DATLO "Date and Time, Current (Application Server) Date
IN_STRUKTUR = "Structure used to define grouping
* KBED_INFO = ' ' "
* AFVG_INFO = ' ' "
* AFKO_INFO = ' ' "
* PLAF_INFO = ' ' "
* SAUF_INFO = ' ' "
* CRHD_INFO = ' ' "
* KAKO_INFO = ' ' "

IMPORTING
OUT_KBED = "Capacity requirements: dialog table for KBED
OUT_AFVG = "Order: Dialog table for Table AFVG (order operation)
OUT_AFKO = "Dialog Structure for Order Headers and Items
OUT_PLAF = "Planned Order
OUT_SAUF = "SOP Orders
OUT_CRHD = "Work Center Header Data with Short Text
OUT_KAKO = "Capacity Header Data with Short Text
OUT_PERS = "Standard Selection of Persons for Manpower Planning
OUT_MARA = "Object table 'MARA' (resource planning)
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLCY19_001 User exits to change order operations
EXIT_SAPLCY19_002 User exits to change order operations

IMPORTING Parameters details for CY01_INDEX_INFORMATION_READ

IN_INDEX - Index to object

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

PERS_INFO -

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

MARA_INFO -

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

IN_BEGIN_DATE - Date and Time, Current (Application Server) Date

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

IN_END_DATE - Date and Time, Current (Application Server) Date

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

IN_STRUKTUR - Structure used to define grouping

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

KBED_INFO -

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

AFVG_INFO -

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

AFKO_INFO -

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

PLAF_INFO -

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

SAUF_INFO -

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

CRHD_INFO -

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

KAKO_INFO -

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

EXPORTING Parameters details for CY01_INDEX_INFORMATION_READ

OUT_KBED - Capacity requirements: dialog table for KBED

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

OUT_AFVG - Order: Dialog table for Table AFVG (order operation)

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

OUT_AFKO - Dialog Structure for Order Headers and Items

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

OUT_PLAF - Planned Order

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

OUT_SAUF - SOP Orders

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

OUT_CRHD - Work Center Header Data with Short Text

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

OUT_KAKO - Capacity Header Data with Short Text

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

OUT_PERS - Standard Selection of Persons for Manpower Planning

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

OUT_MARA - Object table 'MARA' (resource planning)

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

Copy and paste ABAP code example for CY01_INDEX_INFORMATION_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_in_index  TYPE CYEXIT_1-INDEX, "   
lv_out_kbed  TYPE KBEDD, "   
lv_pers_info  TYPE KBEDD, "   ' '
lv_mara_info  TYPE KBEDD, "   ' '
lv_in_begin_date  TYPE SY-DATUM, "   SY-DATLO
lv_in_end_date  TYPE SY-DATUM, "   SY-DATLO
lv_out_afvg  TYPE AFVGD, "   
lv_in_struktur  TYPE CYBED_GRU-STRUKTUR, "   
lv_out_afko  TYPE CAUFVD, "   
lv_kbed_info  TYPE CAUFVD, "   ' '
lv_out_plaf  TYPE PLAF, "   
lv_afvg_info  TYPE PLAF, "   ' '
lv_out_sauf  TYPE SAUF, "   
lv_afko_info  TYPE SAUF, "   ' '
lv_out_crhd  TYPE RCRHD_A, "   
lv_plaf_info  TYPE RCRHD_A, "   ' '
lv_out_kako  TYPE RKAKO_A, "   
lv_sauf_info  TYPE RKAKO_A, "   ' '
lv_out_pers  TYPE PERSON, "   
lv_crhd_info  TYPE PERSON, "   ' '
lv_out_mara  TYPE CYMARA, "   
lv_kako_info  TYPE CYMARA. "   ' '

  CALL FUNCTION 'CY01_INDEX_INFORMATION_READ'  "NOTRANSL: Lesen von Daten zu einem Index (z.B. AFKO zum Index eines KBED-S
    EXPORTING
         IN_INDEX = lv_in_index
         PERS_INFO = lv_pers_info
         MARA_INFO = lv_mara_info
         IN_BEGIN_DATE = lv_in_begin_date
         IN_END_DATE = lv_in_end_date
         IN_STRUKTUR = lv_in_struktur
         KBED_INFO = lv_kbed_info
         AFVG_INFO = lv_afvg_info
         AFKO_INFO = lv_afko_info
         PLAF_INFO = lv_plaf_info
         SAUF_INFO = lv_sauf_info
         CRHD_INFO = lv_crhd_info
         KAKO_INFO = lv_kako_info
    IMPORTING
         OUT_KBED = lv_out_kbed
         OUT_AFVG = lv_out_afvg
         OUT_AFKO = lv_out_afko
         OUT_PLAF = lv_out_plaf
         OUT_SAUF = lv_out_sauf
         OUT_CRHD = lv_out_crhd
         OUT_KAKO = lv_out_kako
         OUT_PERS = lv_out_pers
         OUT_MARA = lv_out_mara
. " CY01_INDEX_INFORMATION_READ




ABAP code using 7.40 inline data declarations to call FM CY01_INDEX_INFORMATION_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 INDEX FROM CYEXIT_1 INTO @DATA(ld_in_index).
 
 
DATA(ld_pers_info) = ' '.
 
DATA(ld_mara_info) = ' '.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_in_begin_date).
DATA(ld_in_begin_date) = SY-DATLO.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_in_end_date).
DATA(ld_in_end_date) = SY-DATLO.
 
 
"SELECT single STRUKTUR FROM CYBED_GRU INTO @DATA(ld_in_struktur).
 
 
DATA(ld_kbed_info) = ' '.
 
 
DATA(ld_afvg_info) = ' '.
 
 
DATA(ld_afko_info) = ' '.
 
 
DATA(ld_plaf_info) = ' '.
 
 
DATA(ld_sauf_info) = ' '.
 
 
DATA(ld_crhd_info) = ' '.
 
 
DATA(ld_kako_info) = ' '.
 


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!