SAP Function Modules

K_ABC_LIS_DIRECT_READ SAP Function module







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

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


Pattern for FM K_ABC_LIS_DIRECT_READ - K ABC LIS DIRECT READ





CALL FUNCTION 'K_ABC_LIS_DIRECT_READ' "
  EXPORTING
    gjahr =                     " ccss-gjahr
    kokrs =                     " ccss-kokrs
    lis_struct =                " tka03-struct
    lis_key_fig =               " tka03-kennz
    lis_variante =              " cosrv-variante
    lis_vrsio =                 " rklis-vvers
    period_from =               " ccss-buper
    period_cnt =                "
  TABLES
    cosrv_tab =                 " cosrv
    rtable_val =                " tplic_rval_tab
    .  "  K_ABC_LIS_DIRECT_READ

ABAP code example for Function Module K_ABC_LIS_DIRECT_READ





The ABAP code below is a full code listing to execute function module K_ABC_LIS_DIRECT_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:
it_cosrv_tab  TYPE STANDARD TABLE OF COSRV,"TABLES PARAM
wa_cosrv_tab  LIKE LINE OF it_cosrv_tab ,
it_rtable_val  TYPE STANDARD TABLE OF TPLIC_RVAL_TAB,"TABLES PARAM
wa_rtable_val  LIKE LINE OF it_rtable_val .


DATA(ld_gjahr) = Check type of data required

DATA(ld_kokrs) = some text here

SELECT single STRUCT
FROM TKA03
INTO @DATA(ld_lis_struct).


SELECT single KENNZ
FROM TKA03
INTO @DATA(ld_lis_key_fig).


SELECT single VARIANTE
FROM COSRV
INTO @DATA(ld_lis_variante).


DATA(ld_lis_vrsio) = some text here

DATA(ld_period_from) = Check type of data required
DATA(ld_period_cnt) = 'some text here'.

"populate fields of struture and append to itab
append wa_cosrv_tab to it_cosrv_tab.

"populate fields of struture and append to itab
append wa_rtable_val to it_rtable_val. . CALL FUNCTION 'K_ABC_LIS_DIRECT_READ' EXPORTING gjahr = ld_gjahr kokrs = ld_kokrs lis_struct = ld_lis_struct lis_key_fig = ld_lis_key_fig lis_variante = ld_lis_variante lis_vrsio = ld_lis_vrsio period_from = ld_period_from period_cnt = ld_period_cnt TABLES cosrv_tab = it_cosrv_tab rtable_val = it_rtable_val . " K_ABC_LIS_DIRECT_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_gjahr  TYPE CCSS-GJAHR ,
it_cosrv_tab  TYPE STANDARD TABLE OF COSRV ,
wa_cosrv_tab  LIKE LINE OF it_cosrv_tab,
ld_kokrs  TYPE CCSS-KOKRS ,
it_rtable_val  TYPE STANDARD TABLE OF TPLIC_RVAL_TAB ,
wa_rtable_val  LIKE LINE OF it_rtable_val,
ld_lis_struct  TYPE TKA03-STRUCT ,
ld_lis_key_fig  TYPE TKA03-KENNZ ,
ld_lis_variante  TYPE COSRV-VARIANTE ,
ld_lis_vrsio  TYPE RKLIS-VVERS ,
ld_period_from  TYPE CCSS-BUPER ,
ld_period_cnt  TYPE STRING .


ld_gjahr = Check type of data required

"populate fields of struture and append to itab
append wa_cosrv_tab to it_cosrv_tab.

ld_kokrs = some text here

"populate fields of struture and append to itab
append wa_rtable_val to it_rtable_val.

SELECT single STRUCT
FROM TKA03
INTO ld_lis_struct.


SELECT single KENNZ
FROM TKA03
INTO ld_lis_key_fig.


SELECT single VARIANTE
FROM COSRV
INTO ld_lis_variante.


ld_lis_vrsio = some text here

ld_period_from = Check type of data required
ld_period_cnt = '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 K_ABC_LIS_DIRECT_READ or its description.