SAP Function Modules

HR_FORMS_FCL_READ SAP Function module







HR_FORMS_FCL_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 HR_FORMS_FCL_READ into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM HR_FORMS_FCL_READ - HR FORMS FCL READ





CALL FUNCTION 'HR_FORMS_FCL_READ' "
  EXPORTING
    molga =                     " t514f-molga
    class =                     " t514f-class
*   sprsl = SY-LANGU            " sy-langu
*   no_references = ' '         " xfeld
  IMPORTING
    i514f =                     " t514f
* TABLES
*   i514k =                     " t514k
*   i514s =                     " t514s
*   i514n =                     " t514n
*   i514t =                     " t514t
*   i514b =                     " t514b
*   i514r =                     " t514r
*   i514c =                     " t514c
*   i514u =                     " t514u
*   i514x =                     " t514x
  EXCEPTIONS
    READ_ERROR = 1              "
    REFERENCE_ERROR = 2         "
    .  "  HR_FORMS_FCL_READ

ABAP code example for Function Module HR_FORMS_FCL_READ





The ABAP code below is a full code listing to execute function module HR_FORMS_FCL_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_i514f  TYPE T514F ,
it_i514k  TYPE STANDARD TABLE OF T514K,"TABLES PARAM
wa_i514k  LIKE LINE OF it_i514k ,
it_i514s  TYPE STANDARD TABLE OF T514S,"TABLES PARAM
wa_i514s  LIKE LINE OF it_i514s ,
it_i514n  TYPE STANDARD TABLE OF T514N,"TABLES PARAM
wa_i514n  LIKE LINE OF it_i514n ,
it_i514t  TYPE STANDARD TABLE OF T514T,"TABLES PARAM
wa_i514t  LIKE LINE OF it_i514t ,
it_i514b  TYPE STANDARD TABLE OF T514B,"TABLES PARAM
wa_i514b  LIKE LINE OF it_i514b ,
it_i514r  TYPE STANDARD TABLE OF T514R,"TABLES PARAM
wa_i514r  LIKE LINE OF it_i514r ,
it_i514c  TYPE STANDARD TABLE OF T514C,"TABLES PARAM
wa_i514c  LIKE LINE OF it_i514c ,
it_i514u  TYPE STANDARD TABLE OF T514U,"TABLES PARAM
wa_i514u  LIKE LINE OF it_i514u ,
it_i514x  TYPE STANDARD TABLE OF T514X,"TABLES PARAM
wa_i514x  LIKE LINE OF it_i514x .


SELECT single MOLGA
FROM T514F
INTO @DATA(ld_molga).


SELECT single CLASS
FROM T514F
INTO @DATA(ld_class).

DATA(ld_sprsl) = 'Check type of data required'.
DATA(ld_no_references) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i514k to it_i514k.

"populate fields of struture and append to itab
append wa_i514s to it_i514s.

"populate fields of struture and append to itab
append wa_i514n to it_i514n.

"populate fields of struture and append to itab
append wa_i514t to it_i514t.

"populate fields of struture and append to itab
append wa_i514b to it_i514b.

"populate fields of struture and append to itab
append wa_i514r to it_i514r.

"populate fields of struture and append to itab
append wa_i514c to it_i514c.

"populate fields of struture and append to itab
append wa_i514u to it_i514u.

"populate fields of struture and append to itab
append wa_i514x to it_i514x. . CALL FUNCTION 'HR_FORMS_FCL_READ' EXPORTING molga = ld_molga class = ld_class * sprsl = ld_sprsl * no_references = ld_no_references IMPORTING i514f = ld_i514f * TABLES * i514k = it_i514k * i514s = it_i514s * i514n = it_i514n * i514t = it_i514t * i514b = it_i514b * i514r = it_i514r * i514c = it_i514c * i514u = it_i514u * i514x = it_i514x EXCEPTIONS READ_ERROR = 1 REFERENCE_ERROR = 2 . " HR_FORMS_FCL_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_i514f  TYPE T514F ,
ld_molga  TYPE T514F-MOLGA ,
it_i514k  TYPE STANDARD TABLE OF T514K ,
wa_i514k  LIKE LINE OF it_i514k,
ld_class  TYPE T514F-CLASS ,
it_i514s  TYPE STANDARD TABLE OF T514S ,
wa_i514s  LIKE LINE OF it_i514s,
ld_sprsl  TYPE SY-LANGU ,
it_i514n  TYPE STANDARD TABLE OF T514N ,
wa_i514n  LIKE LINE OF it_i514n,
ld_no_references  TYPE XFELD ,
it_i514t  TYPE STANDARD TABLE OF T514T ,
wa_i514t  LIKE LINE OF it_i514t,
it_i514b  TYPE STANDARD TABLE OF T514B ,
wa_i514b  LIKE LINE OF it_i514b,
it_i514r  TYPE STANDARD TABLE OF T514R ,
wa_i514r  LIKE LINE OF it_i514r,
it_i514c  TYPE STANDARD TABLE OF T514C ,
wa_i514c  LIKE LINE OF it_i514c,
it_i514u  TYPE STANDARD TABLE OF T514U ,
wa_i514u  LIKE LINE OF it_i514u,
it_i514x  TYPE STANDARD TABLE OF T514X ,
wa_i514x  LIKE LINE OF it_i514x.


SELECT single MOLGA
FROM T514F
INTO ld_molga.


"populate fields of struture and append to itab
append wa_i514k to it_i514k.

SELECT single CLASS
FROM T514F
INTO ld_class.


"populate fields of struture and append to itab
append wa_i514s to it_i514s.
ld_sprsl = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i514n to it_i514n.
ld_no_references = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i514t to it_i514t.

"populate fields of struture and append to itab
append wa_i514b to it_i514b.

"populate fields of struture and append to itab
append wa_i514r to it_i514r.

"populate fields of struture and append to itab
append wa_i514c to it_i514c.

"populate fields of struture and append to itab
append wa_i514u to it_i514u.

"populate fields of struture and append to itab
append wa_i514x to it_i514x.

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 HR_FORMS_FCL_READ or its description.