SAP ABAP IMG Activity HRAS_HRASR00FSCNGS (Process Form Scenario for Generic Services)
Hierarchy
EA-HRGXX (Software Component) Sub component EA-HRGXX of EA-HR
   PA-AS (Application Component) HR Administrative Services
     PAOC_ASR_PROCESS_MODELLING (Package) Modeling Processes
IMG Activity
ID HRAS_HRASR00FSCNGS Process Form Scenario for Generic Services  
Transaction Code S_AEN_10000685   (empty) 
Created on 20050317    
Customizing Attributes HRAS_HRASR00FSCNGS   Process Form Scenario for Generic Services 
Customizing Activity HRAS_HRASR00FSCNGS   Process Form Scenario for Generic Services 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRAS_HRASR00FSCNGS    

Use

In this IMG activity, you configure the generic services for your form scenario.

Requirements

You have created a form scenario in the Create Form Scenario IMG activity and have declared a generic service for it. You have assigned form fields to the generic service that you want to be processed by that service. You have previously defined and implemented the generic service.

You do this in the following IMG activities:

Activities

You perform the following Customizing steps:

  • Define field groups and operations
  • Define assignment of form fields to fields of the generic service
  • Define default values for form fields
  • Activate input helps for form fields

Detailed information about the individual steps follows.

Define field groups and operations

You can use generic services to perform operations or to provide default values and input helps. In this step you define the field groups that you want to use for operations or default values and input helps. A field group may have any name. However, if you use the field group for an operation we recommend that you choose a name that refers to the operation used.

Default values and input helps

You can provide default values and input helps for fields without defining an operation for them. The prerequisite is that the field is assigned to a field group. If the default value or input help for the field is dependent on other fields of the generic service, these fields must be assigned to the same field group as the field for which you want to provide the default value or input help. The generic service must also provide all field information by implementing the BAdI method GET_FIELD_INFO

Operations

Each generic service can be implemented so that it supports any fixed number of operations. The generic service must publish the list of all the operations it supports in the BAdI method GET_OPERATIONS. In addition, it specifies the parameters required for each of the operations.

If you use a generic service, you can configure the form by selecting the operations of the generic service that you want to use and connecting the form fields to the parameters/fields of the operation. To enable an operation in a form scenario to be reused, an indirect assignment using field groups is used. This means that the form fields are linked to the field groups that reference operations, and are not linked directly to the operations. More than one field group can reference the same operation. You define the field groups in a form scenario by linking them to an operation.

Activities

  1. Enter the name of the form scenario in the Determine Work Area: Entry dialog box.
  2. Select the version that you want to edit.

    Note that the version 0 is output as initial here and therefore appears as a blank.

  3. Choose Operations in the dialog structure.
  4. Choose New Entries.
  5. Enter the name of the generic service that you want to use.
  6. Enter a name for the field group.
  7. If the generic service supports operations and you want to use them, enter the name of the operation. Use the input help to display a list of all of the operations of the generic service.
  8. Save your entries.

Note about assigning rules

If you want an operation to be executed only in particular circumstances, you assign a rule to it. You must have previously defined the rule in the form scenario. You must have assigned all form fields that you use in the rule to the generic service. The assigned operation is executed only if the rule - based on the values of the form fields used - has the value "true."

Define assignment of form fields to fields of the generic service

Activities

  1. Choose Assignment of Fields in the dialog structure.
  2. Choose New Entries.
  3. Enter the name of the generic service that you want to use.
  4. Enter the name of the form field that you want to assign.
  5. Enter 1 as the number. If you want to assign the same form field more than once, enter successive increments of the value.
  6. Enter the field group to which you want to assign the form field. If the generic service supports operations, the name of the field group corresponds to the generic service operation (see the recommendation in the "Define Field Groups and Operations" section).
  7. Enter the field name of the generic service to which you want to link the form field. Use the input help to display a list of all of the parameters of the generic service.
  8. Repeat the above steps until you have linked all fields of the operations used to form fields.
  9. Save your entries.

Note

If you do not want the value of the form field to be included in the operation, set the Exclude from Operation indicator.

Define default values for form fields

Generic services can be used to fill form fields with default values.

Requirements

In the Form Scenario IMG activity, you must have set the Default Type Default Value of Specified Back-End Service for the form field and the sequence number of the generic service. If these prerequisites have been met, proceed as follows:

Activities

  1. Choose Assignment of Fields in the dialog structure.
  2. Select the form field.
  3. Select the default value from the dropdown list.
  4. Save your entries.

Activate input helps for form fields

Requirements

The generic service must be implemented in such a way as to provide input helps. For this, use the method GET_VALUE_HELPS. If you want to use the input helps, you have to have set for the form field the input help type of the specified back-end service and the sequence number of the generic service. You do so in the Create Form Scenario IMG activity. Alternatively, you may have set the input help type Input Help for All Linked Back-End Services. If these prerequisites have been met, proceed as follows:

Activities

  1. Choose Assignment of Fields in the dialog structure.
  2. Select the form field.
  3. Select the input help from the dropdown list.
  4. Save your entries.

Note about mandatory fields

A generic service can also have mandatory fields, as do the standard services, SAP_PA and SAP_PT. The generic service defines which fields are mandatory in the implementation of the GET_SPECIAL_FIELDS method.

These fields must be created in each form scenario used by the generic service with the name exactly as specified and with the data element specified. (You do so in the Create Form Scenario IMG activity.) They also have to be assigned to the generic service in the same activity.

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG HRAS_HRASR00FSCNGS 0 AEN0000011 HR Administrative Services 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
HRASR00FSCNGS C - View cluster SM34  
History
Last changed by/on SAP  20050616 
SAP Release Created in 600