openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_DISPUTE_CREATE:
    post:
      tags:
      - DISPUTE
      summary: 'FSCM-DM: Create Dispute Case'
      operationId: /rfc/BAPI_DISPUTE_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AMOUNTS_DELTA:
                  type: object
                  properties:
                    DELTA_ORIGINAL:
                      type: integer
                      format: int64
                      description: 'FSCM-DM: BAPI - Original Disputed Amount'
                    DELTA_DISPUTED:
                      type: integer
                      format: int64
                      description: 'FSCM-DM: BAPI - Current Disputed Amount'
                    DELTA_PAID:
                      type: integer
                      format: int64
                      description: 'FSCM-DM: Paid Amount'
                    DELTA_CREDITED:
                      type: integer
                      format: int64
                      description: 'FSCM-DM: BAPI - Credited Amount'
                    DELTA_WRITE_OFF:
                      type: integer
                      format: int64
                      description: 'FSCM-DM: BAPI - Amount Cleared Manually'
                    DELTA_NOT_SOLVED:
                      type: integer
                      format: int64
                      description: 'FSCM-DM: BAPI - Amount Written Off Automatically'
                    DISPUTE_CURR:
                      type: string
                      maxLength: 5
                      description: 'FSCM-DM: Currency of Dispute Case'
                    ISO_CODE:
                      type: string
                      maxLength: 3
                      description: ISO currency code
                CASE_GUID_CREATE:
                  type: string
                  maxLength: 32
                  description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                CASE_TYPE:
                  type: string
                  maxLength: 4
                  description: 'FSCM-DM: Case Type'
                TESTRUN:
                  type: string
                  maxLength: 1
                  description: Switch to Simulation Session for Write BAPIs
                UPDATE_TASK:
                  type: string
                  default: X
                  maxLength: 1
                  description: 'FSCM-DM: Update Indicator'
                ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_ID:
                        type: string
                        maxLength: 30
                        description: 'FSCM-DM: Attribute ID'
                      ATTR_VALUE:
                        type: string
                        maxLength: 132
                        description: 'FSCM-DM: Attribute Value'
                      XDELTA:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Attribute Value is A Difference  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
                FILECONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      FILE_ID:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Sequential Number of Attachments to Be Created'
                      CONTENT_LINE:
                        type: string
                        format: byte
                        description: 'FSCM-DM: Line of Binary File Content'
                      COMP_ID:
                        type: string
                        maxLength: 255
                        description: 'FSCM-DM: Document ID'
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: 'FSCM-DM: MIME Type'
                      COMP_SIZE:
                        type: integer
                        format: int32
                        description: 'FSCM-DM: Document Size'
                NOTES:
                  type: array
                  items:
                    type: object
                    properties:
                      FORMAT_COL:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TEXT_LINE:
                        type: string
                        maxLength: 132
                        description: Text Line
                OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      LOG_SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                      OLD_CLASS:
                        type: string
                        maxLength: 10
                        description: 'FSCM-DM: Old Classification of Object'
                      NEW_CLASS:
                        type: string
                        maxLength: 10
                        description: 'FSCM-DM: New Classification of Object'
              required:
              - CASE_GUID_CREATE
              - CASE_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CASE_GUID:
                    type: string
                    maxLength: 32
                    description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                  RETURN:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                  ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_ID:
                          type: string
                          maxLength: 30
                          description: 'FSCM-DM: Attribute ID'
                        ATTR_VALUE:
                          type: string
                          maxLength: 132
                          description: 'FSCM-DM: Attribute Value'
                        XDELTA:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Attribute Value is A Difference  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
                  FILECONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        FILE_ID:
                          type: integer
                          format: int64
                          description: 'FSCM-DM: Sequential Number of Attachments to Be Created'
                        CONTENT_LINE:
                          type: string
                          format: byte
                          description: 'FSCM-DM: Line of Binary File Content'
                        COMP_ID:
                          type: string
                          maxLength: 255
                          description: 'FSCM-DM: Document ID'
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: 'FSCM-DM: MIME Type'
                        COMP_SIZE:
                          type: integer
                          format: int32
                          description: 'FSCM-DM: Document Size'
                  NOTES:
                    type: array
                    items:
                      type: object
                      properties:
                        FORMAT_COL:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TEXT_LINE:
                          type: string
                          maxLength: 132
                          description: Text Line
                  OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        LOG_SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        OBJKEY:
                          type: string
                          maxLength: 70
                          description: Object key
                        OLD_CLASS:
                          type: string
                          maxLength: 10
                          description: 'FSCM-DM: Old Classification of Object'
                        NEW_CLASS:
                          type: string
                          maxLength: 10
                          description: 'FSCM-DM: New Classification of Object'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
