SAP Function Modules

KL_EXT_ABEPOS_DATA_READ_TABLE SAP Function module - Kreditlimit: Lesen von Risikoeinzelpositionen von der Datenbank







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

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


Pattern for FM KL_EXT_ABEPOS_DATA_READ_TABLE - KL EXT ABEPOS DATA READ TABLE





CALL FUNCTION 'KL_EXT_ABEPOS_DATA_READ_TABLE' "Kreditlimit: Lesen von Risikoeinzelpositionen von der Datenbank
* EXPORTING
*   i_db_update =               "
*   i_objnr_tab =               " kl2_objnr_tab
*   i_arnr_tab =                " kl2_arnr_tab
* TABLES
*   i_extobj =                  " klextobj
*   e_bepos =                   " klbepos
*   e_abepos =                  " klabepos
  EXCEPTIONS
    NO_ENTRY_FOUND = 1          "
    .  "  KL_EXT_ABEPOS_DATA_READ_TABLE

ABAP code example for Function Module KL_EXT_ABEPOS_DATA_READ_TABLE





The ABAP code below is a full code listing to execute function module KL_EXT_ABEPOS_DATA_READ_TABLE 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_i_extobj  TYPE STANDARD TABLE OF KLEXTOBJ,"TABLES PARAM
wa_i_extobj  LIKE LINE OF it_i_extobj ,
it_e_bepos  TYPE STANDARD TABLE OF KLBEPOS,"TABLES PARAM
wa_e_bepos  LIKE LINE OF it_e_bepos ,
it_e_abepos  TYPE STANDARD TABLE OF KLABEPOS,"TABLES PARAM
wa_e_abepos  LIKE LINE OF it_e_abepos .

DATA(ld_i_db_update) = 'some text here'.
DATA(ld_i_objnr_tab) = 'Check type of data required'.
DATA(ld_i_arnr_tab) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_extobj to it_i_extobj.

"populate fields of struture and append to itab
append wa_e_bepos to it_e_bepos.

"populate fields of struture and append to itab
append wa_e_abepos to it_e_abepos. . CALL FUNCTION 'KL_EXT_ABEPOS_DATA_READ_TABLE' * EXPORTING * i_db_update = ld_i_db_update * i_objnr_tab = ld_i_objnr_tab * i_arnr_tab = ld_i_arnr_tab * TABLES * i_extobj = it_i_extobj * e_bepos = it_e_bepos * e_abepos = it_e_abepos EXCEPTIONS NO_ENTRY_FOUND = 1 . " KL_EXT_ABEPOS_DATA_READ_TABLE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_i_db_update  TYPE STRING ,
it_i_extobj  TYPE STANDARD TABLE OF KLEXTOBJ ,
wa_i_extobj  LIKE LINE OF it_i_extobj,
ld_i_objnr_tab  TYPE KL2_OBJNR_TAB ,
it_e_bepos  TYPE STANDARD TABLE OF KLBEPOS ,
wa_e_bepos  LIKE LINE OF it_e_bepos,
ld_i_arnr_tab  TYPE KL2_ARNR_TAB ,
it_e_abepos  TYPE STANDARD TABLE OF KLABEPOS ,
wa_e_abepos  LIKE LINE OF it_e_abepos.

ld_i_db_update = 'some text here'.

"populate fields of struture and append to itab
append wa_i_extobj to it_i_extobj.
ld_i_objnr_tab = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_bepos to it_e_bepos.
ld_i_arnr_tab = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_abepos to it_e_abepos.

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