SAP Function Modules

ISU_DB_GET_DUE_AND_DISCREL_POS SAP Function module







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

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


Pattern for FM ISU_DB_GET_DUE_AND_DISCREL_POS - ISU DB GET DUE AND DISCREL POS





CALL FUNCTION 'ISU_DB_GET_DUE_AND_DISCREL_POS' "
  EXPORTING
    x_vkont =                   " fkkop-vkont   Contract Account
*   x_discno =                  " fkkmakt-discno  Disconnection document number
*   x_mansp =                   " fkkmaze-mansp  Dunning block reason
*   x_applk =                   " fkkop-applk   Application
*   x_dispt = SPACE             " boole-boole
*   x_dispm = SPACE             " boole-boole
*   x_fields =                  " fkk_fields    Field Names
  IMPORTING
    y_sumoi =                   " fkkop-betrh   Sum of Open Items
    y_sumdi =                   " fkkop-betrh
    y_hwaer =                   " t001-waers    Local Currency
    y_sumoit =                  " fkkop-betrw
    y_sumdit =                  " fkkop-betrw
    y_twaer =                   " fkkop-waers   Transaction Currency
* TABLES
*   t_tema01 =                  " tema01
*   t_mahnop =                  " tema01
  EXCEPTIONS
    NOT_FOUND = 1               "
    CONCURRENT_CLEARING = 2     "
    .  "  ISU_DB_GET_DUE_AND_DISCREL_POS

ABAP code example for Function Module ISU_DB_GET_DUE_AND_DISCREL_POS





The ABAP code below is a full code listing to execute function module ISU_DB_GET_DUE_AND_DISCREL_POS 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_sumoi  TYPE FKKOP-BETRH ,
ld_y_sumdi  TYPE FKKOP-BETRH ,
ld_y_hwaer  TYPE T001-WAERS ,
ld_y_sumoit  TYPE FKKOP-BETRW ,
ld_y_sumdit  TYPE FKKOP-BETRW ,
ld_y_twaer  TYPE FKKOP-WAERS ,
it_t_tema01  TYPE STANDARD TABLE OF TEMA01,"TABLES PARAM
wa_t_tema01  LIKE LINE OF it_t_tema01 ,
it_t_mahnop  TYPE STANDARD TABLE OF TEMA01,"TABLES PARAM
wa_t_mahnop  LIKE LINE OF it_t_mahnop .


DATA(ld_x_vkont) = some text here

SELECT single DISCNO
FROM FKKMAKT
INTO @DATA(ld_x_discno).


SELECT single MANSP
FROM FKKMAZE
INTO @DATA(ld_x_mansp).


DATA(ld_x_applk) = some text here

DATA(ld_x_dispt) = some text here

DATA(ld_x_dispm) = some text here
DATA(ld_x_fields) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tema01 to it_t_tema01.

"populate fields of struture and append to itab
append wa_t_mahnop to it_t_mahnop. . CALL FUNCTION 'ISU_DB_GET_DUE_AND_DISCREL_POS' EXPORTING x_vkont = ld_x_vkont * x_discno = ld_x_discno * x_mansp = ld_x_mansp * x_applk = ld_x_applk * x_dispt = ld_x_dispt * x_dispm = ld_x_dispm * x_fields = ld_x_fields IMPORTING y_sumoi = ld_y_sumoi y_sumdi = ld_y_sumdi y_hwaer = ld_y_hwaer y_sumoit = ld_y_sumoit y_sumdit = ld_y_sumdit y_twaer = ld_y_twaer * TABLES * t_tema01 = it_t_tema01 * t_mahnop = it_t_mahnop EXCEPTIONS NOT_FOUND = 1 CONCURRENT_CLEARING = 2 . " ISU_DB_GET_DUE_AND_DISCREL_POS
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 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_sumoi  TYPE FKKOP-BETRH ,
ld_x_vkont  TYPE FKKOP-VKONT ,
it_t_tema01  TYPE STANDARD TABLE OF TEMA01 ,
wa_t_tema01  LIKE LINE OF it_t_tema01,
ld_y_sumdi  TYPE FKKOP-BETRH ,
ld_x_discno  TYPE FKKMAKT-DISCNO ,
it_t_mahnop  TYPE STANDARD TABLE OF TEMA01 ,
wa_t_mahnop  LIKE LINE OF it_t_mahnop,
ld_y_hwaer  TYPE T001-WAERS ,
ld_x_mansp  TYPE FKKMAZE-MANSP ,
ld_y_sumoit  TYPE FKKOP-BETRW ,
ld_x_applk  TYPE FKKOP-APPLK ,
ld_y_sumdit  TYPE FKKOP-BETRW ,
ld_x_dispt  TYPE BOOLE-BOOLE ,
ld_y_twaer  TYPE FKKOP-WAERS ,
ld_x_dispm  TYPE BOOLE-BOOLE ,
ld_x_fields  TYPE FKK_FIELDS .


ld_x_vkont = some text here

"populate fields of struture and append to itab
append wa_t_tema01 to it_t_tema01.

SELECT single DISCNO
FROM FKKMAKT
INTO ld_x_discno.


"populate fields of struture and append to itab
append wa_t_mahnop to it_t_mahnop.

SELECT single MANSP
FROM FKKMAZE
INTO ld_x_mansp.


ld_x_applk = some text here

ld_x_dispt = some text here

ld_x_dispm = some text here
ld_x_fields = '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 ISU_DB_GET_DUE_AND_DISCREL_POS or its description.