cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying POP-UP Message in FPM Forms

Former Member
0 Kudos

Hi Team,

Can we display screen level validation in a Pop-up instead of Standard Message Area.

currently we are using Standard UIBB, which has a standard Message Area, now my requirement is to display the screen level validations ( Mandatory fields / Input Validations etc ) in Pop-Up as we normally do in Module Pool programming.

Please suggest in this regard.

Regards,
Sridhar.J

Accepted Solutions (0)

Answers (4)

Answers (4)

vaibhav_singh12
Participant
0 Kudos

I would suggest you to make the event as validation-independent (this will not execute standard validations on that event) on which the standard validations are being performed, then write a custom code to perform validation and collect the messages and then display in a popup.

AbhishekSharma
Active Contributor
0 Kudos

Hi Sridhar,

For your requirement List or Form EXIT based on your needs could do a trick.

Implement Interface which ever is needed

IF_FPM_GUIBB_LIST_EXT

OR

IF_FPM_GUIBB_FORM_EXT

I am assuming you are using LIST EXIT.

Go to method IF_FPM_GUIBB_LIST_EXT~NEEDS_CONFIRMATION

You need to raise an event when you got validation error.

Handel event in IF_FPM_GUIBB_LIST_EXT~NEEDS_CONFIRMATION method.

*--> Local Reference object

  DATA: lo_instance TYPE REF TO cl_fpm_confirmation_request,

*--> Local Table

      lt_popup_text   TYPE string_table,

*--> Local Structure

      ls_popup_text   TYPE string,


CASE io_event->mv_event_id.

     WHEN <your custom event name>

    

ls_popup_text = cl_wd_utilities=>get_otr_text_by_alias( "messages here" ).

      APPEND ls_popup_text TO lt_popup_text.

      lv_window_title = cl_wd_utilities=>get_otr_text_by_alias( "popup title" ).

      CREATE OBJECT lo_instance

        EXPORTING

          it_confirmation_text   = lt_popup_text  "All messages in table

          iv_button_text_approve = |{ text-tok }| "gc_ok            "'OK'

          iv_window_title        = lv_window_title.

      eo_confirmation_request = lo_instance.

ENDCASE.

Hope this will help.

Thanks-

Abhishek

former_member183072
Active Participant
0 Kudos

Hi Srdihar,

maybe this will help you:

take care,

Ovidiu

nishantbansal91
Active Contributor
0 Kudos

Dear Sridhar,

I am not sure about my answer please check and confirm.

1. Collect all the messages of first view into one internal table.

2.Create new view and define the message area.

3 pass the message internal table into second view if_Wd_message object.

4. Call the view as an popup after click on submit button.

Thanks

Nishant