Ansicht
Dokumentation

ISH_WP_VIEW_TITLE - BAdI: Change View Title in Clinical Work Station

ISH_WP_VIEW_TITLE - BAdI: Change View Title in Clinical Work Station

rdisp/max_wprun_time - Maximum work process run time   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

The Business Add-In (BAdI) IS-H: Change View Title in Clinical Work Station (ISH_WP_VIEW_TITLE) allows you to change the view title in the Clinical Work Station. The system calls the BAdI every time the view is called or the Clinical Work Station is refreshed.

For more information, see the

Importing Parameters

The importing interface consists of the view type, the selection criteria, the view list tables (for example, occupancy list) and the context:

  • I_VIEW_TYPE (IS-H/Ii.s.h.med:View Type)
You can change the title for each view type. The ID of the view that is currently active is passed to the BAdI in the parameter I_VIEW_TYPE. The view types are as follows:
  • 001 - Occupancy

  • 002 - Arrivals

  • 003 - Departures

  • 004 - Requests

  • 005 - Transport Orders

  • 006 - Documents

  • 007 - Outpatient Clinic/Service Facility

  • 008 - Coding Analyses

  • 009 - Occupancy Characteristic

  • 010 - Preregistrations

  • IT_SELECTION_CRITERIA (ABAP: General Structure for Parameters and Select Options)
The selection criteria contain the view's selection parameters.
  • Table parameters: IT_VIEW_LIST_1, IT_VIEW_LIST_2, IT_VIEW_LIST_3
When the BAdI method is called in the occupancy, arrivals or departures view, the table parameters (IT_VIEW_LIST_1, IT_VIEW_LIST_2 and IT_VIEW_LIST_3) contain the occupancy, arrivals and departures list tables respectively. When the BAdI is called from other views, the first table parameter (IT_VIEW_LIST_1) contains the table data for this view. The other two table parameters remain empty. These parameters are loaded with the data from the table of the view that is displayed in the Clinical Work Station.
Example: The occupancy view is displayed when you first enter the Clinical Work Station. The system populates the table parameter (IT_VIEW_LIST_1) with the data from the occupancy view table. The BAdI implementation could check the view type (in the parameter I_VIEW_TYPE) and then display the number of cases in the view title.
The three BAdI method view list table parameters are declared as type ANY, since the type varies in relation to the view type from which the BAdI is called. The FORM routines that call the BAdI method pass these parameters as tables with rows defined with reference to a structure. The view types and their corresponding tables and structures are show below. To manipulate the table data, use a local parameter of the table type for the corresponding view type (see table below). If you need a work area, declare a local variable with a corresponding structure type (see table below).
The following sample code of the BAdI implementation illustrates this.

METHOD if_ex_ish_wp_view_title~modify_title.
* ...
DATA: l_view_type TYPE nviewtype,
       t_sel_crit TYPE ishmed_t_rsparams,
       t_view_list_occ TYPE ish_t_occupancy_list,
       t_view_list_arr TYPE ish_t_arrival_list,
       t_view_list_dep TYPE ish_t_departure_list,
       t_view_list_ocp TYPE ish_t_occplanning_list,
       t_view_list_mco TYPE ish_t_medcontrol_list
       t_ish_objects TYPE ISH_T_DRAG_DROP_DATA,
       l_title TYPE lvc_title,
       s_occupancy TYPE rnwp_occupancy_list,
       l_count(4) TYPE c,
       l_test_count_1 TYPE i,
       l_test_count_2(4) TYPE c.

l_view_type = i_view_type.
t_sel_crit = it_selection_criteria.
t_ish_objects = it_ish_objects.
l_title = i_title.

*change view title
CASE i_view_type.
   WHEN '001'.
     t_view_list_occ = it_view_list_1.
     DESCRIBE TABLE t_view_list_occ LINES l_count.

     LOOP AT t_view_list_occ INTO s_occupancy.
       l_test_count_1 = l_test_count_1 + 1.
       l_test_count_2 = l_test_count_2 + 1.
     ENDLOOP.

     CONCATENATE i_title l_test_count_2 'Rows'
       INTO i_title SEPERATED BY space.

   WHEN '002'.
     t_view_list_arr = it_view_list_2.
     DESCRIBE TABLE t_view_list_arr LINES l_count.
     CONCATENATE i_title l_count 'Rows'
       INTO i_title SEPERATED BY space.

   WHEN '003'.
     t_view_list_dep = it_view_list_3.
     DESCRIBE TABLE t_view_list_dep LINES l_count.
     CONCATENATE i_title l_count 'Rows'
       INTO i_title SEPERATED BY space.

   WHEN '008'.
     t_view_list_mco = it_view_list_1.
     DESCRIBE TABLE t_view_list_mco LINES l_count.
     CONCATENATE i_title 'and' l_count 'Rows'
       INTO i_title SEPERATED BY space.

   WHEN '009'.
     t_view_list_ocp = it_view_list_1.
     DESCRIBE TABLE t_view_list_ocp LINES l_count.
     CONCATENATE i_title l_count 'Rows'
       INTO i_title SEPERATED BY space.

  ENDCASE.

ENDMETHOD.

View Type Table Structure
001 Occupancy ISH_T_OCCUPANCY_LIST RNWP_OCCUPANCY_LIST
002 Arrivals ISH_T_ARRIVAL_LIST RNWP_ARRIVAL_LIST
003 Departures ISH_T_DEPARTURE_LIST RNWP_DEPARTURE_LIST
004 Requests ISHMED_T_REQUEST_LIST RN1WP_REQUEST_LIST
005 Transport Orders ISHMED_T_PTS_LIST RN1WPPTS_LIST
006 Documents ISH_N2_DOCUMENT_LIST RN2WP_DOCUMENT_LIST
007 Outpat. Clinic/ ISH_T_LSTSTELLE_LIST RN1WPV007_FIELDCAT
Service Facility
008 Coding ISH_T_MEDCONTROL_LIST RNWP_MEDCONTROL_LIST
Analyses
009 Occupancy Chrctrst ISH_T_OCCPLANNING_LIST RNWP_OCCPLANNING_LIST
010 Preregistrations ISH_T_PREREG_LIST RNWP_PREREG_LIST

  • IT_ISH_OBJECTS (IS-H: Object Data that Can Be Exchanged Using Drag&Drop)
The context comprises the data used to communicate between the main Clinical Work Station program and the individual view programs. The context supplies the manipulated objects (for example, case number, patient number).

Changing Parameters

The parameter I_TITLE contains the standard IS-H view title when it is passed to the BAdI. You can modify this title in the BAdI and return the modified title via the interface.

For more details on the view title parameters, refer to the data element ALV Control: Title Bar Text (LVC_TITLE).

Further Notes:

The view title can be up to 70 characters in length

BAdI Call:

The BAdI is called using the following FORM routines:

  • Occupancy: SET_VIEW_TITLE (function group N_WP_INP_MOVEMENTS)
  • Arrivals: SET_VIEW_TITLE (function group N_WP_INP_MOVEMENTS)
  • Departures: SET_VIEW_TITLE (function group N_WP_INP_MOVEMENTS)
  • Requests: SET_VIEW_TITLE (function group N1AU)
  • Transport Orders: SET_VIEW_TITLE (function group N1_WP_PTS)
  • Documents: SET_LAYOUT_DOCULIST1 (function group N2WP006)
  • Outpat. Clinic/Svce Facility: SET_VIEW_TITLE (function group N1LSTAMB)
  • Coding Analyses: SET_VIEW_TITLE (function group N_WP_008)
  • Occupancy Characteristic: SET_VIEW_TITLE (function group N_WP_009)
  • Preregistrations: SET_VIEW_TITLE (function group N_WP_010)
ISH_T_PREREG_LIST

ISH_T_PREREG_LIST

ISH_T_PREREG_LIST

You have to implement the BAdI. To do this, proceed as follows:

  1. Perform the IMG activity IS-H: Change View Title in Clinical Work Station, and create an implementation of the BAdI in the customer namespace.
This implementation does not yet have any program code for the method.
  1. The interface of your implementation contains the method MODIFY_TITLE. Double-clicking on the method takes you into the code editor, where you can put your own code that satisfies your particular requirements.
  2. Once you have completed your modifications, you still have to activate the implementation so that these modifications can also be executed by the application programs.
Note that only one implementation can be active at a time.
ISH_T_PREREG_LIST




PERFORM Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 12022 Date: 20240419 Time: 114226     sap01-206 ( 95 ms )