SAP Function Modules

GET_SF_DUNN_DATA SAP Function module







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

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


Pattern for FM GET_SF_DUNN_DATA - GET SF DUNN DATA





CALL FUNCTION 'GET_SF_DUNN_DATA' "
  EXPORTING
    is_sfparam =                " sfparam       Correspondence - Generic
  IMPORTING
    es_mhnk =                   " mhnk          Dunning data (account entries)
    es_t001 =                   " t001          Company Codes
    es_knb5 =                   " knb5          Customer Master (Dunning Data)
    es_lfb5 =                   " lfb5          Vendor Master (Dunning Data)
    es_t047 =                   " t047          Company code dunning control
    es_t047c =                  " t047c         Dunning Charges
    es_t047i =                  " t047i         Standard texts for dunning notices
    es_t056z =                  " t056z         Interest Rates
    es_f150d =                  " f150d         Work fields for SAPF150D
    es_fsabe =                  " fsabe         Accounting clerk address data
    es_adrnr =                  " kna1-adrnr    Address
    es_uadrnr =                 " kna1-adrnr    Address
    es_adrs =                   " adrs          Address formating function module transfer structure
    es_uadrs =                  " adrs          Address formating function module transfer structure
    es_t047b =                  " t047b         Dunning Level Control
    eb_testprint =              " boole-boole   Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
    e_langu =                   " sy-langu      Current Language
    e_lang2 =                   " sy-langu      Current Language
    es_f150d_esr =              " f150d_esr     Work Fields SAPF150D for Swiss ISR Procedure
    es_paymi =                  " paymi         Attached Payment Medium Input
    es_paymo =                  " paymo         Attached Payment Medium Output
    es_f150d2 =                 " f150d2        FI Dunning - Extended printing structure
  TABLES
    t_mhnd =                    " mhnd          Dunning Data
  EXCEPTIONS
    NO_PARAMETERS_FOUND = 1     "
    .  "  GET_SF_DUNN_DATA

ABAP code example for Function Module GET_SF_DUNN_DATA





The ABAP code below is a full code listing to execute function module GET_SF_DUNN_DATA 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_es_mhnk  TYPE MHNK ,
ld_es_t001  TYPE T001 ,
ld_es_knb5  TYPE KNB5 ,
ld_es_lfb5  TYPE LFB5 ,
ld_es_t047  TYPE T047 ,
ld_es_t047c  TYPE T047C ,
ld_es_t047i  TYPE T047I ,
ld_es_t056z  TYPE T056Z ,
ld_es_f150d  TYPE F150D ,
ld_es_fsabe  TYPE FSABE ,
ld_es_adrnr  TYPE KNA1-ADRNR ,
ld_es_uadrnr  TYPE KNA1-ADRNR ,
ld_es_adrs  TYPE ADRS ,
ld_es_uadrs  TYPE ADRS ,
ld_es_t047b  TYPE T047B ,
ld_eb_testprint  TYPE BOOLE-BOOLE ,
ld_e_langu  TYPE SY-LANGU ,
ld_e_lang2  TYPE SY-LANGU ,
ld_es_f150d_esr  TYPE F150D_ESR ,
ld_es_paymi  TYPE PAYMI ,
ld_es_paymo  TYPE PAYMO ,
ld_es_f150d2  TYPE F150D2 ,
it_t_mhnd  TYPE STANDARD TABLE OF MHND,"TABLES PARAM
wa_t_mhnd  LIKE LINE OF it_t_mhnd .

DATA(ld_is_sfparam) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_mhnd to it_t_mhnd. . CALL FUNCTION 'GET_SF_DUNN_DATA' EXPORTING is_sfparam = ld_is_sfparam IMPORTING es_mhnk = ld_es_mhnk es_t001 = ld_es_t001 es_knb5 = ld_es_knb5 es_lfb5 = ld_es_lfb5 es_t047 = ld_es_t047 es_t047c = ld_es_t047c es_t047i = ld_es_t047i es_t056z = ld_es_t056z es_f150d = ld_es_f150d es_fsabe = ld_es_fsabe es_adrnr = ld_es_adrnr es_uadrnr = ld_es_uadrnr es_adrs = ld_es_adrs es_uadrs = ld_es_uadrs es_t047b = ld_es_t047b eb_testprint = ld_eb_testprint e_langu = ld_e_langu e_lang2 = ld_e_lang2 es_f150d_esr = ld_es_f150d_esr es_paymi = ld_es_paymi es_paymo = ld_es_paymo es_f150d2 = ld_es_f150d2 TABLES t_mhnd = it_t_mhnd EXCEPTIONS NO_PARAMETERS_FOUND = 1 . " GET_SF_DUNN_DATA
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_es_mhnk  TYPE MHNK ,
it_t_mhnd  TYPE STANDARD TABLE OF MHND ,
wa_t_mhnd  LIKE LINE OF it_t_mhnd,
ld_is_sfparam  TYPE SFPARAM ,
ld_es_t001  TYPE T001 ,
ld_es_knb5  TYPE KNB5 ,
ld_es_lfb5  TYPE LFB5 ,
ld_es_t047  TYPE T047 ,
ld_es_t047c  TYPE T047C ,
ld_es_t047i  TYPE T047I ,
ld_es_t056z  TYPE T056Z ,
ld_es_f150d  TYPE F150D ,
ld_es_fsabe  TYPE FSABE ,
ld_es_adrnr  TYPE KNA1-ADRNR ,
ld_es_uadrnr  TYPE KNA1-ADRNR ,
ld_es_adrs  TYPE ADRS ,
ld_es_uadrs  TYPE ADRS ,
ld_es_t047b  TYPE T047B ,
ld_eb_testprint  TYPE BOOLE-BOOLE ,
ld_e_langu  TYPE SY-LANGU ,
ld_e_lang2  TYPE SY-LANGU ,
ld_es_f150d_esr  TYPE F150D_ESR ,
ld_es_paymi  TYPE PAYMI ,
ld_es_paymo  TYPE PAYMO ,
ld_es_f150d2  TYPE F150D2 .


"populate fields of struture and append to itab
append wa_t_mhnd to it_t_mhnd.
ld_is_sfparam = '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 GET_SF_DUNN_DATA or its description.