SAP Function Modules

CY01_OBJECT_INFORMATION_READ SAP Function module







CY01_OBJECT_INFORMATION_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CY01_OBJECT_INFORMATION_READ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CY19
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CY01_OBJECT_INFORMATION_READ - CY01 OBJECT INFORMATION READ





CALL FUNCTION 'CY01_OBJECT_INFORMATION_READ' "
  EXPORTING
    index =                     " cyexit_1-index
*   afvg_info = ' '             "
*   afko_info = ' '             "
*   plaf_info = ' '             "
*   crhd_info = ' '             "
*   kako_info = ' '             "
*   afvg_before_info = ' '      "
*   resb_info = ' '             "
*   afru_info = ' '             "
  IMPORTING
    in_afvg =                   " afvgd
    in_afko =                   " caufvd
    in_plaf =                   " plaf
    in_crhd =                   " rcrhd_a
    in_kako =                   " rkako_a
* TABLES
*   in_tab_afvg_before =        " afvgd
*   in_tab_resb =               " resbdget
*   in_tab_afru =               " afrud
*   in_tab_kako =               " rkako_a
    .  "  CY01_OBJECT_INFORMATION_READ

ABAP code example for Function Module CY01_OBJECT_INFORMATION_READ





The ABAP code below is a full code listing to execute function module CY01_OBJECT_INFORMATION_READ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_in_afvg  TYPE AFVGD ,
ld_in_afko  TYPE CAUFVD ,
ld_in_plaf  TYPE PLAF ,
ld_in_crhd  TYPE RCRHD_A ,
ld_in_kako  TYPE RKAKO_A ,
it_in_tab_afvg_before  TYPE STANDARD TABLE OF AFVGD,"TABLES PARAM
wa_in_tab_afvg_before  LIKE LINE OF it_in_tab_afvg_before ,
it_in_tab_resb  TYPE STANDARD TABLE OF RESBDGET,"TABLES PARAM
wa_in_tab_resb  LIKE LINE OF it_in_tab_resb ,
it_in_tab_afru  TYPE STANDARD TABLE OF AFRUD,"TABLES PARAM
wa_in_tab_afru  LIKE LINE OF it_in_tab_afru ,
it_in_tab_kako  TYPE STANDARD TABLE OF RKAKO_A,"TABLES PARAM
wa_in_tab_kako  LIKE LINE OF it_in_tab_kako .


DATA(ld_index) = 123
DATA(ld_afvg_info) = 'some text here'.
DATA(ld_afko_info) = 'some text here'.
DATA(ld_plaf_info) = 'some text here'.
DATA(ld_crhd_info) = 'some text here'.
DATA(ld_kako_info) = 'some text here'.
DATA(ld_afvg_before_info) = 'some text here'.
DATA(ld_resb_info) = 'some text here'.
DATA(ld_afru_info) = 'some text here'.

"populate fields of struture and append to itab
append wa_in_tab_afvg_before to it_in_tab_afvg_before.

"populate fields of struture and append to itab
append wa_in_tab_resb to it_in_tab_resb.

"populate fields of struture and append to itab
append wa_in_tab_afru to it_in_tab_afru.

"populate fields of struture and append to itab
append wa_in_tab_kako to it_in_tab_kako. . CALL FUNCTION 'CY01_OBJECT_INFORMATION_READ' EXPORTING index = ld_index * afvg_info = ld_afvg_info * afko_info = ld_afko_info * plaf_info = ld_plaf_info * crhd_info = ld_crhd_info * kako_info = ld_kako_info * afvg_before_info = ld_afvg_before_info * resb_info = ld_resb_info * afru_info = ld_afru_info IMPORTING in_afvg = ld_in_afvg in_afko = ld_in_afko in_plaf = ld_in_plaf in_crhd = ld_in_crhd in_kako = ld_in_kako * TABLES * in_tab_afvg_before = it_in_tab_afvg_before * in_tab_resb = it_in_tab_resb * in_tab_afru = it_in_tab_afru * in_tab_kako = it_in_tab_kako . " CY01_OBJECT_INFORMATION_READ
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_in_afvg  TYPE AFVGD ,
ld_index  TYPE CYEXIT_1-INDEX ,
it_in_tab_afvg_before  TYPE STANDARD TABLE OF AFVGD ,
wa_in_tab_afvg_before  LIKE LINE OF it_in_tab_afvg_before,
ld_in_afko  TYPE CAUFVD ,
ld_afvg_info  TYPE STRING ,
it_in_tab_resb  TYPE STANDARD TABLE OF RESBDGET ,
wa_in_tab_resb  LIKE LINE OF it_in_tab_resb,
ld_in_plaf  TYPE PLAF ,
ld_afko_info  TYPE STRING ,
it_in_tab_afru  TYPE STANDARD TABLE OF AFRUD ,
wa_in_tab_afru  LIKE LINE OF it_in_tab_afru,
ld_in_crhd  TYPE RCRHD_A ,
ld_plaf_info  TYPE STRING ,
it_in_tab_kako  TYPE STANDARD TABLE OF RKAKO_A ,
wa_in_tab_kako  LIKE LINE OF it_in_tab_kako,
ld_in_kako  TYPE RKAKO_A ,
ld_crhd_info  TYPE STRING ,
ld_kako_info  TYPE STRING ,
ld_afvg_before_info  TYPE STRING ,
ld_resb_info  TYPE STRING ,
ld_afru_info  TYPE STRING .


ld_index = 123

"populate fields of struture and append to itab
append wa_in_tab_afvg_before to it_in_tab_afvg_before.
ld_afvg_info = 'some text here'.

"populate fields of struture and append to itab
append wa_in_tab_resb to it_in_tab_resb.
ld_afko_info = 'some text here'.

"populate fields of struture and append to itab
append wa_in_tab_afru to it_in_tab_afru.
ld_plaf_info = 'some text here'.

"populate fields of struture and append to itab
append wa_in_tab_kako to it_in_tab_kako.
ld_crhd_info = 'some text here'.
ld_kako_info = 'some text here'.
ld_afvg_before_info = 'some text here'.
ld_resb_info = 'some text here'.
ld_afru_info = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CY01_OBJECT_INFORMATION_READ or its description.