SAP Function Modules

COINT_TP_DATA_READ SAP Function module







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

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


Pattern for FM COINT_TP_DATA_READ - COINT TP DATA READ





CALL FUNCTION 'COINT_TP_DATA_READ' "
  EXPORTING
    i_objnr =                   " j_objnr       General Object Number
  TABLES
    it_periods =                " periods       Period structure
    et_tpost_hd =               " coint_tpost_hd  Controlling Integration: Reposting: Header Data
    et_tpost_it =               " coint_tpost_it  Controlling Integration: Reposting: Line Items
    et_tpost_costs =            " coint_tpost_cost  Transfer Structure: Costs
    et_tpost_revs =             " coint_tpost_rev
    et_breqref =                " coint_tp_breqref  Billing Request and Reference
    .  "  COINT_TP_DATA_READ

ABAP code example for Function Module COINT_TP_DATA_READ





The ABAP code below is a full code listing to execute function module COINT_TP_DATA_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_it_periods  TYPE STANDARD TABLE OF PERIODS,"TABLES PARAM
wa_it_periods  LIKE LINE OF it_it_periods ,
it_et_tpost_hd  TYPE STANDARD TABLE OF COINT_TPOST_HD,"TABLES PARAM
wa_et_tpost_hd  LIKE LINE OF it_et_tpost_hd ,
it_et_tpost_it  TYPE STANDARD TABLE OF COINT_TPOST_IT,"TABLES PARAM
wa_et_tpost_it  LIKE LINE OF it_et_tpost_it ,
it_et_tpost_costs  TYPE STANDARD TABLE OF COINT_TPOST_COST,"TABLES PARAM
wa_et_tpost_costs  LIKE LINE OF it_et_tpost_costs ,
it_et_tpost_revs  TYPE STANDARD TABLE OF COINT_TPOST_REV,"TABLES PARAM
wa_et_tpost_revs  LIKE LINE OF it_et_tpost_revs ,
it_et_breqref  TYPE STANDARD TABLE OF COINT_TP_BREQREF,"TABLES PARAM
wa_et_breqref  LIKE LINE OF it_et_breqref .

DATA(ld_i_objnr) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_periods to it_it_periods.

"populate fields of struture and append to itab
append wa_et_tpost_hd to it_et_tpost_hd.

"populate fields of struture and append to itab
append wa_et_tpost_it to it_et_tpost_it.

"populate fields of struture and append to itab
append wa_et_tpost_costs to it_et_tpost_costs.

"populate fields of struture and append to itab
append wa_et_tpost_revs to it_et_tpost_revs.

"populate fields of struture and append to itab
append wa_et_breqref to it_et_breqref. . CALL FUNCTION 'COINT_TP_DATA_READ' EXPORTING i_objnr = ld_i_objnr TABLES it_periods = it_it_periods et_tpost_hd = it_et_tpost_hd et_tpost_it = it_et_tpost_it et_tpost_costs = it_et_tpost_costs et_tpost_revs = it_et_tpost_revs et_breqref = it_et_breqref . " COINT_TP_DATA_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_i_objnr  TYPE J_OBJNR ,
it_it_periods  TYPE STANDARD TABLE OF PERIODS ,
wa_it_periods  LIKE LINE OF it_it_periods,
it_et_tpost_hd  TYPE STANDARD TABLE OF COINT_TPOST_HD ,
wa_et_tpost_hd  LIKE LINE OF it_et_tpost_hd,
it_et_tpost_it  TYPE STANDARD TABLE OF COINT_TPOST_IT ,
wa_et_tpost_it  LIKE LINE OF it_et_tpost_it,
it_et_tpost_costs  TYPE STANDARD TABLE OF COINT_TPOST_COST ,
wa_et_tpost_costs  LIKE LINE OF it_et_tpost_costs,
it_et_tpost_revs  TYPE STANDARD TABLE OF COINT_TPOST_REV ,
wa_et_tpost_revs  LIKE LINE OF it_et_tpost_revs,
it_et_breqref  TYPE STANDARD TABLE OF COINT_TP_BREQREF ,
wa_et_breqref  LIKE LINE OF it_et_breqref.

ld_i_objnr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_periods to it_it_periods.

"populate fields of struture and append to itab
append wa_et_tpost_hd to it_et_tpost_hd.

"populate fields of struture and append to itab
append wa_et_tpost_it to it_et_tpost_it.

"populate fields of struture and append to itab
append wa_et_tpost_costs to it_et_tpost_costs.

"populate fields of struture and append to itab
append wa_et_tpost_revs to it_et_tpost_revs.

"populate fields of struture and append to itab
append wa_et_breqref to it_et_breqref.

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