Ansicht
Dokumentation

RH_NOTE_COMMIT - HRMS: Note - Update (from Buffer to Database)

RH_NOTE_COMMIT - HRMS: Note - Update (from Buffer to Database)

Fill RESBD Structure from EBP Component Structure   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This module updates all notes changed with DIRECT_DB_CHANGE = SPACE. It then returns the number of records that were written to the database.

If you specify nothing for the INFOTYPE parameter, all of the notes changed up to this point are saved to the database.

The parameter COMMIT_FLAG controls whether the function module should generate a COMMIT WORK ('X' active is the default) or whether this is done by the calling program (SPACE).

Example

CALL FUNCTION "RH_NOTE_COMMIT"

EXPORTING

INFOTYPE = P1001

COMMIT_FLAG = 'X'

EXCEPTIONS

INTERNAL_ERROR = 1

ILLEGAL_INFOTYPE = 2

NOTE_NOT_FOUND = 3

NO_AUTHORITY = 4.

Notes

It is recommended that you always specify the parameter INFOTYPE to avoid notes from other programs being saved to the database.

If you call the function with COMMIT_FLAG = SPACE, you must ensure that a COMMIT WORK ends your program.

If you do not want to save the changes you have made, you must call the function module RH_NOTE_CANCEL since the changes will otherwise remain active.

If no note is allowed for the note (table T77NT), the exception ILLEGAL_INFOTYPE is generated.

The exception INTERNAL_ERROR is always generated in the event that an internal function call returns a technical error.

The exception NO_AUTHORITY is currently not supported.

Further information

For more information, refer to the function group documentation.





Parameters

COMMITTED_TEXT_COUNT
COMMIT_FLAG
INFOTYPE

Exceptions

ILLEGAL_INFOTYPE
INTERNAL_ERROR

Function Group

RHNT

Fill RESBD Structure from EBP Component Structure   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 2023 Date: 20240523 Time: 174253     sap01-206 ( 34 ms )