cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign a WD value help to a UI field in FPM application

0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

nishantbansal91
Active Contributor
0 Kudos

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

0 Kudos

Hi Nishant,

Thanks for your reply.

But i asked about how to change the F4 help in FPM application using feeder class.

My application is build based on FORM GUIBB.

so can you please suggest how to change F4 in FPM application.

nishantbansal91
Active Contributor
0 Kudos

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

0 Kudos

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.