Ansicht
Dokumentation

ISH_OPDC_PRINT - BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries

ISH_OPDC_PRINT - BAdI: Define Print Output for Selected Outpatient Clinic Folder Entries

General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

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.

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.

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.

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.





rdisp/max_wprun_time - Maximum work process run time   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4831 Date: 20240425 Time: 024830     sap01-206 ( 63 ms )