Fonction SAP BAPI_CASE_GETNOTES - Get Case Notes

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CREATED_BY BAPINOTEHEADER-TDFUSER C 12 X User who Created Notes
DATE_FROM BAPINOTEHEADER-TDFDATE D 8 X Search Start Date
DATE_TO BAPINOTEHEADER-TDFDATE D 8 X Date when search ends
GUID BAPISCMGCASE-CASE_GUID C 32 Technical Case Key (Case GUID)
IM_DB_READ BAPISRMREC-BOOLEAN C 1 IF_SRM=>FALSE X Boolean
SEARCH_TERM BAPINOTE-TDLINE C 132 X Search Term in Text
TEXT_ID BAPINOTEHEADER-TDID C 4 X Text ID of Notes

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Parameters

Paramètre Reférence Long. Facultatif Description
NOTE_CONTENTS BAPINOTE 140 Content of Found Case Notes
NOTE_HEADERS BAPINOTEHEADER 116 Header Information for Found Notes

Functionality
This BAPI method is used to get the notes bwelonging to a case.
The input parameters define the search conditions for notes.

Example
* Call the BAPI
CALL FUNCTION 'BAPI_CASE_GETNOTES'
     EXPORTING
          GUID               = '40908A3045BF1A51E10000000A1550FF'
          TEXT_ID            = '0001'
          DATE_FROM          = '20040101'
          DATE_TO            = '20040501'
          CREATED_BY         = ''
          SEARCH_TERM        = 'note'
     IMPORTING
          RETURN             = return
     TABLES
          NOTE_HEADERS       = note_headers
          NOTE_CONTENTS      = note_contents.

Notes
The following prerequisites must be met before this BAPI methodcan be used:

  • The case exists and contains the subcomponent "Notes".

  • The following authorizations are required:
    • An authorization for displaying cases (authorization object S_SCMG_CAS).
    • Description
      Result of the BAPI call.

      Description
      The person who created the notes to be searched for in a case.

      Description
      The date from which the search for notes in a case is to start.

      Description
      The date until which the search for notes in a case is to be made.

      Description
      The GUID of a case whose notes are to be returned.

      Description
      The specific text which notes being searched for in a case shouldcontain.

      Description
      The Text ID of the notes to be returned.

      Description
      Table with case notes content: texts and formats.
      Field ELEM_NO contains the unique sequence number of a note and mergesthe information in the tables NOTE_HEADERS and NOTE_CONTENTS.

      Description
      Table with the header information of the found notes.
      Field ELEM_NO contains the unique sequence number of a note and mergesthe information in the tables NOTE_HEADERS and NOTE_CONTENTS.