SAP Function Modules

FKK_DB_CD_CHECK_SELECT_PBATCH SAP Function module







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

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


Pattern for FM FKK_DB_CD_CHECK_SELECT_PBATCH - FKK DB CD CHECK SELECT PBATCH





CALL FUNCTION 'FKK_DB_CD_CHECK_SELECT_PBATCH' "
  EXPORTING
    x_applk =                   " fkkop-applk   Application
    x_bukrs =                   " fkkop-bukrs   Company Code
    x_waers =                   " dfkkzk-waers  Currency
    x_hkont =                   " rfkh0-hkont
    x_bvrko =                   " dfkkzk-bvrko  Account
    x_xebok =                   " dfkkzk-xebok  Single Posting of Payment Already Completed
    x_xposa =                   " dfkkzk-xposa
*   x_keyz1 =                   " dfkkzk-keyz1
    x_betrw =                   " fkkopk-betrw  Payment Amount
*   x_paytp =                   " rfkh0-paytp   Category of payment/payment lot
  IMPORTING
    y_keyz1 =                   " dfkkzk-keyz1
    y_chout =                   " rfkh0-chout
    y_chkin =                   " rfkh0-chkin
    y_cshin =                   " rfkh0-cshin
    y_csout =                   " rfkh0-csout
    y_crdin =                   " rfkh0-crdin
    y_bvrko =                   " dfkkzk-bvrko
    y_vkoch =                   " dfkkzk-vkoch
    y_paytp =                   " dfkkzk-paytp  Category of payment/payment lot
    .  "  FKK_DB_CD_CHECK_SELECT_PBATCH

ABAP code example for Function Module FKK_DB_CD_CHECK_SELECT_PBATCH





The ABAP code below is a full code listing to execute function module FKK_DB_CD_CHECK_SELECT_PBATCH 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_y_keyz1  TYPE DFKKZK-KEYZ1 ,
ld_y_chout  TYPE RFKH0-CHOUT ,
ld_y_chkin  TYPE RFKH0-CHKIN ,
ld_y_cshin  TYPE RFKH0-CSHIN ,
ld_y_csout  TYPE RFKH0-CSOUT ,
ld_y_crdin  TYPE RFKH0-CRDIN ,
ld_y_bvrko  TYPE DFKKZK-BVRKO ,
ld_y_vkoch  TYPE DFKKZK-VKOCH ,
ld_y_paytp  TYPE DFKKZK-PAYTP .


DATA(ld_x_applk) = some text here

DATA(ld_x_bukrs) = some text here

SELECT single WAERS
FROM DFKKZK
INTO @DATA(ld_x_waers).


DATA(ld_x_hkont) = some text here

SELECT single BVRKO
FROM DFKKZK
INTO @DATA(ld_x_bvrko).


SELECT single XEBOK
FROM DFKKZK
INTO @DATA(ld_x_xebok).


SELECT single XPOSA
FROM DFKKZK
INTO @DATA(ld_x_xposa).


SELECT single KEYZ1
FROM DFKKZK
INTO @DATA(ld_x_keyz1).


DATA(ld_x_betrw) = 20.50

DATA(ld_x_paytp) = some text here . CALL FUNCTION 'FKK_DB_CD_CHECK_SELECT_PBATCH' EXPORTING x_applk = ld_x_applk x_bukrs = ld_x_bukrs x_waers = ld_x_waers x_hkont = ld_x_hkont x_bvrko = ld_x_bvrko x_xebok = ld_x_xebok x_xposa = ld_x_xposa * x_keyz1 = ld_x_keyz1 x_betrw = ld_x_betrw * x_paytp = ld_x_paytp IMPORTING y_keyz1 = ld_y_keyz1 y_chout = ld_y_chout y_chkin = ld_y_chkin y_cshin = ld_y_cshin y_csout = ld_y_csout y_crdin = ld_y_crdin y_bvrko = ld_y_bvrko y_vkoch = ld_y_vkoch y_paytp = ld_y_paytp . " FKK_DB_CD_CHECK_SELECT_PBATCH
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_y_keyz1  TYPE DFKKZK-KEYZ1 ,
ld_x_applk  TYPE FKKOP-APPLK ,
ld_y_chout  TYPE RFKH0-CHOUT ,
ld_x_bukrs  TYPE FKKOP-BUKRS ,
ld_y_chkin  TYPE RFKH0-CHKIN ,
ld_x_waers  TYPE DFKKZK-WAERS ,
ld_y_cshin  TYPE RFKH0-CSHIN ,
ld_x_hkont  TYPE RFKH0-HKONT ,
ld_y_csout  TYPE RFKH0-CSOUT ,
ld_x_bvrko  TYPE DFKKZK-BVRKO ,
ld_y_crdin  TYPE RFKH0-CRDIN ,
ld_x_xebok  TYPE DFKKZK-XEBOK ,
ld_y_bvrko  TYPE DFKKZK-BVRKO ,
ld_x_xposa  TYPE DFKKZK-XPOSA ,
ld_y_vkoch  TYPE DFKKZK-VKOCH ,
ld_x_keyz1  TYPE DFKKZK-KEYZ1 ,
ld_y_paytp  TYPE DFKKZK-PAYTP ,
ld_x_betrw  TYPE FKKOPK-BETRW ,
ld_x_paytp  TYPE RFKH0-PAYTP .


ld_x_applk = some text here

ld_x_bukrs = some text here

SELECT single WAERS
FROM DFKKZK
INTO ld_x_waers.


ld_x_hkont = some text here

SELECT single BVRKO
FROM DFKKZK
INTO ld_x_bvrko.


SELECT single XEBOK
FROM DFKKZK
INTO ld_x_xebok.


SELECT single XPOSA
FROM DFKKZK
INTO ld_x_xposa.


SELECT single KEYZ1
FROM DFKKZK
INTO ld_x_keyz1.


ld_x_betrw = 20.50

ld_x_paytp = 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 FKK_DB_CD_CHECK_SELECT_PBATCH or its description.