cancel
Showing results for 
Search instead for 
Did you mean: 

Dynmically Create a UI element on Button Action in FPM ?

0 Kudos

Hi Experts,

How to create a input box on button action in form UIBB ?

Thanks,

Saya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Saya,

In GET_DATA method, set the visibility property of the input field based on button action. So that whenever user performs button action input field will be appear.

data: ls_field_usage type fpmgb_s_fieldusage.


CASE io_event->mv_event_id.

   WHEN 'BUTN_ACTION'.

     if ls_field_usage-name = 'INPUT1'.

           ls_field_usage-visibility = abap_true.

     endif.

     APPEND ls_field_usage to ct_field_usage.

     ev_field_usage_changed = abap_true.

ENDCASE.


Regards,

Naga