Ansicht
Dokumentation

BAPI_CASE_CREATE - Create Case

BAPI_CASE_CREATE - Create Case

General Material Data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This BAPI method is used to create a new case and fill it with data.

The case is created with the specified case type.

If the guid of a new case is not set by the caller, it is generated automatically.

If the template for the workflow path is set, then the workflow path for the new case is created from this template, otherwise it stays empty.

All other optional parameters are used to fill the created case with data.

Example

* Call the BAPI

CALL FUNCTION 'BAPI_CASE_CREATE'

     EXPORTING

          CASE_TYPE                    = 'DEMO'

          CASE_GUID                    = '40908A3045BF1A51E10000000A1550FF'

          CASE_WF_PATH                 = '207'

          SKIP_ERROR                   = 'X'

     IMPORTING

          GUID                         = guid

     TABLES

          RETURN                       = return

          CASE_ATTRIBUTES              = case_attributes

          CASE_NOTES                   = case_notes

          CASE_NOTE_IDS                = case_note_ids

          ELEMENT_IDENTIFICATION       = element_identification

          ELEMENT_INSERTION            = element_insertion

          ELEMENT_ATTRIBUTES           = element_attributes

          ELEMENT_RELATIONS            = element_relations.

Notes

The following prerequisites must be met before this BAPI method can be used:

  • An element type is created in the service provider for cases.
    (The service provider supplied for cases is SCMG_SP_CASE.)
  • A case type is defined in the Case Customizing (t/a SCASE_CUSTOMIZING).

The following authorizations are required:

  • An authorization for creating cases (authorization object S_SCMG_CAS).

Further information

For more information on creating element types, see the SAP Library under SAP Web Application Server -> Basis Services -> Records Management -> Standard Service Providers -> Generic Service Provider

or choose the following in the Implementation Guide (IMG): SAP Web Application Server -> Basis Services -> Records Management -> Maintain Element Types.

See also the documentation for functions

  • BAPI_CASE_CHANGEATTRIBUTES - to get detailed information on how to set the case attributes;
  • BAPI_CASE_ADDNOTES - to get detailed information on how to fill the parameters to add notes;
  • BAPI_CASE_ADDELEMENTS - to get detailed information on how to fill the parameters to add elements.





Parameters

CASE_ATTRIBUTES
CASE_GUID
CASE_NOTES
CASE_NOTE_IDS
CASE_TYPE
CASE_WF_PATH
ELEMENT_ATTRIBUTES
ELEMENT_IDENTIFICATION
ELEMENT_INSERTION
ELEMENT_RELATIONS
GUID
RETURN
SKIP_ERRORS

Exceptions

Function Group

SCMG_BAPI_CASE

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 6394 Date: 20240523 Time: 112237     sap01-206 ( 43 ms )