SAP ABAP IMG Activity BADI: ISH_PROC_SORT (BAdI: Sort Procedures Prior to First Send)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       NPAS (Package) Application development patient accounting system
IMG Activity
ID BADI: ISH_PROC_SORT BAdI: Sort Procedures Prior to First Send  
Transaction Code S_KK4_96000664   (empty) 
Created on 20021001    
Customizing Attributes BADI: ISH_PROC_SORT   BAdI: Sort Procedures Prior to First Send 
Customizing Activity BADI: ISH_PROC_SORT   BAdI: Sort Procedures Prior to First Send 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name ISH_PROCEDURE_SORT    

Use

This Business Add-In (BAdI) lets you determine the sort sequence of the procedures that exist for a case when case-related or movement-related procedure processing is called in the following transactions:

  • NP37        Create Surgery
  • NP38        Change Surgery
  • NP47        Maintain Case-Related Procedures
  • NP48        Display Case-Related Procedures
  • NPDRG2    Maintain DRG Data
  • NPDRG1    Display DRG Data

This exit is called before the procedure screen is sent for the first time, so that you can influence the sort sequence of the procedures read from the database.

You should not issue error messages, warnings or information messages from this BAdI. This would cause an ABAP short dump in the transaction.

Similarly, you should not make changes to field contents. Such changes are ignored.

All of the fields in the table I_NICP are available to you for the sort sequence. You can sort in ascending or descending order.
You may wish to use a different sort sequence depending on the callpoint (current transaction). The parameter I_TCODE is available to you for this purpose. You can use the transaction codes mentioned above (e.g. NP38) here.

Requirements

Standard settings

Activities

Example

By implementing this BAdI and creating your own source code, you can, for example, sort by important surgical procedure codes in transaction NP47, so that these are displayed at the top of the list (e.g. all 5-* and 8-* codes first).
In the transaction for maintaining DRG data, you can sort by DRG category (principal procedure or secondary procedure) or according to the DRG sequence number (DRG_SEQNO) you have assigned.
In the transaction for maintaining surgical data, you can display the main code at the top of the list.

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 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20021001 
SAP Release Created in 471