SAP Function Modules

FDU_ADDITIONAL_INFO_GET SAP Function module







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

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


Pattern for FM FDU_ADDITIONAL_INFO_GET - FDU ADDITIONAL INFO GET





CALL FUNCTION 'FDU_ADDITIONAL_INFO_GET' "
* EXPORTING
*   repid =                     " kcdsm-repid
*   type_fdu =                  " kcd_tyvpes-suetyp
*   mandt =                     " sy-mandt
  IMPORTING
    estrc =                     " kcdsm-estrc
    anwdg =                     " kcdsm-anwdg
    xsuetyp =                   " kcd_tyvpest-xsuetyp
* TABLES
*   type_info =                 " kcd_tyvpes
*   type_text_info =            " kcd_tyvpest
*   repid_info =                " kcdsm
  EXCEPTIONS
    REPID_NOT_AVAILLABLE = 1    "
    TYPE_NOT_AVAILLABLE = 2     "
    ANWDG_NOT_AVAILLABLE = 3    "
    WRONG_FUNCTION_CALL = 4     "
    .  "  FDU_ADDITIONAL_INFO_GET

ABAP code example for Function Module FDU_ADDITIONAL_INFO_GET





The ABAP code below is a full code listing to execute function module FDU_ADDITIONAL_INFO_GET 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_estrc  TYPE KCDSM-ESTRC ,
ld_anwdg  TYPE KCDSM-ANWDG ,
ld_xsuetyp  TYPE KCD_TYVPEST-XSUETYP ,
it_type_info  TYPE STANDARD TABLE OF KCD_TYVPES,"TABLES PARAM
wa_type_info  LIKE LINE OF it_type_info ,
it_type_text_info  TYPE STANDARD TABLE OF KCD_TYVPEST,"TABLES PARAM
wa_type_text_info  LIKE LINE OF it_type_text_info ,
it_repid_info  TYPE STANDARD TABLE OF KCDSM,"TABLES PARAM
wa_repid_info  LIKE LINE OF it_repid_info .


SELECT single REPID
FROM KCDSM
INTO @DATA(ld_repid).


SELECT single SUETYP
FROM KCD_TYVPES
INTO @DATA(ld_type_fdu).

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

"populate fields of struture and append to itab
append wa_type_info to it_type_info.

"populate fields of struture and append to itab
append wa_type_text_info to it_type_text_info.

"populate fields of struture and append to itab
append wa_repid_info to it_repid_info. . CALL FUNCTION 'FDU_ADDITIONAL_INFO_GET' * EXPORTING * repid = ld_repid * type_fdu = ld_type_fdu * mandt = ld_mandt IMPORTING estrc = ld_estrc anwdg = ld_anwdg xsuetyp = ld_xsuetyp * TABLES * type_info = it_type_info * type_text_info = it_type_text_info * repid_info = it_repid_info EXCEPTIONS REPID_NOT_AVAILLABLE = 1 TYPE_NOT_AVAILLABLE = 2 ANWDG_NOT_AVAILLABLE = 3 WRONG_FUNCTION_CALL = 4 . " FDU_ADDITIONAL_INFO_GET
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 ELSEIF SY-SUBRC EQ 4. "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_estrc  TYPE KCDSM-ESTRC ,
ld_repid  TYPE KCDSM-REPID ,
it_type_info  TYPE STANDARD TABLE OF KCD_TYVPES ,
wa_type_info  LIKE LINE OF it_type_info,
ld_anwdg  TYPE KCDSM-ANWDG ,
ld_type_fdu  TYPE KCD_TYVPES-SUETYP ,
it_type_text_info  TYPE STANDARD TABLE OF KCD_TYVPEST ,
wa_type_text_info  LIKE LINE OF it_type_text_info,
ld_xsuetyp  TYPE KCD_TYVPEST-XSUETYP ,
ld_mandt  TYPE SY-MANDT ,
it_repid_info  TYPE STANDARD TABLE OF KCDSM ,
wa_repid_info  LIKE LINE OF it_repid_info.


SELECT single REPID
FROM KCDSM
INTO ld_repid.


"populate fields of struture and append to itab
append wa_type_info to it_type_info.

SELECT single SUETYP
FROM KCD_TYVPES
INTO ld_type_fdu.


"populate fields of struture and append to itab
append wa_type_text_info to it_type_text_info.
ld_mandt = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_repid_info to it_repid_info.

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