on 09-24-2015 11:15 AM
Hi Team,
In my FPM application for one UI field a DDIC search help is assigned . Now my requirement is , i have to assign a WD value help to that particular field. So whenever am clicking on F4 instead of that DDIC search help i want to show WD value help.
I have tried to add the properties in GET_DEFINITION method , but its giving a dump saying that Assert Violation.
And also i have tried to implement the method CHANGE_FIELD_DEFINITION of interface /PLMU/IF_FRW_G_FIELD_DEF.
But this method is not getting triggered.
Can anyone please suggest how to resolve this.
Hi Ramya,
I think your requirement is to change the f4 help.
You have to follow the below steps.
data lr_node_info type ref to if_Wd_Context_info.
1. Get the instance of the Node(if_wd_Context_node).
lr_node = wd_context->get_Child_node('NODENAME').
2. Get the object of the lr_node_info.
lr_node_info = lr_node->GET_NODE_INFO().
now you have the object of the if_Wd_Context_info.
call the method
call method lr_node_info->SET_ATTRIBUTE_VALUE_HELP()
give the value in the importing parameter and set the record.
Thanks
Nishant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Ramya,
Check the below code for the same.
How you are generating the fieldcatalog.?
CL_FPM_GUIBB_TEST_VH_FORM.
method get_Defination.
FIELD-SYMBOLS:
<ls_field_descr> LIKE LINE OF et_field_description.
CALL METHOD mo_meta_data->get_definition
IMPORTING
et_field_description = et_field_description
et_action_definition = et_action_definition
et_special_groups = et_special_groups.
eo_field_catalog = mo_meta_data->mo_struct_rtti.
LOOP AT et_field_description ASSIGNING <ls_field_descr>.
CASE <ls_field_descr>-name.
WHEN 'CONNECTOR'.
<ls_field_descr>-wd_value_help = 'FPM_TEST_VH'.
ENDCASE.
ENDLOOP.
Thanks
Nishant
Hi Nishant,
I am building the field catalog in get_definition method by using below statement.
EO_FIELD_CATALOG ?= CL_ABAP_TABLEDESCR=>DESCRIBE_BY_DATA( LV_ORDER ).
the class you mentioned in the above reply CL_FPM_GUIBB_TEST_VH_FORM is a final class so can you please tell me clearly how can i build field catalog with this class.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.