Entering content frame

Background documentation Customer-Defined Site Types for Other Components Locate the document in its SAP Library structure

If you want to use other components in the CRM environment, you have to carry out the following steps:

·        To maintain attribute values of customer-defined site types, interfaces in the form of ABAP function modules have to be defined. Function group SMOE_SITE_ATTRIBUTE can be used as an example. It contains the function modules listed below.  For more information see Creating Function Modules for Maintaining Site Attributes.

·        You have to define your own site types and their communication infrastructure in the form of a site provider.
To do this you have to implement a site provider in the client-independent table SMW1SPRVDR in the customer namespace and specify the function modules you created as the parameter values:

-          Site Type ID

This key must be unique as site attributes are dependent on the site type and are unique for sites of the same type.

-          Site Type

Enter an appropriate name for the site type.

-          Screen function

If you are using an attribute maintenance interface, then you must create a function module to call the maintenance screen.

Enter the name of your function module.
Example: SMOE_SITE_ATT_SCREEN.

-          Check function

If you are using an attribute maintenance screen, then you must create a function module to check values for site attributes.

Enter the name of your function module.
Example: SMOE_SITE_ATT_CHECK.

In this way, consistency checks are carried out for site attributes.

-          Read function

If you are using an attribute maintenance interface, then you must create a function module to read the site attributes.

Enter the name of your function module.
Example: SMOE_SITE_ATT_READ.

-          Backup function

If you want to define your own site attributes, then you must create a function module for saving your values.

Enter the name of your function module.
Example: SMOE_SITE_ATT_SAVE.
This function module must not execute any COMMIT WORK or ROLLBACK WORK.

-          Locking function

To change sites, you should create a lock function

Enter the name of your function module.
Example: SMOE_SITE_ATT_LOCK.

-          Init function

If you are using an attribute maintenance screen, then you must create a function module to initialize values for site attributes.

Enter the name of your function module.
Example: SMOE_SITE_ATT_INIT.

-          Backup function for Subscription Agents

If you are using subscription agents and you want to define your own site attributes, then you must create a function module for saving your values.

Enter the name of your function module.
Example: SMOE_SITE_ATT_GEN_SAVE.
This function module must not execute any COMMIT WORK or ROLLBACK WORK.

 

Remember that you must enter the new Site type as the consumer in table CRMCONSUM, if you want to perform an initial data transfer to sites of this type using the Adapter Framework.

You can now define sites for the new site type in the Administration Console or you can generate them using the subscription agent.

If you are using the Subscription Agent to create subscriptions and sites, then you must pay attention to the following points:

·         Select the corresponding Subscription agent used field in table view SMW1SPRVDR.

·         If you are not using attributes, then you do not need to perform any of the subsequent steps.

·         If you are not using an attribute maintenance interface, but you want to save attributes, then you must create a function module to save the attribute and enter its name in the corresponding field (Save function for subscription agent) in table view SMW1SPRVDR.

·         If you are using an attribute maintenance screen, then you must create a function module to call the maintenance screen (screen function) and another function module to check values for site attributes.

These two function modules must contain import parameter IT_ATTRIBUTES. The screen function module must also contain export parameter ET_ATTRIBUTES (see Creating Function Modules for Site Attribute Maintenance).

You must enter the names of these function modules in the corresponding fields (screen function / SCREENFUNC and check function / CHECKFUNC) in table view SMW1SPRVDR.

 

·          

 

 

 

Leaving content frame