SAP Function Modules

RTOHC_GET_OVERHEAD SAP Function module - List overhead doc(s) for a reference doc







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

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


Pattern for FM RTOHC_GET_OVERHEAD - RTOHC GET OVERHEAD





CALL FUNCTION 'RTOHC_GET_OVERHEAD' "List overhead doc(s) for a reference doc
* EXPORTING
*   i_belnr =                   " co_belnr      Document Number
*   i_kokrs =                   " kokrs         Controlling Area
*   i_awtyp =                   " awtyp         Reference Transaction
*   i_refbt =                   " co_refbt      Document type of reference document
*   i_refbn =                   " co_refbn      Reference Document Number
*   i_aworg =                   " aworg         Reference Organizational Units
*   i_awsys =                   " awsys         Logical System
*   i_exclude_reversed =        " boole_d       Exclude reversed overhead docs
*   i_bypass_buffer =           " boole_d       Bypass buffer
  IMPORTING
    et_cobk =                   " ttcobk        Table of overhead documents
    et_coep =                   " tt_coep       Overhead items
  EXCEPTIONS
    PARAMETER_ERROR = 1         "               Not valid combination of parameters
    .  "  RTOHC_GET_OVERHEAD

ABAP code example for Function Module RTOHC_GET_OVERHEAD





The ABAP code below is a full code listing to execute function module RTOHC_GET_OVERHEAD 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_et_cobk  TYPE TTCOBK ,
ld_et_coep  TYPE TT_COEP .

DATA(ld_i_belnr) = 'Check type of data required'.
DATA(ld_i_kokrs) = 'Check type of data required'.
DATA(ld_i_awtyp) = 'Check type of data required'.
DATA(ld_i_refbt) = 'Check type of data required'.
DATA(ld_i_refbn) = 'Check type of data required'.
DATA(ld_i_aworg) = 'Check type of data required'.
DATA(ld_i_awsys) = 'Check type of data required'.
DATA(ld_i_exclude_reversed) = 'some text here'.
DATA(ld_i_bypass_buffer) = 'some text here'. . CALL FUNCTION 'RTOHC_GET_OVERHEAD' * EXPORTING * i_belnr = ld_i_belnr * i_kokrs = ld_i_kokrs * i_awtyp = ld_i_awtyp * i_refbt = ld_i_refbt * i_refbn = ld_i_refbn * i_aworg = ld_i_aworg * i_awsys = ld_i_awsys * i_exclude_reversed = ld_i_exclude_reversed * i_bypass_buffer = ld_i_bypass_buffer IMPORTING et_cobk = ld_et_cobk et_coep = ld_et_coep EXCEPTIONS PARAMETER_ERROR = 1 . " RTOHC_GET_OVERHEAD
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_et_cobk  TYPE TTCOBK ,
ld_i_belnr  TYPE CO_BELNR ,
ld_et_coep  TYPE TT_COEP ,
ld_i_kokrs  TYPE KOKRS ,
ld_i_awtyp  TYPE AWTYP ,
ld_i_refbt  TYPE CO_REFBT ,
ld_i_refbn  TYPE CO_REFBN ,
ld_i_aworg  TYPE AWORG ,
ld_i_awsys  TYPE AWSYS ,
ld_i_exclude_reversed  TYPE BOOLE_D ,
ld_i_bypass_buffer  TYPE BOOLE_D .

ld_i_belnr = 'some text here'.
ld_i_kokrs = 'some text here'.
ld_i_awtyp = 'some text here'.
ld_i_refbt = 'some text here'.
ld_i_refbn = 'some text here'.
ld_i_aworg = 'some text here'.
ld_i_awsys = 'Check type of data required'.
ld_i_exclude_reversed = 'some text here'.
ld_i_bypass_buffer = 'some text here'.

SAP Documentation for FM RTOHC_GET_OVERHEAD


Returns a list of realtime overhead documents associated with a given reference document. ...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 RTOHC_GET_OVERHEAD or its description.