on 06-29-2015 3:53 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
.
..
....
.......
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.