SAP Function RH_NOTE_ACTION - HRMS: Note - Display/Change/Create

Parameter Reference Type Length Default Optional Text
DIRECT_DB_CHANGE C C 0 SPACE X Direct database change (no buffering)
FCODE SYST-UCOMM C 70 'DISPLAY' X 'DISPLAY'= display; 'CHANGE'= change/create
INFOTYPE 0 Infotype for which note should be edited

Parameter Reference Length Optional Text
COLLECT_INFOTYPES 0 X Infotype tables for note transfer

Exception Text
ILLEGAL_INFOTYPE Note is not allowed for this infotype
INTERNAL_ERROR System error
NOTE_LOCKED Note locked by another user
NOTE_NOT_CREATED No note was created
NOTE_NOT_FOUND Note could not be found
NO_AUTHORITY Note is not allowed for this relationship
WRONG_FCODE Invalid value in parameter FCODE

Functionality
This module displays an existing note in either display or change mode.The FCODE parameter controls the mode.
If the FCODE parameter contains the value 'DISPLAY', the note isdisplayed. (Internally, the moduleRH_NOTE_DISPLAY is called.) If the FCODEparameter contains the value 'CHANGE', an existing note is changed(using RH_NOTE_EDIT
), otherwise a note is created (usingRH_NOTE_INSERT).
If you want changes to be immediately effective in the database, youselect the parameter DIRECT_DB_CHANGE (enter X in the checkbox).
You can specify infotypes whose notes (where available) take precedenceover the new note in table COLLECT_INFOTYPES.

Example
CALL FUNCTION "RH_NOTE_ACTION"
EXPORTING
INFOTYPE = P1001
FCODE = 'DISPLAY'
EXCEPTIONS
INTERNAL_ERROR = 1
ILLEGAL_INFOTYPE = 2
NOTE_NOT_FOUND = 3
NOTE_NOT_CREATED = 4
NO_AUTHORITY = 5
WRONG_FCODE = 6.

Notes
Do not change the parameter DIRECT_DB_CHANGE = SPACE.
If a value other than 'DISPLAY' or 'CHANGE' is transferred in FCODE,the exception WRONG_FCODE is generated.
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 .