In the Floorplan Manager (FPM), melting groups are a way of presenting fields next to each other. This is useful where a field only has meaning when qualified by another field. A typical example is amount and currency; neither one on its own is particularly meaningful, so we can put them together in a melting group.
Go to your Form UIBB configuration in change mode.
Choose Group
: General Data
in the hierarchy on the left.
Choose Add Melting Group
and then Configure melting group in succession.
A dialog box with your field catalogue is displayed.
In this dialog box, choose the fields BRUTT
and WAERS
from the available fields and move them over to the displayed fields.
Choose OK
.
In the hierarchy on the left, choose the WAERS
field in the melting group.
For WAERS
, set the Display Type
to Text view.
Set the label Visibility
to None.
For BRUTT
set the Text to Gross Remuneration
.
If necessary, delete other usages of the field BRUTT
(select field in hierarchy, then Delete
button in the attribute maintenance to the right).
If necessary, to change the sequence of fields within a group, select the group in the hierarchy, then button Configure Group
. A dialog box is displayed.
In the dialog box use the Change Sequence
buttons to move the fields or field groups up or down.
Modify the method GET_DATA
in your feeder class, so that the currency is always output as EUR
.
Syntax
field-symbols <ls_data> type 'HRXSS_DE_GHR_VC_VCDATA. “ as field cat.
assign cs_data to ls_data> casting.
* set currency 'EUR' as default
<ls_data>-waers = 'EUR'.
ev_data_changed = abap_true.
Test your application in the usual way, see Test Your Application.