Ansicht
Dokumentation
BAPI_CASE_ADDNOTES - Case: Insert Note
PERFORM Short Reference General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
This BAPI method is used to insert new notes into an existing case.
Example
* Fill the table with case note ids
wa_case_note_id-ELEM_NO = 1.
wa_case_note_id-TDID = '0001'.
APPEND wa_case_note_id TO case_notes_ids.
wa_case_note_id-ELEM_NO = 2.
wa_case_note_id-TDID = '0002'.
APPEND wa_case_note_id TO case_notes_ids.
* Fill the table with note texts
wa_case_note-ELEM_NO = 1.
wa_case_note-TDFORMAT = 'AS'.
wa_case_note-TDLINE = 'Just a simple note.'.
APPEND wa_case_note TO case_notes.
wa_case_note-TDFORMAT = '*'.
wa_case_note-TDLINE = 'Contains two lines.'.
APPEND wa_case_note TO case_notes.
wa_case_note-ELEM_NO = 2.
wa_case_note-TDFORMAT = '*'.
wa_case_note-TDLINE = 'Internal note'.
APPEND wa_case_note TO case_notes.
wa_case_note-TDFORMAT = ''.
wa_case_note-TDLINE = 'Contains one line.'.
APPEND wa_case_note TO case_notes.
* Call the BAPI
CALL FUNCTION 'BAPI_CASE_ADDNOTES'
EXPORTING
GUID = '40908A3045BF1A51E10000000A1550FF'
IMPORTING
RETURN = return
TABLES
CASE_NOTE_IDS = case_note_ids
CASE_NOTES = case_notes.
Notes
The following prerequisites must be met before this BAPI method can be used:
- The case exists and contains the subcomponent "Notes".
The following authorizations are required:
- An authorization for changing cases (authorization object S_SCMG_CAS).
Further information
Parameters
CASE_NOTESCASE_NOTE_IDS
GUID
RETURN
RETURN_ERROR
Exceptions
Function Group
SCMG_BAPI_CASErdisp/max_wprun_time - Maximum work process run time CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 3441 Date: 20240523 Time: 112922 sap01-206 ( 37 ms )