Professional Documents
Culture Documents
Page 1 of 6
Access: Internal
Address Book
Search SAP-wide
UI Creation
Added by Schwarze, Peter, last edited by Schwarze, Peter on Jun 30, 2009
This collection is a very simple example, which shows the creation of an FBI based UI for the BOPF object Supplier. Configure FBI Views on a BOPF BO Creating a FBI UI Integrating a generic UIBB (GUIBB) into an FBI based application Adding an additional BO node/FBI View: Integrating a freestyle/custom UIBB (CUIBB) into an FBI based application Creating the WD Component Create the WD View Layout Create the WD View Context Enabling the Integration to FBI Create the WD View Context Basic Context Definition Create the WD View Layout Interaction between UIBBs interaction in between 2 GUIBBs interaction in between 2 CUIBBs interaction in between a GUIBB and a CUIBB Integrating Flash/Flex and Silverlight Islands Flash Islands Business Objcts XCelsius Silverlight Islands Mashups and Web Service consumption Menu Definition Overview Concept Known Limitations/Restrictions Request a new entry in the menu Navigation to another Application Overview Links Concept Known Limitations/Restrictions Object based navigation Navigate to an OBN Target General aspects to consider Configuration in GUIBB/POWL Configuration in FPM IDR Related Links You can also Other links Development in a CUIBB Using an OBN Target Available OBN Targets Request a new OBN Target
Creating a FBI UI
Integrating a generic UIBB (GUIBB) into an FBI based application
1. Identify the BOPF object you want to create an UI for. In this case, the Supplier is used. 2. in CSM we have only one WD Application per floorplan, so we only create so called Application Configurations: 3. In SE80, create a WD Application configuration in the desired Package (e.g. a subpackage of BSCSM_UI_OIF) open the package BSCSM_UI_CMN and select the desired floorplan you want to build e.g. WDA_BSCSM_I_FPM_OIF Right-click the 'Application Cofigurations' folder and create your configuration (Browser pops up for that) and press 'Create' enter the correct package (e.g. a subpackage of BSCSM_UI_OIF) Save the application configuration. 4. Now you can navigate to the configuration from you package. to open it double click and press 'Start configurator' 5. Create configurations for OIF (Object Instance Floorplan) and if needed IDR (Identification Region) 6. Go into the configuration for the OIF 7. Drill down the main View into the UIBB 8. Insert FPM_FORM_UIBB in the field 'component' 9. Insert FORM_WINDOW in the field "View" 10. Insert a configuration name for the UIBB 11. Click on 'Configure UIBB'
https://wiki.wdf.sap.corp/wiki/display/CSM/UI+Creation
7/31/2013
Page 2 of 6
Insert /BOFU/CL_FBI_GUIBB_FEEDER as feeder class Edit Parameters Fill in either the view (eg. BSCSM_SMD_ROOT) which has been configured previously or enter the BO Name and the node name. Select the 'Top level View' checkbox. Click on form and insert Group Configure group and add the fields you need Click on 'Change->Global Settings' and enter '/BOFU/WDC_FBI_CONTROLLER' in the field 'Web Dynpro Component'. If you have already created an IDR configuration enter the name in the field 'Configuration name' Save, done!
to create a link to your application you have to copy the URL from your web dynpro application in the se80 and add the following parameter list: ?sap-client=600&sap-language=EN&sapwd-configId=<Your config ID here>&key=801CC4A687A81DEDBFD5439472E551E9&change_mode=U
Create the WD View Layout Create the WD View Context Enabling the Integration to FBI
1. Enter ZCL_CUIBB_ASSIST into the field 'Assistance Class' of the UIBB component. The Class ZCL_CUIBB_ASSIST will probably be replaced by an FBI class later on. 2. implement the method WDDOMODIFYVIEW in your View and add the following coding: method WDDOMODIFYVIEW . if first_time = abap_true. wd_assist->dispatch_pbo( ). endif. endmethod. 3. implement the method WDDOINIT of the View e.g.(may be a matter of change) METHOD wddoinit . DATA lo_api_componentcontroller TYPE REF TO if_wd_component. DATA lo_nd_form_parameters TYPE REF TO if_wd_context_node. DATA lo_el_form_parameters TYPE REF TO if_wd_context_element. DATA ls_form_parameters TYPE wd_this->element_form_parameters. DATA : lt_form_parameters TYPE zt_fbi_guibb_params_dt. DATA lo_nd_root TYPE REF TO if_wd_context_node. DATA lo_el_root TYPE REF TO if_wd_context_element. DATA lo_componentcontroller TYPE REF TO ig_componentcontroller . lo_componentcontroller = wd_this->get_componentcontroller_ctr( ). lo_api_componentcontroller = lo_componentcontroller->wd_get_api( ). * navigate from <CONTEXT> to <ROOT> via lead selection lo_nd_root = wd_context->get_child_node( name = wd_this->wdctx_root ). * navigate from <CONTEXT> to <FORM_PARAMETERS> via lead selection lo_nd_form_parameters = wd_context->get_child_node( name = wd_this->wdctx_form_parameters ). CALL METHOD lo_nd_form_parameters->get_static_attributes_table IMPORTING table = lt_form_parameters. CALL METHOD wd_assist->set_wd_instance EXPORTING i_comp = lo_api_componentcontroller it_form_parameters = lt_form_parameters i_context = lo_nd_root. CALL METHOD wd_assist->init_feeder EXPORTING iv_cardinality = '02'. CALL METHOD wd_assist->register_view EXPORTING iv_cardinality = '02'. ENDMETHOD. 4. change the following methods in your component controller: Method FLUSH Change delegate call to: wd_assist->dispatch_flush( ).
https://wiki.wdf.sap.corp/wiki/display/CSM/UI+Creation
7/31/2013
Page 3 of 6
IO_EVENT = io_event. PROCESS_EVENT delegate call to: CALL METHOD WD_ASSIST->DISPATCH_PROCESS_EVENT EXPORTING IO_EVENT = io_event. * IMPORTING * EV_RESULT = 5. Decide if you want the UIBB form or list based. 6. Add a custom Controller named 'CONFIG' and add a node FORM_PARAMETRS resp. LIST_PARAMETERS and provide the structure name /BOFU/S_FBI_GUIBB_PARAMS_DT as DDIC Structure 7. Right click on the custom controller and select '(Re)Set as Config controller', this is necessary to make the fields of FORM_PARAMETRS appear in the configuration of the component. 8. Now go to the component controller and add a controller usage where you pick the custom controller you just have created. 9. Afterwards you can drag the node FORM_PARAMETRS to the context of the component controller. 10. Open the context of the view and also add the node FORM_PARAMETRS via drag and drop. Add also a node called ROOT with the DDIC Structure BSCSM_S_SUP_ROOT and add the fields as attributes. 11. Go to the layout Tab and right click on the ROOTUIELEMENTCONTAINER, there you select 'create container Form' and press the 'context' button. Now you can select the desired fields. Make sure that also the binding for the text attribute of each field is set. 12. Add the view name of the component (use the Valuehelp). 13. Add the configuration Name of the component (also use the Valuehelp). 14. Configure the UIBB, click on the tab 'Component Defined', select 'formParameters' and enter the desired FBI View or BO and Node. 15. If you want, you can choose another layout type like 'Two Column Layout (50:50)' and change the column attribute of the UIBB accordingly. 16. Save.
Flash Islands
Business Objcts XCelsius
Silverlight Islands
Overview
https://wiki.wdf.sap.corp/wiki/display/CSM/UI+Creation
7/31/2013
Page 4 of 6
Concept
ACD: chapter 3.9 Navigation Frame
Known Limitations/Restrictions
n/a
Overview
For Navigation to another application Object based navigation(OBN) is used. This means that within the source application of the navigation not directly the WD Application is defined but an OBN target. At starting point the NWBC for HTML is used as navigation frame. As alternative the enterprice portal can be used.
Links
CSM Using NWBC for HTML as Navigation Frame: http://uxcise5.wdf.sap.corp:50015/sap/bc/nwbc/csm?sap-client=600&sap-user=stratpurch&sap-password=INIT69
Concept
ACD: chapter 3.9 Navigation Frame
Known Limitations/Restrictions
Navigation from a UIBB (CUIBB&GUIBB) Cross System Navigation (to SRM/ERP) Generate an Access URL (example Use case: User wants to have a add a direct link to a supplier to his browser favourites)
https://wiki.wdf.sap.corp/wiki/display/CSM/UI+Creation
7/31/2013
Page 5 of 6
Configuration in GUIBB/POWL
Within GUIBB/POWL you have the option to maintain the Launchpad entry keys (application alias) in a configuration step. 1. Start View Cluster Maintenance: SM54: /BOFU/VC_PBI_P / /BOFU/VC_FBI_V 2. Create new actionEnter the application alias of the target application e.g. SAP_CSM/SUPPLIER/DISPLAY 3. OPTIONAL: Supply Business Parameters Business Parameters are parameters which the target application requires to execute the business process, e.g. the key of an object. NEVER supply technical parameters e.g. the WD Configuration ID 3.1 Create new Parameter
Fields: Parameter: Key of the OBN Parameter Value: Value of the OBN Parameter; please notice that we differentiate betweeen static and dynamic parameters: 3.2.1 Static Parameters If there are business parameters which are always the same in this use case just enter the "hard coded" value into the field 'value'. 3.2.2 Dynamic Parameters But normally you don't know at design time the concrete value of a business parameter. In this case specify the component name within brackets in the field 'value'.
Related Links
The Related Links are grouped in one Report Launchpad specific to your application. So you need to create a launchpad in transaction LPD_CUST with Role = REL_LINKS ...UNDER CONSTRUCTION
Development in a CUIBB
TBD
https://wiki.wdf.sap.corp/wiki/display/CSM/UI+Creation
7/31/2013
Page 6 of 6
ATTENTION: Available Roles Main Roles: Strategic Purchaser Administrator Additional Roles Stakeholder Business Key User
https://portal.wdf.sap.corp/irj/go/km/docs/room_project2/cm_stores/documents/workspaces/202443c1-42d0-2b10-a294-9f2051468af3/40_Workstreams/10_Evaluation_%26_Productization/50_NavigationFrame
https://wiki.wdf.sap.corp/wiki/display/CSM/UI+Creation
7/31/2013