cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change of PLANT in Classic EHS

Former Member
0 Likes
385

Good day

We are using classic EHS.

At times the incorrect PLANT is used when capturing data, the user wants to be able to change the PLANT for an incident/accident log entry.

Currently the PLANT field is greyed out and we cannot change it.

Is there a way to change it?

Regards

Marieta

Accepted Solutions (1)

Accepted Solutions (1)

former_member198518
Participant
0 Likes

Hello Marieta,

There is no process in CBIH82 to change the plant of an incident/accident log entry. This is not supported by the standard functionality.

If a user has entered a wrong plant by mistake you can use the Z-Report below to update the plant. But please bare in mind that this may affect already assigned objects to the incident/accident log like functional location.

*&---------------------------------------------------------*
*& Report  Z_UPDATE_PLANT_FOR_IAID
*&
*&---------------------------------------------------------*
  REPORT  z_update_plant_for_iaid.

*&---------------------------------------------------------*
  SELECTION-SCREEN BEGIN OF BLOCK input_parameters.
    PARAMETERS ialid  TYPE ccihe_ialid VALUE CHECK.
    PARAMETERS plant TYPE ccihe_iaplant.
  SELECTION-SCREEN END OF BLOCK input_parameters.
*&---------------------------------------------------------*
  START-OF-SELECTION.
*&---------------------------------------------------------*

  UPDATE cciht_ial SET iaplant = plant WHERE ialid = ialid.

  IF ( sy-subrc = 0 ).
    MESSAGE 'Update successful' TYPE 'S'.
  ELSE.
    MESSAGE 'Update not successful -> check IAID'
            TYPE 'I'
            DISPLAY LIKE 'E'.
  ENDIF.

  COMMIT WORK.
*&---------------------------------------------------------*
  END-OF-SELECTION.
*&---------------------------------------------------------*

Best Regards,

Camila Zilles

Former Member
0 Likes

Hi Camila, thanks for your reply, I have requested developer to create Z-report.  Will keep you posted on results.

Regards

Marieta


former_member198518
Participant
0 Likes

Hi Marieta,

Please let me know if the report helped.

Best Regards,

Camila Zilles

Former Member
0 Likes

Hi

Developer looked at code but was not keen to implement it because we are using Functional locations and interface to PM.

Regards

Marieta


Answers (0)