0% found this document useful (0 votes)
642 views

Web UI Questions

The document discusses various aspects of developing web UIs for SAP CRM, including: 1. The MVC architecture forms the presentation layer, with the view handling output, controller managing logic/linking view and model, and model consisting of contexts/nodes linking view fields to the business layer. 2. Data binding refers to linking fields in the view to the business object layer via contexts and context nodes in the model. 3. New fields can be added to web UIs using tools like EEWB and AET, which update tables and entities, then made visible via UI configuration.

Uploaded by

satish_gadiraju
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
642 views

Web UI Questions

The document discusses various aspects of developing web UIs for SAP CRM, including: 1. The MVC architecture forms the presentation layer, with the view handling output, controller managing logic/linking view and model, and model consisting of contexts/nodes linking view fields to the business layer. 2. Data binding refers to linking fields in the view to the business object layer via contexts and context nodes in the model. 3. New fields can be added to web UIs using tools like EEWB and AET, which update tables and entities, then made visible via UI configuration.

Uploaded by

satish_gadiraju
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Web UI Questions:

1. Explain MVC architecture:

Presentation layer of Web UI application is based on MVC architecture.

MVC stands for Model View Controller.

 View
The view handles the visual output. It is responsible for rendering the output and relevant UI
controls, such as data fields and push buttons. All output is received from the controller for
rendering. All user input is passed from the view back to the controller for processing.
 Controller
The controller handles the interaction logic and provides the link between a view and a model of a
MVC application. A controller receives all keyboard and mouse input from the view. Based on
these events, the controller can decide how to react, for example, by accessing data from the
model or triggering the navigation to a different view
 Model
The model of the IC WebClient BSPs consists of contexts and context nodes that link the fields of
a view to the underlying business layer (the BOL). This linking is referred to as binding.
Each data field on a view visualizes an attribute of a context node.

2. What is data binding

Model of BSP page contains context and context nodes which will link the fields in the View to
BOL layer. This linking is called data binding.

3. How to add new fields in Web UI

We have two tools, EEWB and AET (Available in SAP CRM 7.0 only).

Based on the Business object(Sales Transaction/Service transaction) and Subobject(Order


header-ORDERADM_H/ Item level-ORDERADM_I) we can add fields using these tools. Once the
fields are added using the EEWB/AET all the corresponding tables, structures and BOL entities
will be appended with new fields.

Using UI Configuration tool in component workbench we can make these fields visible in Web UI.

4. How to create new views/assignment blocks

In Transaction BSP_WD_CMPWB, open any component, enhance the component, and right click
on the Context 'Views' and create view using the Standard BOL entity(model node), or value
nodes. Using the UI configuration makes the fields available. Once the view is created, we can
assign it to main Window or Overview page in runtime repository. Then the new assignment block
will be available.

5. Steps for creating new component and make it available in Web UI (Expert level)

 Transaction code: BSP_WD_CMPWB, enter the new component name and click on
create
 Give the name of the main Window
 Create views using BOL entities and make the fields visible using UI configuration
 Assign the views to main window in runtime repository
 Create Inbound plug for main Window.
 Go to SPRO-->Customer Relationship Management--> UI Framework--> Technical Role
Definition--> Define Work Area Component Repository, add new entry with Component
name and main window, create Target ID by maintaining Inbound definition with Inbound
plug name.
 Create a new logical link with new Target ID, add the logical link to existing Work center
or create new work center, add the work center to Navigation bar profile.
 Assign the navigation bar profile to Business role.

6. Steps to enhance search criteria with new fields

 Go the search component, Identify the underlying BOL entity, go to BOL entity structure
and append with new fields
 New fields will be available in UI configuration, move the new fields to visible fields
section.
 For all the Sales/Service transaction related searches will call the Badi enhancement spot
ES_CRM_RF_Q1O_SEARCH.
 Create a new implementation for this enhancement spot with filter value same as BOL
entity name,
 Write the logic in SEARCH method of implementation class.

7. What is the use of Custom controller

Custom controller is used to share the data between different views. Custom controller holds the
data for entire session.

8. How to create custom popup


We have several Popup types, confirmation popup, decision popup, window popup

Declare variable in implementation calls with ref to interface IF_BSP_WD_POPUP, write the logic
in event handler or method which is calling, and use the CREATE_POPUP of interface
IF_BSP_WD_WINDOW_MANAGER to create popup by passing required fields depending upon
the popup types.

9. How to create buttons and add events to them

Use the methods, GET_BUTTONS or DO_PREPARE_OUTPUT to add new buttons.

10. How to hide/display fields based the certain field values (Expert level)

Define two configurations for the view,


Write the logic in DO_CONFIG_DETERMINATION to call configuration.

11. How to use new components in standard components

Expose the context nodes and interface mainwindow in runtime repository of custom component
and define component usage in standard component usage.

12. How to set a default value to a field

Several ways of doing it, simple to use GET_V method

13. Business role configuration


Create logicals links, create work centers, assign to navigation bar and assign it to business role.

14. What is use of Transaction launcher and how to configure them


The transaction Launcher can be used to launch URLs and
BSPs / BOR transactions from same systems or other systems.
15. How to create a new BOL entity (Expert level)

You might also like