SAP Function Modules

BAPI_READ_INDX_IMPTAB SAP Function module - NO LONGER IN USE !!! This module has been closed down!







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

Associated Function Group: GLEX
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_READ_INDX_IMPTAB - BAPI READ INDX IMPTAB





CALL FUNCTION 'BAPI_READ_INDX_IMPTAB' "NO LONGER IN USE !!!  This module has been closed down!
  EXPORTING
    i_item =                    " t854-item     Item
    i_pebis =                   " t863y-pebis   To Period
    i_pevon =                   " t863y-pevon   From Period
*   i_rrcty = '0'               " t863y-rrcty   Plan/Actual Indicator
    i_rsubd =                   " t863y-rsubd   Subgroup
    i_rvers =                   " t863y-rvers   Version
    i_ryear =                   " t863y-ryear   Year
*   i_watyp = SPACE             " t863y-watyp   Currency
  IMPORTING
    e_gendat =                  " t863y-gendat  Selection date
  TABLES
    imptab =                    " glex_impta
  EXCEPTIONS
    NOT_FOUND = 1               "               if 1, do not select any values
    .  "  BAPI_READ_INDX_IMPTAB

ABAP code example for Function Module BAPI_READ_INDX_IMPTAB





The ABAP code below is a full code listing to execute function module BAPI_READ_INDX_IMPTAB 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_e_gendat  TYPE T863Y-GENDAT ,
it_imptab  TYPE STANDARD TABLE OF GLEX_IMPTA,"TABLES PARAM
wa_imptab  LIKE LINE OF it_imptab .


SELECT single ITEM
FROM T854
INTO @DATA(ld_i_item).


SELECT single PEBIS
FROM T863Y
INTO @DATA(ld_i_pebis).


SELECT single PEVON
FROM T863Y
INTO @DATA(ld_i_pevon).


SELECT single RRCTY
FROM T863Y
INTO @DATA(ld_i_rrcty).


SELECT single RSUBD
FROM T863Y
INTO @DATA(ld_i_rsubd).


SELECT single RVERS
FROM T863Y
INTO @DATA(ld_i_rvers).


SELECT single RYEAR
FROM T863Y
INTO @DATA(ld_i_ryear).


SELECT single WATYP
FROM T863Y
INTO @DATA(ld_i_watyp).


"populate fields of struture and append to itab
append wa_imptab to it_imptab. . CALL FUNCTION 'BAPI_READ_INDX_IMPTAB' EXPORTING i_item = ld_i_item i_pebis = ld_i_pebis i_pevon = ld_i_pevon * i_rrcty = ld_i_rrcty i_rsubd = ld_i_rsubd i_rvers = ld_i_rvers i_ryear = ld_i_ryear * i_watyp = ld_i_watyp IMPORTING e_gendat = ld_e_gendat TABLES imptab = it_imptab EXCEPTIONS NOT_FOUND = 1 . " BAPI_READ_INDX_IMPTAB
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_e_gendat  TYPE T863Y-GENDAT ,
ld_i_item  TYPE T854-ITEM ,
it_imptab  TYPE STANDARD TABLE OF GLEX_IMPTA ,
wa_imptab  LIKE LINE OF it_imptab,
ld_i_pebis  TYPE T863Y-PEBIS ,
ld_i_pevon  TYPE T863Y-PEVON ,
ld_i_rrcty  TYPE T863Y-RRCTY ,
ld_i_rsubd  TYPE T863Y-RSUBD ,
ld_i_rvers  TYPE T863Y-RVERS ,
ld_i_ryear  TYPE T863Y-RYEAR ,
ld_i_watyp  TYPE T863Y-WATYP .


SELECT single ITEM
FROM T854
INTO ld_i_item.


"populate fields of struture and append to itab
append wa_imptab to it_imptab.

SELECT single PEBIS
FROM T863Y
INTO ld_i_pebis.


SELECT single PEVON
FROM T863Y
INTO ld_i_pevon.


SELECT single RRCTY
FROM T863Y
INTO ld_i_rrcty.


SELECT single RSUBD
FROM T863Y
INTO ld_i_rsubd.


SELECT single RVERS
FROM T863Y
INTO ld_i_rvers.


SELECT single RYEAR
FROM T863Y
INTO ld_i_ryear.


SELECT single WATYP
FROM T863Y
INTO ld_i_watyp.

SAP Documentation for FM BAPI_READ_INDX_IMPTAB


This function module reads, just like he RGCAUS00, data on the INDX. It returns the internal table IMPTAB which is then used in the ...See here for full SAP fm documentation














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