SAP ABAP IMG Activity ISH_OPDC_PRINT (BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries)
Hierarchy
IS-H (Software Component) SAP Healthcare
   IS-H (Application Component) SAP Healthcare - Industry-Specific Components for Hospitals
     N_OUTPATIENT (Package) IS-H: SAP Ambulatory Care Management
IMG Activity
ID ISH_OPDC_PRINT BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries  
Transaction Code S_PNI_98000264   (empty) 
Created on 20050616    
Customizing Attributes ISH_OPDC_PRINT   BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries 
Customizing Activity ISH_OPDC_PRINT   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 ISH_OPDC_PRINT    

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 calls the standard print formatting with Smart Forms. The standard print formatting first searches for the Smart FORM Z3OPDCHART. If the Z3OPDCHART form does not exist, the system uses the sample form N3OPDCHART.

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, 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. The method is called for each outpatient clinic folder entry selected.

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. 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 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG ISH_OPDC_PRINT 0 ANI0000001 SAP Ambulatory Care Management 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20061120 
SAP Release Created in 600