Quantcast
Channel: SCN: Message List - Floorplan Manager for Web Dynpro ABAP
Viewing all 2665 articles
Browse latest View live

Re: Display message raised at the user exit level in Web dynpro screen

$
0
0

hi,

 

not sure if this works. if your user exit is getting calles inside the FPM applicaiton  try this

 

get instance of fpm  using  lo_fpm = cl_fpm_factory=>get_instance( ).

 

get reference to message manager using  lo_msg = lo_fpm->mo_message_manager

 

use method REPORT_MESSAGE of lo_msg

 

thanks,

sankar


Re: Display message raised at the user exit level in Web dynpro screen

$
0
0

Hi,

 

Thanks for the information but the message is not raised in fpm. Its raised in backend sap system and have to show the message at fpm screen,

 

Thanks and Regards,

Shitanshu Sahai

Re: Display message raised at the user exit level in Web dynpro screen

$
0
0

I think you should explain your scenario in more detail

 

- where is the FPM applicaiton running

- where is your user exit

 

etc.,

button choice text replaced

$
0
0


Hi experts,

 

I have problem with button-choice text, which somehow is replaced with text of first action (of the button-choice actions)

 

In UIBB List configuration on Toolbar Schema tab I have added Button-Choice with some actions

I've entered Button-Choice Text which I want to be visible on the button, but in runtime the text is always replaced with the text of the first action

 

expected:

 

Release for Production

- Material Extension

- Material Conversion

- Material Enrichment

 

achieved:

 

Material Extension

- Material Extension

- Material Conversion

- Material Enrichment

 

There is no "extra coding" in feeder class which could influence the text switch

 

(SAP_BASIS 740)

 

can you tell me what I do wrong?

 

2015-08-12_10-09-43.png

 

2015-08-12_10-12-13.png

Re: Display message raised at the user exit level in Web dynpro screen

$
0
0

Hi,

 

The user exit is in MV45AFZZ, while debugging I found that once the user clicks on the save button on the floor plan manager the control reaches this program and after that the control again reaches to the process_event of the component LO_OIF_MAIN_COMP.

 

The requirement is to have a information message if certain condition is met both at the sap GUI and Web UI(NWBC) now for the sap gui the user exit is in place and the information message is getting raised.

 

the problem is how can i get this information message raised in the web ui, the control reaches the logic written in the user exit and comes back to the process event. So can i write something in the user exit to have a information message(POPup ) in web UI or some other way i have to follow.

 

Thanks and Regards,

Shitanshu Sahai

how to display a pop up information message in a standard fpm application?

$
0
0

Hi Experts,

 

Please let me know how to get a pop up information message in a standard fpm application?

 

Thanks and Regards,

Shitanshu Sahai

Re: Dynmically Create a Pop up with Input fields in FPM

$
0
0

Hi,

 

Can you tell me how did you resolved your problem?

 

Thanks and Regards,

Shitanshu Sahai

Re: how to display a pop up information message in a standard fpm application?

$
0
0

Hi Shitanshu,
the most easiest and fastet way to have a popup with some simple text on it is through the FPM needs confirmation concept. Just google the key words "FPM needs confirmation" or check our developer guide for this.

 

Kind regards,
Ulrich


FPM - Input Ready Component missing new line button

$
0
0

Hello Community,

 

I am trying to use the FPM Framework to provide input ready BW-Queries in Web Dynpros. Using WDC_BS_ANLY_LIST_ALV component it was possible to create a simple webdynpro to display and edit data from the linked query (which I created myself).

 

But there is an issue regarding inserting new lines. If I try to add new lines via Bex it works just fine, but it does not work using webdynpro interface. Which is strange because if I link the FPM-Component (no changes at all just switching the Query) to another query which I have copied (from Standard) and manipulated, it does show the option to insert new lines.

 

Does anyone know if there is some sort of query definition or something else I have to consider?

 

PS.: I just remembered that if the query does not deliver any results it shows the option to create a new line... but after submitting the first row, the button disappears.

 

Thanks for your help and BR

Initial values in FPM_SEARCH_UIBB

$
0
0

Hi!

 

Is there any possibility to pre-fill the search criteria with initial values in component FPM_SEARCH_UIBB?

Basically, when the user opens the UI there should be some default search criteria.

Thanks in advance for any hint.

Re: Initial values in FPM_SEARCH_UIBB

$
0
0

Hi there,

yes I think this is possible. In method get_data, you can fill the parameter CT_FPM_SEARCH_CRITERIA and set EV_SEARCH_CRITERIA_CHANGED = abap_true.

 

Kind regards,
Ulrich

Re: Initial values in FPM_SEARCH_UIBB

$
0
0

Hi!

Thx, but is there an easier solution without coding?

Basically, can I finish this task with the component by default?

Re: Initial values in FPM_SEARCH_UIBB

$
0
0

I am afraid, this is only possible via feeder class coding, not by configuration.

Event Handling in Dialog Box FPM

$
0
0

Hi ,

 

I have created a Dialog Box using 2 feeder class. In the first feeder class added a button  to pop-up a dialog box using API and  then the event is navigated to


second feeder class  to create the Catalog for Dialog Box. It works fine . Now the issue is , I cannot navigate to other GUIBB from the dialog box.

 

Events for navigating to other GUIBB works fine if the dialog box is not cloased . However if I add the logic of closing the dialog box and then of

 

navigation I get an error saying "The View is not found" .

 

I wanted to know how the logic of closing the dialog box and then navigating or triggering the other events.

 

Regards,

Vicky

Re: Create DropDown from Domain in Sap FPM

$
0
0

Hello Vicky,

 

Fetch the value range table values using select query and keep those values into one internal table(it_tab_values) .

 

In GET_DEFINITION method, assign these internal table (it_tab_values) values to the fixed values property of that particular field. Please refer the below code.

 

Data:   ls_field    type fpmgb_s_formfield_descr,

            lt_field    type fpmgb_t_formfield_descr,

 

** Assign value range to field

 

     IF ls_field-name eq 'XXXX'.

            ls_field-fixed_values = it_tab_values.

     ENDIF.


     append ls_field to lt_field.

et_field_description = lt_field.


hope it will helps you.



Regards,

Naga


Re: FPM Close button is not visible

Issue with Updating BOL

$
0
0

Hi guys,

 

I am facing an issue in HCM ESS portal. The scenario is, when an employee waives a particular benefit plan, some related plans also has to be dropped in back end. We have added the code tho drop the related plans and the BOL was updated for the same. It was working fine. But now we are facing an issue of not dropping the related plans. In  debugging, I have found the BOL is updated. I have confirmed this by reading the attribute again and checked the values. But at another point of the program where this data is checked, it hold the old values. And another strange thing is, some times the first record is updated properly(the first plan to be dropped) and it hold the updated value till the end. But some times it wont get updated. This happens for the same scenario and inputs.

 

The code is as follows.

 

DATA: lo_bol_core             TYPE REF TO cl_crm_bol_core,

         lo_hress                TYPE REF TO cx_hress,

         ls_object_spec          TYPE crmt_genil_obj_instance,

         lo_iterator             TYPE REF TO if_bol_entity_col_iterator,

         lo_entity               TYPE REF TO cl_crm_bol_entity,

         lv_object_id            TYPE crmt_genil_object_id,

         lt_object_specs         TYPE crmt_genil_obj_instance_tab,

         lv_tech_exception_text  TYPE string,

         ls_pernr_struc          TYPE hrpernr.

 

   DATA: lv_string         TYPE string,

         lv_index          TYPE syindex,

         lv_beg_date       TYPE sydatum,

         lv_end_date       TYPE sydatum,

         lv_ben_eff_dt     TYPE sy-datum." Insert for SCR4755/XX03907/12.06.2014/HD1K920410

 

   DATA: lo_collection_in  TYPE REF TO if_bol_entity_col,

         lo_collection_out  TYPE REF TO if_bol_entity_col,

         lo_bol_filter      TYPE REF TO cl_crm_bol_filter,

         lo_access         TYPE REF TO if_bol_bo_property_access.

 

lo_bol_filter cl_crm_bol_relation_filter=>get_instance( iv_bol_relation ).

   CALL METHOD lo_bol_filter->if_bol_bo_property_access~set_property

     EXPORTING

       iv_attr_name = 'EVENT'

       iv_value     = gv_event.

   CALL METHOD lo_bol_filter->if_bol_bo_property_access~set_property

     EXPORTING

       iv_attr_name = 'PLAN_TYPE'

       iv_value     = iv_plantype.

 

   CALL METHOD lo_bol_filter->if_bol_bo_property_access~set_property

     EXPORTING

       iv_attr_name = 'ENDDA'

       iv_value     = '99991231'.

 

   CALL METHOD lo_bol_filter->if_bol_bo_property_access~set_property

     EXPORTING

       iv_attr_name = 'BEGDA'

       iv_value     = lv_beg_date.

 

   lo_bol_core = cl_crm_bol_core=>get_instance( ).

   lo_bol_core->start_up(

     iv_appl_name = 'EMPTY'

     iv_display_mode_support = space ).

   lo_bol_core->load_component( 'HRBENF' ).

 

*----- get object

   TRY.

       ls_pernr_struc-pernr = cl_hress_employee_services=>get_instance( )->get_pernr( ).

     CATCH cx_hress INTO lo_hress.

       lv_tech_exception_text = cl_hress_fpm_msg_services=>return_tech_exception( lo_hress ).

       cl_fpm_factory=>get_instance( )->display_error_pagecl_fpm_error_factory=>create_from_object(

                 io_exception_obj = lo_hress iv_technical_exception = lv_tech_exception_text iv_additional_info = 'HRESS_EXCEPTION' ) ).

       RETURN.

   ENDTRY.

   lv_object_id = cl_crm_genil_container_tools=>build_object_id( ls_pernr_struc-pernr ).

   CLEAR ls_object_spec.

   ls_object_spec-object_name = 'PERNR_BEN'.

   ls_object_spec-object_id = lv_object_id.

   APPEND ls_object_spec TO lt_object_specs.

 

   lo_collection_in = lo_collection_out = lo_bol_core->get_root_entities( it_instances = lt_object_specs ).

   lo_iterator = lo_collection_out->get_iterator( ).

   lo_entity = lo_iterator->get_first( ).

   IF lo_entity IS BOUND.

 

     lo_entity->lock( ). "Lock the root entity

 

* Refresh / re-read the contents

     lo_entity->reread( ).

* End of Refresh / re-read the contents

 

     IF lo_collection_out IS BOUND.

       lo_entity = lo_collection_out->get_first( ).

       IF  lo_entity IS BOUND.

         lo_entity->reread( ). "*          "Refresh / re-read the contents

         IF  lo_bol_filter IS BOUND.

           lo_collection_out = lo_entity->get_related_entities_by_filter(

             iv_relation_name = iv_bol_relation

             iv_filter        lo_bol_filter ).

         ENDIF.

       ENDIF.

     ENDIF.

   ENDIF.

 

   lo_iterator = lo_collection_out->get_iterator( ).

   lo_entity = lo_iterator->get_first( ).

   WHILE lo_entity IS BOUND.

 

     lv_index = sy-index.

 

     CALL METHOD lo_entity->get_property_as_value

       EXPORTING

         iv_attr_name = 'ENROLLED'

       IMPORTING

         ev_result    = lv_string.

 

    IF lv_string EQ 'X'.

 

       IF lo_entity->alive( ) = abap_true.

         lo_access = lo_entity.

         TRY.

             lo_access->set_property(

               iv_attr_name = 'ENROLLED'

               iv_value     = '' ).

             lo_entity->activate_sending( ).

 

           CATCH cx_crm_cic_parameter_error.

         ENDTRY.

       ENDIF.

 

     ENDIF.

 

     lo_entity ?= lo_iterator->get_next).

 

   ENDWHILE.


 

I have tried LO_CORE->modify( ) after the changes, but the issue still persists.  Is there any other way to explicitly update the buffer? Please help me in solving this problem.


Re: Issue with Updating BOL

$
0
0

One more thing to add. This was working fine before the EHP7 upgrade.

Re: how to display a pop up information message in a standard fpm application?

$
0
0

Hi Shitanshu,

 

I'd say you have to create a dialog box via FLUID editor, with a simple form GUIBB in it so you can add text (or whatever FPM block you need).
Then, at the event processing of your application, that is, when you want the popup to be displayed, write something like this :

cl_fpm_factory=>get_instance( )->open_dialog_box( iv_dialog_box_id = 'your_dialog_id' io_event_data = lo_event_param ).

That should work.

Re: Display message raised at the user exit level in Web dynpro screen

$
0
0

Hi shitanshu,

 

If I understand correctly your issue, I've faced exactly the same.

This is how I solved it.

I've created an enhancement in the form USEREXIT_SAVE_DOCUMENT_PREPARE, and after the checks, if an error occurred, just do the following:

    if call_activity = gc_activity_lord.      " we're coming from LORD API (e.g. FPM screens)      " so there is no dynpro processing, and we have to      " raise the message to the LORD message handler      message id ls_error_msg-id type ls_error_msg-type number ls_error_msg-number.      message_collect_lord.      return.    endif.

Please note that this will probably only work if you're using Lean Order API (CL_LORD class) as a model (CL_LO_OIF_MODEL) in your FPM application.

The macro message_collect_lord is standard, so I guess it exists in your system too.

 

Good luck.

Viewing all 2665 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>