cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help for time in FPM_FORM_UIBB

Former Member
0 Kudos

Hello,

We have to enhance a standard FPM FORM UIBB with custom fields. We are successful with adding the fields. For one of the fields we need a time F4 Help where user can input HH: MM: SS from a drop downs in the search help pop up then the values goes back to the time field  on Form field.

I have looked at Thomas Jung's example for    . This is based on value.

First question -  Can this help be integrated with FPM based applications? If yes clues are appreicated

Second Question - If the answer is no to the above question, how can this be achieved via a FPM based OVS help

Thanks,

John S

Accepted Solutions (1)

Accepted Solutions (1)

jens_boeckenhauer
Active Participant
0 Kudos

Hi John,

With NW 702 SP16, the FPM GUIBBs Form, List, Tree and Search support WD freestyle value helps (i.e. components implementing IWD_VALUE_HELP). So if Thomas' value help is built like this, yes, it is possible by assigning this as WD_VALUE_HELP in the field description of your form feeder.

Don't forget to maintain the context change log when setting the selected attribute value as GUIBBs are internally based on this technique - see e.g. WD component FPM_TEST_VH, view V_VH, method ONACTIONON_SELECT_CONNECTOR.

Regards, Jens

Former Member
0 Kudos

Hello Jens,

Your answer was spot on. Appreciate your quick response. Thomas's nugget for F4 help for coded in the right way. Though I had to tinker a bit to adapt it to FPM model.

For all the solution is

If you are working on standard SAP FPM object find the BADI for method FPM_GET_DEFINITION of your FPM feeder class or implicit enhancement or post exit

FIELD-SYMBOLS <fs_field_description> TYPE fpmgb_s_formfield_descr.

* ZTIME is the field name from FPM configuration

READ TABLE ct_field_description ASSIGNING <fs_field_description> WITH KEY name = 'ZTIME'.

   IF <fs_field_description> IS ASSIGNED.

* Assign the user Defined Value Help for time from Thomas Jungs Nugget

     <fs_field_description>-wd_value_help  = 'Z_TIME_VALUE_HELP'. :

   ENDIF.

Go to WD component Z_TIME_VALUE_HELP (from nugget imported via tcode ZSAPLINK). insert the following line in method SELECT

*----- take over value

   wd_this->value_help_listener->f4_context_element->get_node( )->get_node_info(

       )->get_controller( )->get_context( )->add_context_attribute_change(

         element = wd_this->value_help_listener->f4_context_element

         attribute_name = wd_this->value_help_listener->f4_attribute_info-name

         new_value = l_time ).


*   set single attribute

.

..

....

.......

Answers (0)