Quantcast
Channel: SCN : All Content - Floorplan Manager for Web Dynpro ABAP
Viewing all 839 articles
Browse latest View live

Focus on Form UIBB field- OVP Application


Paging technique in List UIBB

Asynchronous Event in Floorplan Manager

$
0
0

Normally when any button is clicked in FPM application(OVP,GAF,OIF) having any UIBBs, some event is triggered and application does certain processing(synchronously) ( during this time we can’t do any action on the application ,Of course this action processing takes very little time ) and then the application screen appears.

Consider the case when user processes  huge records with some action and the processing takes 50-60 secs of times or even more . Now if we process this event synchronously then the user can’t do any activity as the small round processing symbol appears on the screen.

Now to avoid such long running processes, we can start using asynchronous function module which processes the huge records and the user can do parallel work without waiting for the processing to finish on the fpm application.

Now the question is how the FPM application receives the message of from the asynchronous job(FM). For this we can use the concept of asynchronous event in fpm application. The post describes how to work with asynchronous event in an ovp application with list uibb.

Check the link: Asynchronous Event in Floorplan Manager | TECHSAP

-----------------------------------------------------------------------------------------------------------------------------------------------

Hiding Tab in Tabbed UIBB

$
0
0

The below post describes how to make visible/hide of a tab ( containing any number of UIBBs) in a tabbed UIBB in floorplan manager. The post uses an OVP application containing a tabbed UIBB with 3 tabs and each tab contains only one form UIBB.


Check the link: Hiding Tab in Tabbed UIBB | TECHSAP


------------------------------------------------------------------------------------------------------------------

** TEAM FPM ** - Navigate from Message Area into Collapsed Panels or Tabs

$
0
0

End users usually prefer to have a reference of an error message to the corresponding input field. In addition they want to navigate into the field when clicking on the message, no matter if the corresponding panel or tab is currently collapsed or closed.

 

Since our customers frequently asked for that feature, we now provide this (out of the box for OVP, OIF, GAF and  Tabbed UIBB) with SAP NetWeaver 750 SAP_UI SP2. The features is available (of course) for the old and new design of the Message Area.

 

All messages that are reported with a field reference (importing parameters IO_ELEMENT, IV_ATTRIBUTE_NAME or IT_ATTRIBUTES)  using interface IF_FPM_MESSAGE_MANAGER, are now rendered with a link that leads you into the corresponding input field.

 

You can see how this works in OVP application FPM_TEST_MESSAGE_NAVIGATE, see the Figure below. Mind that Web Dynpro application parameter WDSETFOCUSONMESSAGEAREA should be disabled, see also SAP Note 2317280.

 

This test application consists of a panel stack with several UIBBs (Form, Form Repeater, Tree, List, Composite UIBB, Freestyle). By clicking on the different messages you can navigate into the corresponding field, even though the assigned Panel is currently collapsed.

 

Figure1.png

Figure 1: Message with reference to an input field in a Form UIBB

 

Technically the navigation to the input field is indicated with FPM event FPM_MESSAGE_NAVIGATE, So for Freestyle UIBBs you can still fine tune the focus handling based on the available event parameters.


This improvement may replace application related coding on basis of the importing parameters IS_ENABLE_MESSAGE_NAVIGATION, IR_MESSAGE_USER_DATA and FPM event ON_NAVIGATE, see the SAP Help Documentation. This feature was introduced with SAP NetWeaver 7.31. For SAP NetWeaver 7.02 you have to implement SAP Note 2314215.


For the above OVP application FPM_TEST_MESSAGE_NAVIGATE the previous behavior can be simulated with URL Parameter IS_DONE_BY_APPCC=X. An application development controlled switch to the OVP Panel then may look like this. Of course, this will be still supported also in SAP NetWeaver 7.50


METHOD override_event_ovp .   DATA lv_msg_id TYPE string.   DATA lo_message_manager TYPE REF TO if_wd_message_manager.   DATA ls_message TYPE if_wd_message_manager=>ty_s_message.   DATA ls_uibb TYPE if_fpm_ovp=>ty_s_uibb.   DATA lt_uibb TYPE if_fpm_ovp=>ty_t_uibb.   CASE io_ovp->get_event( )->mv_event_id.     WHEN 'ON_NAVIGATE'.       io_ovp->get_event( )->mo_event_data->get_value( EXPORTING iv_key   = 'MESSAGE_ID' IMPORTING ev_value = lv_msg_id ).       lo_message_manager = wd_this->wd_get_api( )->get_message_manager( ).       ls_message = lo_message_manager->get_message_for_id( lv_msg_id ).       CHECK ls_message-element IS BOUND.       DATA(ls_config_key) = ls_message-element->get_node( )->get_node_info( )->get_controller( )->get_component( )->get_configuration_key( ).       TRY.           io_ovp->get_uibbs( IMPORTING et_uibb = lt_uibb ).           READ TABLE lt_uibb INTO ls_uibb WITH KEY config_id = ls_config_key-config_id.           IF sy-subrc NE 0.             DATA(lv_comp_name) = ls_message-element->get_node( )->get_node_info( )->get_controller( )->get_component( )->get_component_info( )->get_name( ).             READ TABLE lt_uibb INTO ls_uibb WITH KEY component = lv_comp_name.             CHECK sy-subrc EQ 0.           ENDIF.           ls_uibb-collapsed = abap_false.           ls_uibb-default_in_stack = abap_true.           io_ovp->change_uibb( is_uibb = ls_uibb ).           lo_message_manager->remove_message( lv_msg_id ).         CATCH cx_fpm_floorplan.           ASSERT 1 EQ 0.       ENDTRY.   ENDCASE.
ENDMETHOD.


Dependent Searches in Search UIBB with OVS

$
0
0



The post creates a search UIBB in an OVP floorplan. The Search UIBB contains two search fields CARRID & CONNID. By defualt F4 helps comes for CARRID field but there is no F4 help is there for CONNID field. Now the task is to enable the F4 option for the CONNID field. In case any CARRID field is filled, then the F4 option  for the CONNID should only bring the dependent CONNID values.


Check the link for details:  Dependent Searches in Search UIBB with OVS | TECHSAP



--------------------------------------------------------------------------------------------------------------------------


Quotation screen with copied standard uibbs.

$
0
0

Hi Experts.

 

I need to create a screen quotation for User.

This screen will look similar to standard screen but with changes.

I created a Z FPM_OVP_COMPONENT Application.

I created a configuration for it.

Inside of this configuration i inserted a copy of standard UIBBs.

 

 

But when i execute it is showed this error message:

call4.png

 

What did i wrong?

 

 

And how create this screen without a init page?

 

Thanks for help.

Freestyle Value Help in FPM

$
0
0

FPM provides all sorts of technique for value help like search help, OVS and also freestyle value help. The post describes how to adopt free style value help in a search UIBB field by creating a webdynpro component and implementing the

interface  IWD_VALUE_HELP.



Check the link for details: Freestyle Value Help in FPM | TECHSAP


--------------------------------------------------------------------------------------------------------------


Drop Down Action in LIST UIBB

$
0
0


The post tries to create a LIST UIBB in an OVP floor plan application. Normally simple buttons or button choice elements are created in UIBB tool-bar. But the powerful FPM feature enables to define the action as a drop-down list and fill some value in it. The post tries to display an action as drop down list with some fixed values on am list UIBB and group/sort the list records according to the selected value.


Check the link : Drop Down Action in LIST UIBB | TECHSAP


------------------------------------------------------------------------------------------------------------------

FPM- Can we control the right click menu?

$
0
0

Hi Experts,

 

    Is this possible? I have a requirement to hide all options on right click, especially the "Technical Help" as we do not want the end user to be bothered by it. IS this possible? Any help is appreciated.

 

Regards,

Suhas

Hide right click options on FPM

$
0
0

Hi experts,

 

     I have a strange requirement. I am not sure if any one of you have had this before. I need to hide the default options that are available on right click in FPM. Any idea how to do it?

 

Regards,

Suhas

Plausibility Check for Fields in FPM

$
0
0

Hi Experts,

 

When I add a fixed value list to a field, there is an automatic plausibility check, if the entered value is in the fixed value list. If the value is not in the list, an error message appears and the the field is highlighted red. You have to enter a valid value or delete the value before the message dissapears and the field color returns to white.

 

Now my question. Is there a possibility to implement such a check manually? I know the Methods in the Feeder-Class and I know how to implement an error message. But can I highlight the checked field (I know I can use collors for every field, but i don't want to implement a "collor handling" for every single field in my application) and can I check in Flush method or an other method if there are highlighted fields that have to be checked?

 

Thanks and regards,

Sebastian 

SAP EHSM FPM Development help

$
0
0

HI Guys

I have a requirement to set the radio button(Restricted access to) to yes position in Person injured tab if another input field has a specific value & I am writing the logic in get_data method post exit  and updating the node (personal involved) but this is not working for me i have to press save again to save the data ,in first save it juts changed the value at input screen but not at database level .if I used an event like FBI_DEFAULT that is assigned to radio button itself and setting the value of this at run time ,the value got set at F4 after selecting the value but got dump at save this happen for those people which does not have confendential access.

Error creating FPM :Dynamic type conflict during the assignment of references.

$
0
0

Hi experts

I created a Z aplication and i tried put a standard UIBB /SCMTMS/WDCC_FWM_AIR_ROOTLOC

in this application. please see the image below.

2.png

 

When i execute it then occurred this error :

1.png

Why happened this error?

How to solve it?

I tried create a copy but the same error ocurred.

Navigation between Main Page and Edit Page(vice-versa) in OVP Application

$
0
0

In an OVP application, multiple pages of different types can be created and navigation can happen by raising CONTENT CHANGE event and calling the appropriate PAGE ID of the target page. FPM also make allows us to integrate a default edit page and default detailed page to a main page and by raising just an standard event these pages can be called. This post helps to show navigation from main page to default edit page and vice versa.

The main page displays a form UIBB of the flight table SPFLI fields. The feeder class details

1.png

2.png

3.png

4.png

Create an OVP application configuration.

5.png

The page is now a MIAN page. Provide page title. Add a form uibb and create a form uibb configuration with the above feeder class.

6.png

7.png

Add few fields. Make some fields as input field. Save and test the application.

9.png

Test the application and here we have the MAIN page with flight information. As the demo tries to show the navigation between main page and edit page ,lets make these fields as read only field in the main page and will show these as edit fields in EDIT page.

10.png

Put the below code in the GET_DATA method of the feeder class to make the input fields as read only fields in the main page.

11.png

Test the application again. now the input fields becomes read only on the main page. Now we have to create a button to navigate to the edit page and also have to create an edit page and link to the main page.

12.png

Go to the toolbar schema.

13.png

Add a toolbar element.

14.png

Add a button.

15.png

provide the button text and make sure the event id should be as ‘FPM_CALL_DEFAULT_EDIT_PAGE’ Save the configuration.

16.png

Test the application and now we have a button as Edit page on the Main Page to call the Edit page. Click the button.

17.png

We receive the error as the edit page is not yet created and also not yet assigned to the Main page.

18.png

Now we are creating the edit page with the same form uibb configuration as on the main page. So create an edit page .

19.png

Provide edit page title and choose a form component.

20.png

provide the same form uibb configuration as in the main page.

21.png

Now select the main page and in the default edit page provide the edit page id and save the configuration.

22.png

Test the application again. Click on the Edit Page button to call the edit page.

23.png

So here we have the edit page displayed . So here the standard FPM handles the content area change process. Now we have to make the fields as editable on the edit page. So as we are suing the same form uibb configuration in the edit page.

24.png

In the feeder class GET_DATA, for the event : FPM_CALL_DEFAULT_EDIT_PAGE add the below code to make the fields as input enabled.

25.png

Test the application.

23.png

So the fields appear as input enabled in EDIT page. Now here we have to put a button to go back to the main page.

26.png

Create a button on the edit page form uibb toolbar.

27.png

Provide the event id of the button as ‘FPM_BACK_TO_MAIN’ Save the configuration.

28.png

Test the application.

29.png

Click on the Main page button on the edit page and automatically it will go back to the main page.

30.png

So here we are on the main page.

31.png




How to Create, Enhance, and Adapt Floorplan Manager Applications on SAP NetWeaver 7.50

$
0
0

Since Business Suite 7 Innovations 2010, many UIs provided by SAP are built using Floorplan Manager for Web Dynpro ABAP. These UIs are very flexible and easy to adapt to the needs of individual customers. This document presents an overview of the different options that Floorplan Manager provides for customer adaptations and discusses their advantages and drawbacks. Besides the well-known adaptation techniques (i.e. Configuration, Enhancement, CBA, Customizing, Personalization) we introduce a new opportunity: SAP Screen Personas 3.0.

 

View this Document

Enable reference problem

$
0
0

Hi to all,

 

I'm trying to enable/disable a field depending on to another field (if field 'A' is null, field 'B' is disabled and vice versa). I have completed enable_ref attribute on GET_DEFINITION method of my UIBB form and it works at beginning but when I fill field 'A', field 'B' is enabled but without matchcode.

I have tried it changing disable attribute and other similar ones but I haven't gotten lucky to find a solution for this problem. Any suggestion / comment will be appreciated

 

Thanks in advance and best regards.

Reusing attachment wrapper in FPM

$
0
0

Sometimes application needs to upload some kinds of document( attachment ) from the user desktop and store in sap data base or in content server.

The below post shows how we can reuse the FPM_ATTACHMENT_WRAPPER component to upload any document. Once we receive the source place i.e URl then the document content can be uploaded by the standard frontend service methods or GUI_UPLOAD FM technique and then it can be stored any where as desired.

 

FPM_ATTACHMENT_WRAPPER  component provides either ECM ( Enterprise Content Management ) or KPro( knowledge Provider ) storage types to store the document  but the post doesn't speak in detail about the storage types but just tells how FPM_ATTACHMENT_WRAPPER component can be sued to just reuse the ATTACHMENT WINDOW. Currently FPM_ATTACHMENT_WRAPPER provided in the list uibbs.



On the list uibb we have a button called Attachment.

1.png

When user clicks on the attachment button a upload browsing pop up appears by FPM_ATTACHMENT_WRAPPER component.


2.png


User can browse and select a doc and provide a document name and on click ok the document content can be uploaded and stored as per required.

3.png

4.png

The feeder class for the list uibb.

5.png


6.png

7.png

Create an event for the button.

8.png

9.png

Create an ovp application configuration.

10.png

Select free style uibb  and provide component name as FPM_ATTACHMENT_WRAPPER and create a configuration.

11.png


Create a list uibb configuration.

12.png


Here the storage type as ECM - Enterprise Content Management or KPro- Knowledge Provider.


13.png


List UIBB configuration.

14.png

15.png



16.png


In the process event of the feeder class the below logic should be added to open the attachment upload pop up.



17.png


Test the application and on click on the button the pop up appears.



18.png

Now when the ok button is selected we should be able to read the document content from the address. So put the below code.

19.png

20.png

 

When OK button is pressed . The event parameter gives the details.


21.png


22.png



23.png


24.png



So here we have the file name URL and then by the forntend service method call we can read/upload the content and stores in ECM or Kpro.

25.png



Export to Excel : Search UIBB

$
0
0

Is there a way to download Search Result into Excel on click of button programmatically .

As per SDN , we can use "Analytical List" for it , but my requirement is to keep search result same as of now . Only add new button ,which will download Excel .

GRC SAP

$
0
0

Hi All,

 

I am new to FPM and have a requirement in GRC System.

In the NWBC t-code, we have a tab RULE SETUP, where we have an option to add Business rules. In any Business rule we can add multiple filters in Filter Criteria.

The requirement is to create a custom program to update all the filters using an excel sheet, so that user does not have to add filters manually again and again when the number filters become huge.

 

One approach was to update the table where all the filters are stored but i have not been able to find that sort of table.

Any pointers to achieve this functionality are appreciated.

 

Thanks

Jitender

Viewing all 839 articles
Browse latest View live


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