MC_POPUP_TO_SELECT_FIELDS 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 MC_POPUP_TO_SELECT_FIELDS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
MCS2
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'MC_POPUP_TO_SELECT_FIELDS' "
EXPORTING
* i_application = SPACE " tmcap-mcapp Appl. of the field catalog or evaluation structure
* i_catalog_type = SPACE " tfcg-fcart Category of field catalog
* i_column_width = " sy-cucol Column width for chosen fields
* i_field_first = 1 " sy-tabix Table index of the first field in popup
* i_field_number_max = SPACE " sy-tabix Max. number of chosen fields
* i_field_number_min = 1 " sy-tabix Min. number of chosen fields
* i_flg_check_planning = SPACE " Control indicator for the field validation
* i_flg_length = SPACE "
* i_flg_format = SPACE "
* i_flg_sort = SPACE "
* i_flg_sort_down = SPACE "
* i_formname = SPACE " External routine which changes the field texts
* i_library_name = SPACE " t801k-lib Name of the Report Writer library
* i_line_size_max = " sy-linsz Width of output line
* i_maxlen = 0 " mcs01-intlen Maximum length of the fields in bytes
* i_no_unit_fields = SPACE " Flag for displaying unit fields
* i_object_name_plural = SPACE " Name of table fields in plural
* i_object_name_plural_titlebar = SPACE " Name of the table fields in plural for title
* i_object_name_singular = SPACE " Name of table fields in singular
* i_popup_length = SPACE " sy-curow Length of the pop-up (optional)
* i_popup_width = SPACE " sy-cucol Width of the popup (optional)
* i_progname = SPACE " sy-repid Program for routine I_FORMNAME
* i_selection_inttype = SPACE " Internal data type of the table fields
i_selection_source = " sy-datar Category for source of the selectable fields
* i_selection_type = SPACE " sy-datar Category of the table fields (all of them, keys, data)
* i_start_column = SPACE " sy-cucol Column in the top left corner of popup (opt.)
* i_start_row = 3 " sy-curow Line in the top left corner of popup (opt.)
* i_table_name = SPACE " Name of the Report Writer or DDIC table
* i_table_name_additional = SPACE " Name of the additional DDIC table
* i_no_field_sort = SPACE " sy-datar Flag for no sorting of selectable fields
IMPORTING
e_field_changed = " sy-datar Flag for changing table T_FIELDS
e_field_first = " sy-tabix Table index of the first field in popup
TABLES
t_fields = " mcs01 Fields which are imported or exported
* t_fields_exclude = " mcs02 Fields which should not be displayed
EXCEPTIONS
ILLEGAL_SELECTION_SOURCE = 1 " Invalid I_SELECTION_SOURCE
. " MC_POPUP_TO_SELECT_FIELDS
The ABAP code below is a full code listing to execute function module MC_POPUP_TO_SELECT_FIELDS 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).
| ld_e_field_changed | TYPE SY-DATAR , |
| ld_e_field_first | TYPE SY-TABIX , |
| it_t_fields | TYPE STANDARD TABLE OF MCS01,"TABLES PARAM |
| wa_t_fields | LIKE LINE OF it_t_fields , |
| it_t_fields_exclude | TYPE STANDARD TABLE OF MCS02,"TABLES PARAM |
| wa_t_fields_exclude | LIKE LINE OF it_t_fields_exclude . |
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_e_field_changed | TYPE SY-DATAR , |
| ld_i_application | TYPE TMCAP-MCAPP , |
| it_t_fields | TYPE STANDARD TABLE OF MCS01 , |
| wa_t_fields | LIKE LINE OF it_t_fields, |
| ld_e_field_first | TYPE SY-TABIX , |
| ld_i_catalog_type | TYPE TFCG-FCART , |
| it_t_fields_exclude | TYPE STANDARD TABLE OF MCS02 , |
| wa_t_fields_exclude | LIKE LINE OF it_t_fields_exclude, |
| ld_i_column_width | TYPE SY-CUCOL , |
| ld_i_field_first | TYPE SY-TABIX , |
| ld_i_field_number_max | TYPE SY-TABIX , |
| ld_i_field_number_min | TYPE SY-TABIX , |
| ld_i_flg_check_planning | TYPE STRING , |
| ld_i_flg_length | TYPE STRING , |
| ld_i_flg_format | TYPE STRING , |
| ld_i_flg_sort | TYPE STRING , |
| ld_i_flg_sort_down | TYPE STRING , |
| ld_i_formname | TYPE STRING , |
| ld_i_library_name | TYPE T801K-LIB , |
| ld_i_line_size_max | TYPE SY-LINSZ , |
| ld_i_maxlen | TYPE MCS01-INTLEN , |
| ld_i_no_unit_fields | TYPE STRING , |
| ld_i_object_name_plural | TYPE STRING , |
| ld_i_object_name_plural_titlebar | TYPE STRING , |
| ld_i_object_name_singular | TYPE STRING , |
| ld_i_popup_length | TYPE SY-CUROW , |
| ld_i_popup_width | TYPE SY-CUCOL , |
| ld_i_progname | TYPE SY-REPID , |
| ld_i_selection_inttype | TYPE STRING , |
| ld_i_selection_source | TYPE SY-DATAR , |
| ld_i_selection_type | TYPE SY-DATAR , |
| ld_i_start_column | TYPE SY-CUCOL , |
| ld_i_start_row | TYPE SY-CUROW , |
| ld_i_table_name | TYPE STRING , |
| ld_i_table_name_additional | TYPE STRING , |
| ld_i_no_field_sort | TYPE SY-DATAR . |
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 MC_POPUP_TO_SELECT_FIELDS or its description.