SAP Function Modules

ISU_METHOD_DEFER_DOC SAP Function module - Internal: NEW: Document Hours







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

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


Pattern for FM ISU_METHOD_DEFER_DOC - ISU METHOD DEFER DOC





CALL FUNCTION 'ISU_METHOD_DEFER_DOC' "Internal: NEW: Document Hours
* EXPORTING
*   x_opbel =                   " fkkko-opbel   Document to be reversed
*   x_gpart =                   " fkkop-gpart
*   x_vkont =                   " fkkop-vkont
*   x_vertrag =                 " ever-vertrag
*   x_budat =                   " fkkko-budat
*   x_blart =                   " fkkko-blart   Reversal Document Type
*   x_faedn =                   " fkkop-faedn   Due Date for Net Payment
*   x_augrd =                   " fkkop-augrd   Clearing Reason
*   x_rlgrd = SPACE             " fkkko-rlgrd   Returns Reason
*   x_fikey =                   " fkkko-fikey   Reversal Document Reconciliation Key
*   x_herkf =                   " fkkko-herkf   Reversal document origin key
*   x_stodt =                   " fkkko-budat
*   x_update_task = SPACE       " boole-boole
*   x_resob = SPACE             " dfkksumc-resob
*   x_reskey = SPACE            " dfkksumc-resky
*   x_callr = SPACE             " fkkfields-callr  ID of User Who Called Up Transaction
*   x_test = SPACE              " boole-boole   Simulate Only
*   i_4eye = SPACE              " boole-boole   Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
  IMPORTING
    y_okcode =                  " sy-ucomm      Return Value
  EXCEPTIONS
    NOT_QUALIFIED = 1           "
    FAILED = 2                  "
    NOT_FOUND = 3               "               No items exist
    .  "  ISU_METHOD_DEFER_DOC

ABAP code example for Function Module ISU_METHOD_DEFER_DOC





The ABAP code below is a full code listing to execute function module ISU_METHOD_DEFER_DOC 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_okcode  TYPE SY-UCOMM .


DATA(ld_x_opbel) = some text here

DATA(ld_x_gpart) = some text here

DATA(ld_x_vkont) = some text here

SELECT single VERTRAG
FROM EVER
INTO @DATA(ld_x_vertrag).


DATA(ld_x_budat) = 20210129

DATA(ld_x_blart) = some text here

DATA(ld_x_faedn) = 20210129

DATA(ld_x_augrd) = some text here

DATA(ld_x_rlgrd) = some text here

DATA(ld_x_fikey) = some text here

DATA(ld_x_herkf) = some text here

DATA(ld_x_stodt) = 20210129

DATA(ld_x_update_task) = some text here

SELECT single RESOB
FROM DFKKSUMC
INTO @DATA(ld_x_resob).


SELECT single RESKY
FROM DFKKSUMC
INTO @DATA(ld_x_reskey).


DATA(ld_x_callr) = some text here

DATA(ld_x_test) = some text here

DATA(ld_i_4eye) = some text here . CALL FUNCTION 'ISU_METHOD_DEFER_DOC' * EXPORTING * x_opbel = ld_x_opbel * x_gpart = ld_x_gpart * x_vkont = ld_x_vkont * x_vertrag = ld_x_vertrag * x_budat = ld_x_budat * x_blart = ld_x_blart * x_faedn = ld_x_faedn * x_augrd = ld_x_augrd * x_rlgrd = ld_x_rlgrd * x_fikey = ld_x_fikey * x_herkf = ld_x_herkf * x_stodt = ld_x_stodt * x_update_task = ld_x_update_task * x_resob = ld_x_resob * x_reskey = ld_x_reskey * x_callr = ld_x_callr * x_test = ld_x_test * i_4eye = ld_i_4eye IMPORTING y_okcode = ld_y_okcode EXCEPTIONS NOT_QUALIFIED = 1 FAILED = 2 NOT_FOUND = 3 . " ISU_METHOD_DEFER_DOC
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "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_y_okcode  TYPE SY-UCOMM ,
ld_x_opbel  TYPE FKKKO-OPBEL ,
ld_x_gpart  TYPE FKKOP-GPART ,
ld_x_vkont  TYPE FKKOP-VKONT ,
ld_x_vertrag  TYPE EVER-VERTRAG ,
ld_x_budat  TYPE FKKKO-BUDAT ,
ld_x_blart  TYPE FKKKO-BLART ,
ld_x_faedn  TYPE FKKOP-FAEDN ,
ld_x_augrd  TYPE FKKOP-AUGRD ,
ld_x_rlgrd  TYPE FKKKO-RLGRD ,
ld_x_fikey  TYPE FKKKO-FIKEY ,
ld_x_herkf  TYPE FKKKO-HERKF ,
ld_x_stodt  TYPE FKKKO-BUDAT ,
ld_x_update_task  TYPE BOOLE-BOOLE ,
ld_x_resob  TYPE DFKKSUMC-RESOB ,
ld_x_reskey  TYPE DFKKSUMC-RESKY ,
ld_x_callr  TYPE FKKFIELDS-CALLR ,
ld_x_test  TYPE BOOLE-BOOLE ,
ld_i_4eye  TYPE BOOLE-BOOLE .


ld_x_opbel = some text here

ld_x_gpart = some text here

ld_x_vkont = some text here

SELECT single VERTRAG
FROM EVER
INTO ld_x_vertrag.


ld_x_budat = 20210129

ld_x_blart = some text here

ld_x_faedn = 20210129

ld_x_augrd = some text here

ld_x_rlgrd = some text here

ld_x_fikey = some text here

ld_x_herkf = some text here

ld_x_stodt = 20210129

ld_x_update_task = some text here

SELECT single RESOB
FROM DFKKSUMC
INTO ld_x_resob.


SELECT single RESKY
FROM DFKKSUMC
INTO ld_x_reskey.


ld_x_callr = some text here

ld_x_test = some text here

ld_i_4eye = 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 ISU_METHOD_DEFER_DOC or its description.