SAP Function Modules

AQ_INT_OPTIONS_DIALOG SAP Function module







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

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


Pattern for FM AQ_INT_OPTIONS_DIALOG - AQ INT OPTIONS DIALOG





CALL FUNCTION 'AQ_INT_OPTIONS_DIALOG' "
  EXPORTING
    popup_pos_x =               " i
    popup_pos_y =               " i
    via_selection_screen_in =   " flag_x
    use_select_options_in =     " flag_x
    currency_in =               " s_curr
    currency_conversion_date_in =   " sy-datum  Key date for currency translation
    currency_conversion_type_in =   " kurst_curr
    unit_in =                   " msehi
    add_counter_in =            " flag_x
    nr_of_ranks_in =            " i             Number of rankings for ranked list
    type_of_list_in =           " aqadh_type_of_list  Type of List
    diact_in =                  " aqs_diact     SAP Query (S): Flag for direct interaction
    xikey_in =                  " aqs_xikey     SAP Query (S): Name of additional function
    crp_create_new_in =         " aqcrpnew      Indicator
    crp_template_name_in =      " aqcrpname
    active_tabstrip_in =        " char30
    show_use_select_options =   " flag_x
    show_add_counter =          " flag_x
    selection_default_text_in =   " flag_x
    output_default_text_in =    " flag_x
    alv_count =                 " flag_x
  IMPORTING
    via_selection_screen_out =   " flag_x
    use_selectoptions_out =     " flag_x
    currency_out =              " s_curr
    currency_conversion_date_out =   " sy-datum  Key date for currency translation
    currency_conversion_type_out =   " kurst_curr
    unit_out =                  " msehi
    add_counter_out =           " flag_x
    nr_of_ranks_out =           " i             Number of rankings for ranked list
    type_of_list_out =          " aqadh_type_of_list  Type of List
    diact_out =                 " aqs_diact     SAP Query (S): Flag for direct interaction
    xikey_out =                 " aqs_xikey     SAP Query (S): Name of additional function
    crp_create_new_out =        " aqcrpnew
    crp_template_name_out =     " aqcrpname
    active_tabstrip_out =       " char30        Active tab
    selection_default_text_out =   " flag_x
    output_default_text_out =   " flag_x
    alv_count_out =             " flag_x
  EXCEPTIONS
    INTERNAL_ERROR = 1          "               Internal Error
    DIALOG_CANCELED = 2         "               Action terminated
    .  "  AQ_INT_OPTIONS_DIALOG

ABAP code example for Function Module AQ_INT_OPTIONS_DIALOG





The ABAP code below is a full code listing to execute function module AQ_INT_OPTIONS_DIALOG 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_via_selection_screen_out  TYPE FLAG_X ,
ld_use_selectoptions_out  TYPE FLAG_X ,
ld_currency_out  TYPE S_CURR ,
ld_currency_conversion_date_out  TYPE SY-DATUM ,
ld_currency_conversion_type_out  TYPE KURST_CURR ,
ld_unit_out  TYPE MSEHI ,
ld_add_counter_out  TYPE FLAG_X ,
ld_nr_of_ranks_out  TYPE I ,
ld_type_of_list_out  TYPE AQADH_TYPE_OF_LIST ,
ld_diact_out  TYPE AQS_DIACT ,
ld_xikey_out  TYPE AQS_XIKEY ,
ld_crp_create_new_out  TYPE AQCRPNEW ,
ld_crp_template_name_out  TYPE AQCRPNAME ,
ld_active_tabstrip_out  TYPE CHAR30 ,
ld_selection_default_text_out  TYPE FLAG_X ,
ld_output_default_text_out  TYPE FLAG_X ,
ld_alv_count_out  TYPE FLAG_X .

DATA(ld_popup_pos_x) = 'Check type of data required'.
DATA(ld_popup_pos_y) = 'Check type of data required'.
DATA(ld_via_selection_screen_in) = 'Check type of data required'.
DATA(ld_use_select_options_in) = 'Check type of data required'.
DATA(ld_currency_in) = 'Check type of data required'.
DATA(ld_currency_conversion_date_in) = '20210129'.
DATA(ld_currency_conversion_type_in) = '20210129'.
DATA(ld_unit_in) = '20210129'.
DATA(ld_add_counter_in) = '20210129'.
DATA(ld_nr_of_ranks_in) = '20210129'.
DATA(ld_type_of_list_in) = '20210129'.
DATA(ld_diact_in) = '20210129'.
DATA(ld_xikey_in) = '20210129'.
DATA(ld_crp_create_new_in) = '20210129'.
DATA(ld_crp_template_name_in) = '20210129'.
DATA(ld_active_tabstrip_in) = '20210129'.
DATA(ld_show_use_select_options) = '20210129'.
DATA(ld_show_add_counter) = '20210129'.
DATA(ld_selection_default_text_in) = '20210129'.
DATA(ld_output_default_text_in) = '20210129'.
DATA(ld_alv_count) = '20210129'. . CALL FUNCTION 'AQ_INT_OPTIONS_DIALOG' EXPORTING popup_pos_x = ld_popup_pos_x popup_pos_y = ld_popup_pos_y via_selection_screen_in = ld_via_selection_screen_in use_select_options_in = ld_use_select_options_in currency_in = ld_currency_in currency_conversion_date_in = ld_currency_conversion_date_in currency_conversion_type_in = ld_currency_conversion_type_in unit_in = ld_unit_in add_counter_in = ld_add_counter_in nr_of_ranks_in = ld_nr_of_ranks_in type_of_list_in = ld_type_of_list_in diact_in = ld_diact_in xikey_in = ld_xikey_in crp_create_new_in = ld_crp_create_new_in crp_template_name_in = ld_crp_template_name_in active_tabstrip_in = ld_active_tabstrip_in show_use_select_options = ld_show_use_select_options show_add_counter = ld_show_add_counter selection_default_text_in = ld_selection_default_text_in output_default_text_in = ld_output_default_text_in alv_count = ld_alv_count IMPORTING via_selection_screen_out = ld_via_selection_screen_out use_selectoptions_out = ld_use_selectoptions_out currency_out = ld_currency_out currency_conversion_date_out = ld_currency_conversion_date_out currency_conversion_type_out = ld_currency_conversion_type_out unit_out = ld_unit_out add_counter_out = ld_add_counter_out nr_of_ranks_out = ld_nr_of_ranks_out type_of_list_out = ld_type_of_list_out diact_out = ld_diact_out xikey_out = ld_xikey_out crp_create_new_out = ld_crp_create_new_out crp_template_name_out = ld_crp_template_name_out active_tabstrip_out = ld_active_tabstrip_out selection_default_text_out = ld_selection_default_text_out output_default_text_out = ld_output_default_text_out alv_count_out = ld_alv_count_out EXCEPTIONS INTERNAL_ERROR = 1 DIALOG_CANCELED = 2 . " AQ_INT_OPTIONS_DIALOG
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_via_selection_screen_out  TYPE FLAG_X ,
ld_popup_pos_x  TYPE I ,
ld_use_selectoptions_out  TYPE FLAG_X ,
ld_popup_pos_y  TYPE I ,
ld_via_selection_screen_in  TYPE FLAG_X ,
ld_currency_out  TYPE S_CURR ,
ld_currency_conversion_date_out  TYPE SY-DATUM ,
ld_use_select_options_in  TYPE FLAG_X ,
ld_currency_in  TYPE S_CURR ,
ld_currency_conversion_type_out  TYPE KURST_CURR ,
ld_currency_conversion_date_in  TYPE SY-DATUM ,
ld_unit_out  TYPE MSEHI ,
ld_currency_conversion_type_in  TYPE KURST_CURR ,
ld_add_counter_out  TYPE FLAG_X ,
ld_nr_of_ranks_out  TYPE I ,
ld_unit_in  TYPE MSEHI ,
ld_type_of_list_out  TYPE AQADH_TYPE_OF_LIST ,
ld_add_counter_in  TYPE FLAG_X ,
ld_nr_of_ranks_in  TYPE I ,
ld_diact_out  TYPE AQS_DIACT ,
ld_type_of_list_in  TYPE AQADH_TYPE_OF_LIST ,
ld_xikey_out  TYPE AQS_XIKEY ,
ld_crp_create_new_out  TYPE AQCRPNEW ,
ld_diact_in  TYPE AQS_DIACT ,
ld_crp_template_name_out  TYPE AQCRPNAME ,
ld_xikey_in  TYPE AQS_XIKEY ,
ld_active_tabstrip_out  TYPE CHAR30 ,
ld_crp_create_new_in  TYPE AQCRPNEW ,
ld_selection_default_text_out  TYPE FLAG_X ,
ld_crp_template_name_in  TYPE AQCRPNAME ,
ld_active_tabstrip_in  TYPE CHAR30 ,
ld_output_default_text_out  TYPE FLAG_X ,
ld_show_use_select_options  TYPE FLAG_X ,
ld_alv_count_out  TYPE FLAG_X ,
ld_show_add_counter  TYPE FLAG_X ,
ld_selection_default_text_in  TYPE FLAG_X ,
ld_output_default_text_in  TYPE FLAG_X ,
ld_alv_count  TYPE FLAG_X .

ld_popup_pos_x = '20210129'.
ld_popup_pos_y = '20210129'.
ld_via_selection_screen_in = '20210129'.
ld_use_select_options_in = '20210129'.
ld_currency_in = '20210129'.
ld_currency_conversion_date_in = '20210129'.
ld_currency_conversion_type_in = '20210129'.
ld_unit_in = '20210129'.
ld_add_counter_in = '20210129'.
ld_nr_of_ranks_in = '20210129'.
ld_type_of_list_in = '20210129'.
ld_diact_in = '20210129'.
ld_xikey_in = '20210129'.
ld_crp_create_new_in = '20210129'.
ld_crp_template_name_in = '20210129'.
ld_active_tabstrip_in = '20210129'.
ld_show_use_select_options = '20210129'.
ld_show_add_counter = '20210129'.
ld_selection_default_text_in = '20210129'.
ld_output_default_text_in = '20210129'.
ld_alv_count = '20210129'.

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