SAP Function Modules

FKK_PAYMENT_BATCH_FIND_PAYMENT SAP Function module







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

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


Pattern for FM FKK_PAYMENT_BATCH_FIND_PAYMENT - FKK PAYMENT BATCH FIND PAYMENT





CALL FUNCTION 'FKK_PAYMENT_BATCH_FIND_PAYMENT' "
  EXPORTING
    i_opbel =                   " dfkkzp-opbel
*   i_clarification_only = SPACE  " boole-boole
*   i_first_doc_only = SPACE    " boole-boole
*   i_search_in_db = 'X'        " xfeld
*   i_search_in_archive = SPACE  " xfeld
  IMPORTING
    e_keyz1 =                   " dfkkzp-keyz1
    e_posza =                   " dfkkzp-posza  Payment number
    e_tkpos =                   " dfkkzpt-tkpos  Item Number For Partial Clarification
    e_opbel =                   " dfkkzp-opbel  Posting document
    e_klaeb =                   " dfkkzp-klaeb  Clarificatn Document
    e_klaeh =                   " dfkkzp-klaeh  Clarification Account
    e_klaec =                   " dfkkzp-bukrs
    e_bukrs =                   " dfkkzp-bukrs
    e_gsber =                   " dfkkzp-gsber
    e_prctr =                   " dfkkzp-prctr
    e_valut =                   " dfkkzp-valut
    e_nrzaa =                   " dfkkzp-nrzaa  Repayment Request
    e_ruebl =                   " dfkkzp-ruebl  Reset Document
    e_betrw =                   " dfkkzp-betrz
    e_betrh =                   " dfkkzp-betrh
    e_banks =                   " dfkkzp-banks
    e_xclar =                   " dfkkzp-xclar
    e_xarch =                   " xfeld
    e_dfkkzk =                  " dfkkzk        Header of Payment Lot
    e_dfkkzp =                  " dfkkzp        Item in payment lot
    e_dfkkzpt =                 " dfkkzpt       Ptl clarif. item
* TABLES
*   t_fkkzpt =                  " dfkkzpt
  EXCEPTIONS
    NOT_FOUND = 1               "               No records found
    .  "  FKK_PAYMENT_BATCH_FIND_PAYMENT

ABAP code example for Function Module FKK_PAYMENT_BATCH_FIND_PAYMENT





The ABAP code below is a full code listing to execute function module FKK_PAYMENT_BATCH_FIND_PAYMENT 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_keyz1  TYPE DFKKZP-KEYZ1 ,
ld_e_posza  TYPE DFKKZP-POSZA ,
ld_e_tkpos  TYPE DFKKZPT-TKPOS ,
ld_e_opbel  TYPE DFKKZP-OPBEL ,
ld_e_klaeb  TYPE DFKKZP-KLAEB ,
ld_e_klaeh  TYPE DFKKZP-KLAEH ,
ld_e_klaec  TYPE DFKKZP-BUKRS ,
ld_e_bukrs  TYPE DFKKZP-BUKRS ,
ld_e_gsber  TYPE DFKKZP-GSBER ,
ld_e_prctr  TYPE DFKKZP-PRCTR ,
ld_e_valut  TYPE DFKKZP-VALUT ,
ld_e_nrzaa  TYPE DFKKZP-NRZAA ,
ld_e_ruebl  TYPE DFKKZP-RUEBL ,
ld_e_betrw  TYPE DFKKZP-BETRZ ,
ld_e_betrh  TYPE DFKKZP-BETRH ,
ld_e_banks  TYPE DFKKZP-BANKS ,
ld_e_xclar  TYPE DFKKZP-XCLAR ,
ld_e_xarch  TYPE XFELD ,
ld_e_dfkkzk  TYPE DFKKZK ,
ld_e_dfkkzp  TYPE DFKKZP ,
ld_e_dfkkzpt  TYPE DFKKZPT ,
it_t_fkkzpt  TYPE STANDARD TABLE OF DFKKZPT,"TABLES PARAM
wa_t_fkkzpt  LIKE LINE OF it_t_fkkzpt .


SELECT single OPBEL
FROM DFKKZP
INTO @DATA(ld_i_opbel).


DATA(ld_i_clarification_only) = some text here

DATA(ld_i_first_doc_only) = some text here
DATA(ld_i_search_in_db) = 'Check type of data required'.
DATA(ld_i_search_in_archive) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkzpt to it_t_fkkzpt. . CALL FUNCTION 'FKK_PAYMENT_BATCH_FIND_PAYMENT' EXPORTING i_opbel = ld_i_opbel * i_clarification_only = ld_i_clarification_only * i_first_doc_only = ld_i_first_doc_only * i_search_in_db = ld_i_search_in_db * i_search_in_archive = ld_i_search_in_archive IMPORTING e_keyz1 = ld_e_keyz1 e_posza = ld_e_posza e_tkpos = ld_e_tkpos e_opbel = ld_e_opbel e_klaeb = ld_e_klaeb e_klaeh = ld_e_klaeh e_klaec = ld_e_klaec e_bukrs = ld_e_bukrs e_gsber = ld_e_gsber e_prctr = ld_e_prctr e_valut = ld_e_valut e_nrzaa = ld_e_nrzaa e_ruebl = ld_e_ruebl e_betrw = ld_e_betrw e_betrh = ld_e_betrh e_banks = ld_e_banks e_xclar = ld_e_xclar e_xarch = ld_e_xarch e_dfkkzk = ld_e_dfkkzk e_dfkkzp = ld_e_dfkkzp e_dfkkzpt = ld_e_dfkkzpt * TABLES * t_fkkzpt = it_t_fkkzpt EXCEPTIONS NOT_FOUND = 1 . " FKK_PAYMENT_BATCH_FIND_PAYMENT
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_keyz1  TYPE DFKKZP-KEYZ1 ,
it_t_fkkzpt  TYPE STANDARD TABLE OF DFKKZPT ,
wa_t_fkkzpt  LIKE LINE OF it_t_fkkzpt,
ld_i_opbel  TYPE DFKKZP-OPBEL ,
ld_e_posza  TYPE DFKKZP-POSZA ,
ld_i_clarification_only  TYPE BOOLE-BOOLE ,
ld_e_tkpos  TYPE DFKKZPT-TKPOS ,
ld_i_first_doc_only  TYPE BOOLE-BOOLE ,
ld_e_opbel  TYPE DFKKZP-OPBEL ,
ld_i_search_in_db  TYPE XFELD ,
ld_e_klaeb  TYPE DFKKZP-KLAEB ,
ld_i_search_in_archive  TYPE XFELD ,
ld_e_klaeh  TYPE DFKKZP-KLAEH ,
ld_e_klaec  TYPE DFKKZP-BUKRS ,
ld_e_bukrs  TYPE DFKKZP-BUKRS ,
ld_e_gsber  TYPE DFKKZP-GSBER ,
ld_e_prctr  TYPE DFKKZP-PRCTR ,
ld_e_valut  TYPE DFKKZP-VALUT ,
ld_e_nrzaa  TYPE DFKKZP-NRZAA ,
ld_e_ruebl  TYPE DFKKZP-RUEBL ,
ld_e_betrw  TYPE DFKKZP-BETRZ ,
ld_e_betrh  TYPE DFKKZP-BETRH ,
ld_e_banks  TYPE DFKKZP-BANKS ,
ld_e_xclar  TYPE DFKKZP-XCLAR ,
ld_e_xarch  TYPE XFELD ,
ld_e_dfkkzk  TYPE DFKKZK ,
ld_e_dfkkzp  TYPE DFKKZP ,
ld_e_dfkkzpt  TYPE DFKKZPT .


"populate fields of struture and append to itab
append wa_t_fkkzpt to it_t_fkkzpt.

SELECT single OPBEL
FROM DFKKZP
INTO ld_i_opbel.


ld_i_clarification_only = some text here

ld_i_first_doc_only = some text here
ld_i_search_in_db = 'Check type of data required'.
ld_i_search_in_archive = 'Check type of data required'.

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