SAP Function Modules

FDKUSER_GET_VALUES SAP Function module







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

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


Pattern for FM FDKUSER_GET_VALUES - FDKUSER GET VALUES





CALL FUNCTION 'FDKUSER_GET_VALUES' "
  EXPORTING
    id_user =                   " xubname
    id_action =                 " fdkaction
*   id_no_dialog = SPACE        " xfeld
*   id_a_seg = SPACE            " xfeld
*   id_dateselect_key = 'SAP'   " fdkkeyname
*   id_callback_repid =         " sy-repid
*   id_set_title_form =         " edperform
*   id_headerline =             " fdkheaderline
* TABLES
*   it_dialog_fields =          " fdkfields
*   it_custom_buttons =         " fdkbuttons
*   it_restrictions =           " cosel
*   et_accounts =               " fdkaccounts
*   et_selections =             " cosel
  EXCEPTIONS
    ACTION_NOT_ALLOWED = 1      "
    INCORRECT_INPUT = 2         "
    EXIT_REQUEST = 3            "
    .  "  FDKUSER_GET_VALUES

ABAP code example for Function Module FDKUSER_GET_VALUES





The ABAP code below is a full code listing to execute function module FDKUSER_GET_VALUES 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:
it_it_dialog_fields  TYPE STANDARD TABLE OF FDKFIELDS,"TABLES PARAM
wa_it_dialog_fields  LIKE LINE OF it_it_dialog_fields ,
it_it_custom_buttons  TYPE STANDARD TABLE OF FDKBUTTONS,"TABLES PARAM
wa_it_custom_buttons  LIKE LINE OF it_it_custom_buttons ,
it_it_restrictions  TYPE STANDARD TABLE OF COSEL,"TABLES PARAM
wa_it_restrictions  LIKE LINE OF it_it_restrictions ,
it_et_accounts  TYPE STANDARD TABLE OF FDKACCOUNTS,"TABLES PARAM
wa_et_accounts  LIKE LINE OF it_et_accounts ,
it_et_selections  TYPE STANDARD TABLE OF COSEL,"TABLES PARAM
wa_et_selections  LIKE LINE OF it_et_selections .

DATA(ld_id_user) = 'Check type of data required'.
DATA(ld_id_action) = 'Check type of data required'.
DATA(ld_id_no_dialog) = 'Check type of data required'.
DATA(ld_id_a_seg) = 'Check type of data required'.
DATA(ld_id_dateselect_key) = 'Check type of data required'.
DATA(ld_id_callback_repid) = '123 '.
DATA(ld_id_set_title_form) = 'some text here'.
DATA(ld_id_headerline) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_dialog_fields to it_it_dialog_fields.

"populate fields of struture and append to itab
append wa_it_custom_buttons to it_it_custom_buttons.

"populate fields of struture and append to itab
append wa_it_restrictions to it_it_restrictions.

"populate fields of struture and append to itab
append wa_et_accounts to it_et_accounts.

"populate fields of struture and append to itab
append wa_et_selections to it_et_selections. . CALL FUNCTION 'FDKUSER_GET_VALUES' EXPORTING id_user = ld_id_user id_action = ld_id_action * id_no_dialog = ld_id_no_dialog * id_a_seg = ld_id_a_seg * id_dateselect_key = ld_id_dateselect_key * id_callback_repid = ld_id_callback_repid * id_set_title_form = ld_id_set_title_form * id_headerline = ld_id_headerline * TABLES * it_dialog_fields = it_it_dialog_fields * it_custom_buttons = it_it_custom_buttons * it_restrictions = it_it_restrictions * et_accounts = it_et_accounts * et_selections = it_et_selections EXCEPTIONS ACTION_NOT_ALLOWED = 1 INCORRECT_INPUT = 2 EXIT_REQUEST = 3 . " FDKUSER_GET_VALUES
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_id_user  TYPE XUBNAME ,
it_it_dialog_fields  TYPE STANDARD TABLE OF FDKFIELDS ,
wa_it_dialog_fields  LIKE LINE OF it_it_dialog_fields,
ld_id_action  TYPE FDKACTION ,
it_it_custom_buttons  TYPE STANDARD TABLE OF FDKBUTTONS ,
wa_it_custom_buttons  LIKE LINE OF it_it_custom_buttons,
ld_id_no_dialog  TYPE XFELD ,
it_it_restrictions  TYPE STANDARD TABLE OF COSEL ,
wa_it_restrictions  LIKE LINE OF it_it_restrictions,
ld_id_a_seg  TYPE XFELD ,
it_et_accounts  TYPE STANDARD TABLE OF FDKACCOUNTS ,
wa_et_accounts  LIKE LINE OF it_et_accounts,
ld_id_dateselect_key  TYPE FDKKEYNAME ,
it_et_selections  TYPE STANDARD TABLE OF COSEL ,
wa_et_selections  LIKE LINE OF it_et_selections,
ld_id_callback_repid  TYPE SY-REPID ,
ld_id_set_title_form  TYPE EDPERFORM ,
ld_id_headerline  TYPE FDKHEADERLINE .

ld_id_user = 'some text here'.

"populate fields of struture and append to itab
append wa_it_dialog_fields to it_it_dialog_fields.
ld_id_action = 'some text here'.

"populate fields of struture and append to itab
append wa_it_custom_buttons to it_it_custom_buttons.
ld_id_no_dialog = 'some text here'.

"populate fields of struture and append to itab
append wa_it_restrictions to it_it_restrictions.
ld_id_a_seg = 'some text here'.

"populate fields of struture and append to itab
append wa_et_accounts to it_et_accounts.
ld_id_dateselect_key = 'some text here'.

"populate fields of struture and append to itab
append wa_et_selections to it_et_selections.
ld_id_callback_repid = '123 '.
ld_id_set_title_form = 'some text here'.
ld_id_headerline = '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 FDKUSER_GET_VALUES or its description.