cancel
Showing results for 
Search instead for 
Did you mean: 

Why do we need add model object in webUI?

former_member188321
Contributor
0 Kudos

Hi,

Why do we  need add model object (Component set) in runtime repository editor of webUI? For example, when we create a list component.

Can someone explain the purpose of it?

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Damandeep.

In simple words the model determines Which field in UI correspond to which field in DB,data is stored in model,the bo involved or general structure of UI fields or the UI corresponding to DB fields;no extra coding for field

If this is not specified in the runtime repository you will not find any fields for configuration of the view.

i.e the avaible fields option will be blank:)

In general we give Model as ALL.

Regards,

Reshma Rao

Former Member
0 Kudos

Hello Damandeep ,

     We Generally add Model 'ALL' to the Model in the runtime repository of UI component. 'ALL' is a component set which contains all the components present in your CRM system.

It is always adviced to create your own component set and add only those components which you are in need for your UI component. Its an overhead for your UI component to load all the components if you are adding component set 'ALL'.

By adding the component set you are making available the following things to your UI Component.

1) Attributes  to add in the configration (Attribute structure).

2) In SPRO during creating your component, You specify an Implementation class. Now these IMPL classes are also available to you.

EX : Take an example of BP search.

When you click on the Search button, it automatically hits the correct implementation class - Get_Dynamic_query result . This is happening because your Model , I.E your component set has the Component - inturn for that component you have maintained the IMPL class in SPRO. Now you only take the instance of CL_CRM_BOL_CORE and call the dynamic query with the dynamic query name. It hits the proper Implementation class - method.

Thanks and Regards,

Nikhil Kulkarni

Former Member
0 Kudos

Hi,

Each component set defines a set of GenIL components, each providing specific business

objects with root objects dependent objects and related queries. GenIL component sets and GenIL

components are defined in Customizing for Customer Relationship Management under CRM

Cross-Application Components

     Generic Interaction Layer/Object Layer    Basic Settings.

Components of the GenIL are implemented ABAP classes. In order to find out which business objects and attributes, which relations, dependant objects, queries and further services are provided by a component or component set, you may use the so called Model Browser (transaction GENIL_MODEL_BROWSER).

hope its helpful.

Regards.

vishwanatha.