SAP Function Modules

FKK_GET_POSTED_DIFF SAP Function module







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

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


Pattern for FM FKK_GET_POSTED_DIFF - FKK GET POSTED DIFF





CALL FUNCTION 'FKK_GET_POSTED_DIFF' "
  EXPORTING
    i_offic =                   " dfkkcjc-offic  Branch Office for Incoming Payments
    i_chdsk =                   " dfkkcjc-chdsk  Cash Desk
    i_cpudt =                   " dfkkcjc-cpudt  Date of Cash Desk Closing
    i_seqno =                   " dfkkcjc-seqno  Sequence Number
* TABLES
*   t_dfkkko =                  " dfkkko        Header Data for Open Item Accounting Document
*   t_dfkkcjt =                 " dfkkcjt       Transaction Data for Cash Journal
    .  "  FKK_GET_POSTED_DIFF

ABAP code example for Function Module FKK_GET_POSTED_DIFF





The ABAP code below is a full code listing to execute function module FKK_GET_POSTED_DIFF 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_t_dfkkko  TYPE STANDARD TABLE OF DFKKKO,"TABLES PARAM
wa_t_dfkkko  LIKE LINE OF it_t_dfkkko ,
it_t_dfkkcjt  TYPE STANDARD TABLE OF DFKKCJT,"TABLES PARAM
wa_t_dfkkcjt  LIKE LINE OF it_t_dfkkcjt .


SELECT single OFFIC
FROM DFKKCJC
INTO @DATA(ld_i_offic).


SELECT single CHDSK
FROM DFKKCJC
INTO @DATA(ld_i_chdsk).


SELECT single CPUDT
FROM DFKKCJC
INTO @DATA(ld_i_cpudt).


SELECT single SEQNO
FROM DFKKCJC
INTO @DATA(ld_i_seqno).


"populate fields of struture and append to itab
append wa_t_dfkkko to it_t_dfkkko.

"populate fields of struture and append to itab
append wa_t_dfkkcjt to it_t_dfkkcjt. . CALL FUNCTION 'FKK_GET_POSTED_DIFF' EXPORTING i_offic = ld_i_offic i_chdsk = ld_i_chdsk i_cpudt = ld_i_cpudt i_seqno = ld_i_seqno * TABLES * t_dfkkko = it_t_dfkkko * t_dfkkcjt = it_t_dfkkcjt . " FKK_GET_POSTED_DIFF
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_offic  TYPE DFKKCJC-OFFIC ,
it_t_dfkkko  TYPE STANDARD TABLE OF DFKKKO ,
wa_t_dfkkko  LIKE LINE OF it_t_dfkkko,
ld_i_chdsk  TYPE DFKKCJC-CHDSK ,
it_t_dfkkcjt  TYPE STANDARD TABLE OF DFKKCJT ,
wa_t_dfkkcjt  LIKE LINE OF it_t_dfkkcjt,
ld_i_cpudt  TYPE DFKKCJC-CPUDT ,
ld_i_seqno  TYPE DFKKCJC-SEQNO .


SELECT single OFFIC
FROM DFKKCJC
INTO ld_i_offic.


"populate fields of struture and append to itab
append wa_t_dfkkko to it_t_dfkkko.

SELECT single CHDSK
FROM DFKKCJC
INTO ld_i_chdsk.


"populate fields of struture and append to itab
append wa_t_dfkkcjt to it_t_dfkkcjt.

SELECT single CPUDT
FROM DFKKCJC
INTO ld_i_cpudt.


SELECT single SEQNO
FROM DFKKCJC
INTO ld_i_seqno.

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