on 06-26-2014 12:04 PM
Hallo,
I need help to configurate a Form UIBB dynamicaly.
I insert in the Method Get_Default_Config some fields of the Table SPFLI - this works fine. But my Problem is that all the fields doesn't have a F4 Help.
What is my mistake?
And how can I configurate the length of a textfield?
Data: lt_dfies Type STANDARD TABLE OF dfies,
ls_dfies LIKE LINE OF lt_dfies,
lv_group_id TYPE string,
lv_text TYPE string,
lv_elment_id TYPE string,
lt_action TYPE fpmgb_t_action,
ls_action LIKE LINE OF lt_action,
ls_fieldname TYPE name_komp,
iv_row Type integer.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = 'SPFLI'
TABLES
DFIES_TAB = lt_dfies
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
.
*Hinzufügen der ersten Gruppe
lv_group_id = io_layout_config->add_group(
iv_title = lv_text
iv_index = 2
iv_group_type = if_fpm_guibb_constants=>gc_group_type-full_width_one_column ).
*Hinzufügen des ersten Elements
LOOP AT lt_dfies into ls_dfies.
ls_fieldname = ls_dfies-fieldname.
Read TABLE lt_dfies Into ls_dfies With key fieldname = ls_fieldname.
lv_text = ls_dfies-scrtext_m.
lv_elment_id = io_layout_config->add_element(
iv_group_id = lv_group_id
iv_name = ls_fieldname
iv_display_type = if_fpm_guibb_constants=>gc_display_type-text_edit
iv_row = iv_row
iv_visibility_label = cl_wd_uielement=>e_visible-visible
iv_column = 1
iv_text = lv_text
iv_row_start = iv_row
iv_row_end = iv_row ).
iv_row = iv_row + 1.
ENDLOOP.
Hi Julia,
Try to use IS_SPECIAL_PROPERTIES parameter (ALT_DDIC_SHLP_NAME field) of ADD_ELEMENT method.
Kind regards, Aliaksandr.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.