SAP ABAP IMG Activity SIMG_ISHMED_OPD_04 (BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       NMED (Package) R/3MED: Medical documentation GSD
IMG Activity
ID SIMG_ISHMED_OPD_04 BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries  
Transaction Code S_KK4_96000704   (empty) 
Created on 20030113    
Customizing Attributes SIMG_ISHMED_OPD_04   BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries 
Customizing Activity SIMG_ISHMED_OPD_04   BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name ISHMED_OPD_04    

Use

You use this customer enhancement to define the print formatting for selected outpatient clinic folder entries. The reserved filter value is OPDCHARTPR.

The example below shows how to design the printout using Smart Forms.

Requirements

Standard settings

If no active implementation exists with the filter value OPDCHARTPR, the system will call the standard print formatting with Smart Forms. The standard print formatting will first search for the Smart Form Z3OPDCHART. If the Z3OPDCHART form does not exist, the sample form N3OPDCHART is used.

If you wish to design the print formatting based on the Smart Form N3OPDCHART yourself, you should proceed as follows.

  • You copy sample form N3OPDCHART to Z3OPDCHART.

    The form now contains the public form interface it_notes as well as the access methods to all available attributes of an outpatient clinic folder entry and to the corresponding progress document.

  • You design and test your layout.

Activities

If you wish to design the print formatting for specific applications, you implement a customer enhancement for the filter value OPDCHARTPR. The patient organizer calls this filter value when the printout is commissioned.

You implement as follows:

  • Create the customer enhancement for printing selected outpatient clinic folder entries.

    Perform the IMG activity Industry-Specific Component Clinical System -> IS-H*MED: Outpatient Clinic -> IS-H*MED: Outpatient Clinic Folder -> BAdI Define Print Output for Selected Outpatient Clinic Folder Entries.

    Select the filter value OPDCHARTPR from the filter value table, or enter it as a new value.

  • Declare the attributes and methods required in your customer enhancement.
  • Use the method IF_EX_ISHMED_VD_VIEW~INITIALIZE to initialize the class members.
  • With method IF_EX_ISHMED_VD_VIEW~ADD_NOTE you supply the outpatient clinic folder entries for printing.
  • Implement the print output call in the method IF_EX_ISHMED_VD_VIEW~PRINT.
  • Test and activate the implementation.

Example

The following example shows the print formatting of selected outpatient clinic folder entries with Smart Forms.

Copy the delivered Smart Form N3OPDCHART into the customer namespace. You design the layout and check the form.

  • Create the customer enhancement Z_OPD_PRINTVIEW with the filter value OPDCHARTPR.
  • In the generated BAdI class, you declare the reference table t_notes as a private attribute. You should use the N2VD_NOTE_REFTABLE type which is compatible with the it_notes form interface. The table t_notes supplies the references of the outpatient clinic folder entries to be printed to the form interface it_notes
  • Initialize the reference table t_notes.

METHOD if_ex_ishmed_vd_view~initialize. 
REFRESH t_notes. " Init members
ENDMETHOD.

  • Collect the references to the outpatient clinic folder entries to be printed

METHOD if_ex_ishmed_vd_view~add_note . 
APPEND note TO t_notes. "Collect note references
ENDMETHOD.

Determine the generated Smart Form print module with the function module SSF_FUNCTION_MODULE_NAME and transfer the form names which you use.

Call the determined print module. Supply the form interface.

CALL FUNCTION printmodule 
EXPORTING
user_settings = 'X'
TABLES
it_notes = t_notes
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.

  • Test and activate the generated BAdI class and activate the customer enhancement Z_OPD_PRINTVIEW.

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  20040225 
SAP Release Created in 471