SAP ABAP IMG Activity N1_PERFORM_SRV_SAVE (BAdI when Performing/Releasing Services - Before Commit)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       NORD (Package) R/3MED: Services processing EDV-G
IMG Activity
ID N1_PERFORM_SRV_SAVE BAdI when Performing/Releasing Services - Before Commit  
Transaction Code S_KK4_98000141   (empty) 
Created on 20040107    
Customizing Attributes N1_PERFORM_SRV_SAVE   BAdI when Performing/Releasing Services - Before Commit 
Customizing Activity N1_PERFORM_SRV_SAVE   BAdI when Performing/Releasing Services - Before Commit 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name N1_PERFORM_SRV_SAVE    

Use

You can use this BADI to update your own data when performing or releasing services or creating services with the 'performed' or 'released' status. The BADI transfers the medical data for the service (i.e. the data records NLEI and NLEM), as well as the connection records between the services (table NLLZ).

You should note that the system will transfer performed, released and new services with this status to the BAdI. If. therefore, you only wish to create additional data (i.e. additional services for billing, etc.) for released services, then you must query the status of the services in the BAdI. You can find this status in the LSSTAE field of the NLEM table.

If you use this BAdI, you must adhere to the following rules:

Under NO circumstances should you perform a COMMIT WORK or a ROLLBACK WORK.

You can only execute an update task asynchronously (i.e. with the "IN UPDATE TASK" addition).

You cannot produce a dialog box (e.g. CALL SCREEN, etc.) in this BAdI.

This BAdI is NOT suitable for checks which should prevent the performance/release of services! You should use the BAdI N1_PERFORM_SRV_CHECK for this.

You cannot display your own messages in this BAdI. You should use the C_ERRORHANDLER parameter for this.

If you do not follow these rules you may cause serious data errors when performing/releasing!

Requirements

Standard settings

The BAdI is not activfe as standard.

The BAdI cannot be used multiple times.

The BAdI is filter-dependent. The filter type is the data element ISH_COUNTRY (country version of IS-H).

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

To check the service status you should proceed as follows:

You will find the service status in the NLEM-LSSTAE field. However, this field contains the external, i.e. customer-specific status, which you cannot query. To determine the internal status, which you can query, you must read the table N1LSSTA with NLEM-LSSTAE.

Example:

SELECT SINGLE * FROM N1LSSTA

WHERE EINRI = NLEM-EINRI

AND LSSTAE = NLEM-LSSTAE.

In the N1LSSTA-LSSTA field you will then see the abbreviation of the internal service status. You can see the values possible in the field's domain (e.g. the abbreviation of the service status "Released" = QU).

See also

Methods: EXIT_PERFORM_SAVE

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-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 N1_PERFORM_SRV_SAVE 0 I010004302 Service Management 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20040107 
SAP Release Created in 472