SAP Function RH_NOTE_RENAME - HRMS: Note - Rename (database only, no dialog)

Parameter Reference Type Length Default Optional Text
DIRECT_DB_CHANGE C C 0 SPACE X Direct database change (no buffering)
INFOTYPE_DESTINATION 0 Infotype for which note is to be created
INFOTYPE_SOURCE 0 Infotype for which note is to be read
NO_AUTHORITY_CHECK C C 0 SPACE X Do not execute authorization check

Exception Text
ILLEGAL_INFOTYPE Note is not allowed for this infotype
INTERNAL_ERROR System error
NOTE_LOCKED Note locked by another user
NO_AUTHORITY No authorization for this function

Functionality
This module lets you rename a note that exists on the database. If thetarget note already exists, it is deleted.

Example
CALL FUNCTION "RH_NOTE_RENAME"
EXPORTING
INFOTYPE_SOURCE = P1001_OLD
INFOTYPE_DESTINATION = P1001_NEW
DIRECT_DB_CHANGE = SPACE
NO_AUTHORITY_CHECK = SPACE
EXCEPTIONS
INTERNAL_ERROR = 1
ILLEGAL_INFOTYPE = 2
NOTE_NOT_FOUND = 3.

Notes
If no note is allowed for an infotype (table T77NT), the exceptionILLEGAL_INFOTYPE is generated. If no note exists for the infotype
specified, the exception NOTE_NOT_FOUND is generated.
The exception INTERNAL_ERROR is always returned if an internal functioncall returns a technical error.
The exception NO_AUTHORITY is generated if the user does not have therequired for an infotype. If you do not want this check to be made, youmust enter 'X' in the parameter NO_AUTHORITY_CHECK.'

Further information
For more information, refer to the documentation of thefunction group.