SAP Function Modules

RH_BASE_READ_INFTY_NNNN SAP Function module







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

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


Pattern for FM RH_BASE_READ_INFTY_NNNN - RH BASE READ INFTY NNNN





CALL FUNCTION 'RH_BASE_READ_INFTY_NNNN' "
  EXPORTING
*   authority = 'DISP'          "               Function Code for Authorization Check
*   with_stru_auth = 'X'        "               With structural authorization check
    plvar =                     " plog-plvar    Plan Version
    infty =                     " plog-infty    Info. Category
*   istat = SPACE               " plog-istat    Status
*   extend = 'X'                " hrrhdb-sort
*   begda = '19000101'          " plog-begda    Start Date (EXTEND = X)
*   endda = '99991231'          " plog-endda    End Date     (EXTEND = X)
*   subty = SPACE               " plog-subty    Subtype       (EXTEND = X)
*   condition = '00000'         " hrrhdb-condition  Condition    (EXTEND = D)
*   inftb = '1'                 " pppch-inftb   Toggle Table Infotype (1=Toggle, 0=No Toggle)
*   selid = SPACE               " hrrhdb-selid
*   sort = 'X'                  " hrrhdb-sort   Sort Data Table
  TABLES
    innnn =                     "               Data Table
    range =                     "               Object Range
  EXCEPTIONS
    NOTHING_FOUND = 1           "               No data selected
    WRONG_CONDITION = 2         "
    PLOG_NOT_SUPPORTED = 3      "
    .  "  RH_BASE_READ_INFTY_NNNN

ABAP code example for Function Module RH_BASE_READ_INFTY_NNNN





The ABAP code below is a full code listing to execute function module RH_BASE_READ_INFTY_NNNN 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_innnn  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_innnn  LIKE LINE OF it_innnn ,
it_range  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_range  LIKE LINE OF it_range .

DATA(ld_authority) = 'some text here'.
DATA(ld_with_stru_auth) = 'some text here'.

SELECT single PLVAR
FROM PLOG
INTO @DATA(ld_plvar).


SELECT single INFTY
FROM PLOG
INTO @DATA(ld_infty).


SELECT single ISTAT
FROM PLOG
INTO @DATA(ld_istat).


DATA(ld_extend) = some text here

SELECT single BEGDA
FROM PLOG
INTO @DATA(ld_begda).


SELECT single ENDDA
FROM PLOG
INTO @DATA(ld_endda).


SELECT single SUBTY
FROM PLOG
INTO @DATA(ld_subty).


DATA(ld_condition) = Check type of data required

DATA(ld_inftb) = Check type of data required

DATA(ld_selid) = some text here

DATA(ld_sort) = some text here

"populate fields of struture and append to itab
append wa_innnn to it_innnn.

"populate fields of struture and append to itab
append wa_range to it_range. . CALL FUNCTION 'RH_BASE_READ_INFTY_NNNN' EXPORTING * authority = ld_authority * with_stru_auth = ld_with_stru_auth plvar = ld_plvar infty = ld_infty * istat = ld_istat * extend = ld_extend * begda = ld_begda * endda = ld_endda * subty = ld_subty * condition = ld_condition * inftb = ld_inftb * selid = ld_selid * sort = ld_sort TABLES innnn = it_innnn range = it_range EXCEPTIONS NOTHING_FOUND = 1 WRONG_CONDITION = 2 PLOG_NOT_SUPPORTED = 3 . " RH_BASE_READ_INFTY_NNNN
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 ELSEIF SY-SUBRC EQ 3. "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_authority  TYPE STRING ,
it_innnn  TYPE STANDARD TABLE OF STRING ,
wa_innnn  LIKE LINE OF it_innnn,
ld_with_stru_auth  TYPE STRING ,
it_range  TYPE STANDARD TABLE OF STRING ,
wa_range  LIKE LINE OF it_range,
ld_plvar  TYPE PLOG-PLVAR ,
ld_infty  TYPE PLOG-INFTY ,
ld_istat  TYPE PLOG-ISTAT ,
ld_extend  TYPE HRRHDB-SORT ,
ld_begda  TYPE PLOG-BEGDA ,
ld_endda  TYPE PLOG-ENDDA ,
ld_subty  TYPE PLOG-SUBTY ,
ld_condition  TYPE HRRHDB-CONDITION ,
ld_inftb  TYPE PPPCH-INFTB ,
ld_selid  TYPE HRRHDB-SELID ,
ld_sort  TYPE HRRHDB-SORT .

ld_authority = 'some text here'.

"populate fields of struture and append to itab
append wa_innnn to it_innnn.
ld_with_stru_auth = 'some text here'.

"populate fields of struture and append to itab
append wa_range to it_range.

SELECT single PLVAR
FROM PLOG
INTO ld_plvar.


SELECT single INFTY
FROM PLOG
INTO ld_infty.


SELECT single ISTAT
FROM PLOG
INTO ld_istat.


ld_extend = some text here

SELECT single BEGDA
FROM PLOG
INTO ld_begda.


SELECT single ENDDA
FROM PLOG
INTO ld_endda.


SELECT single SUBTY
FROM PLOG
INTO ld_subty.


ld_condition = Check type of data required

ld_inftb = Check type of data required

ld_selid = some text here

ld_sort = 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 RH_BASE_READ_INFTY_NNNN or its description.