SAP Function RH_NOTE_CANCEL - HRMS: Note - Cancel (Buffer Will Be Discarded)

Parameter Reference Type Length Default Optional Text
INFOTYPE 0 SPACE X Infotype for which note should be edited

Exception Text
ILLEGAL_INFOTYPE Note is not allowed for this infotype
INTERNAL_ERROR System error
NOTE_NOT_FOUND Note could not be found

Functionality
This module rejects changes to a note that are made by means of afunction call in Change mode with the parameter DIRECT_DB_CHANGE =SPACE.
If you specify nothing for the parameter INFOTYPE, all notes changed upto this point are rejected.

Example
CALL FUNCTION "RH_NOTE_CANCEL"
EXPORTING
INFOTYPE = P1001
EXCEPTIONS
INTERNAL_ERROR = 1
ILLEGAL_INFOTYPE = 2
NOTE_NOT_FOUND = 3
NO_AUTHORITY = 4.

Notes
You should always complete the parameter INFOTYPE so that notesfrom other programs are not inadvertently rejected.
If you want to transfer the changes made, you must call the functionmodule RH_NOTE_COMMIT. Otherwise, your changeswill be lost.
If no note is allowed for an infotype (table T77NT), the exceptionILLEGAL_INFOTYPE is generated. If no note exists for the infotypespecified, the exception NOTE_NOT_FOUND is returned.
The exception INTERNAL_ERROR is always returned when a technical erroris returned by an internal function call.
The exception NO_AUTHORITY is generated if the user does not have therequired authorization for the infotype. If you do not require thischeck, you must enter 'X' in the NO_AUTHORITY_CHECK parameter.

Further information
See also the Documentation of the function group .