on ‎2014 Nov 12 4:42 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.