openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BDM_DISPUTE_ITEMS_ADD:
    post:
      tags:
      - DISPUTE
      operationId: /rfc/BDM_DISPUTE_ITEMS_ADD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_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'
                IT_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'
                I_BUKRS:
                  type: string
                  maxLength: 4
                I_CASE_GUID:
                  type: string
                  maxLength: 32
              required:
              - I_CASE_GUID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_AMOUNT_DELTA:
                    type: object
                    properties:
                      DELTA_ORIGINAL:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Original Disputed Amount'
                      DELTA_DISPUTED:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Current Disputed Amount'
                      DELTA_PAID:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Paid Amount'
                      DELTA_CREDITED:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Credited Amount'
                      DELTA_WRITE_OFF:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Amount Cleared Manually'
                      DELTA_NOT_SOLVED:
                        type: integer
                        format: int64
                        description: 'FSCM-DM: Amount Written Off Automatically'
                      DISPUTE_CURR:
                        type: string
                        maxLength: 5
                        description: 'FSCM-DM: Currency of Dispute Case'
                  ES_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
                  ET_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'
                  ET_NOTES:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
                  ET_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.
