openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/DISPUTE_PROCESS01/DISPUTE_PROCESS:
    post:
      summary: 'FSCM-DM: Process Dispute Case'
      operationId: /idoc/DISPUTE_PROCESS01/DISPUTE_PROCESS
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                EDI_DC40:
                  properties:
                    TABNAM:
                      type: string
                      maxLength: 10
                      description: Name of Table Structure
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: string
                      maxLength: 16
                      description: IDoc number
                    DOCREL:
                      type: string
                      maxLength: 4
                      description: SAP Release for IDoc
                    STATUS:
                      type: string
                      maxLength: 2
                      description: Status of IDoc
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'Direction enumValues: 1=Outbound, 2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    OUTMOD:
                      type: string
                      maxLength: 1
                      description: 'Output mode enumValues: 1=Transfer IDoc immediately and start external subsystem, 2=Transfer IDoc immediately, 3=Collect IDocs, transfer and start external subsystem, 4=Collect IDocs and transfer'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    EXPRSS:
                      type: string
                      maxLength: 1
                      description: 'Overriding in inbound processing enumValues: ""=No overriding, X=Overriding'
                      enum:
                      - ''
                      - X
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Test flag enumValues: ""=IDoc contains a productive message, X=IDoc contains a test message'
                      enum:
                      - ''
                      - X
                    IDOCTYP:
                      type: string
                      maxLength: 30
                      description: Name of basic type
                    CIMTYP:
                      type: string
                      maxLength: 30
                      description: Extension (defined by customer)
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message Function
                    STD:
                      type: string
                      maxLength: 1
                      description: EDI standard, flag
                    STDVRS:
                      type: string
                      maxLength: 6
                      description: EDI standard, version and release
                    STDMES:
                      type: string
                      maxLength: 6
                      description: EDI message type
                    SNDPOR:
                      type: string
                      maxLength: 10
                      description: Sender port (SAP System, external subsystem)
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner type of sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner Function of Sender
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDSAD:
                      type: string
                      maxLength: 21
                      description: Sender address (SADR)
                    SNDLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of sender
                    RCVPOR:
                      type: string
                      maxLength: 10
                      description: Receiver port
                    RCVPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Receiver
                    RCVPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of recipient
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    RCVSAD:
                      type: string
                      maxLength: 21
                      description: Recipient address (SADR)
                    RCVLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of recipient
                    CREDAT:
                      type: string
                      format: date
                      maxLength: 8
                      description: Created on
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Created at
                    REFINT:
                      type: string
                      maxLength: 14
                      description: Transmission file (EDI Interchange)
                    REFGRP:
                      type: string
                      maxLength: 14
                      description: Message group (EDI Message Group)
                    REFMES:
                      type: string
                      maxLength: 14
                      description: Message (EDI Message)
                    ARCKEY:
                      type: string
                      maxLength: 70
                      description: Key for external message archive
                    SERIAL:
                      type: string
                      maxLength: 20
                      description: Serialization
                E1DISPUTE_PROCESS:
                  type: array
                  items:
                    properties:
                      CASE_GUID:
                        type: string
                        maxLength: 32
                        description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                      PROC_SEQNR_NEW:
                        type: string
                        maxLength: 3
                        description: 'FSCM-DM: Sequential Number of Process'
                      PROC_SEQNR_OLD:
                        type: string
                        maxLength: 3
                        description: 'FSCM-DM: Sequential Number of Process'
                      TESTRUN:
                        type: string
                        maxLength: 1
                        description: 'Switch to Simulation Session for Write BAPIs: ""=Not set,X=Set'
                        enum:
                        - ''
                        - X
                      E1BP_DISPUTE_AMOUNTS:
                        type: array
                        items:
                          properties:
                            DELTA_ORIGINAL:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Original Disputed Amount'
                            DELTA_DISPUTED:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Current Disputed Amount'
                            DELTA_PAID:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: Paid Amount'
                            DELTA_CREDITED:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Credited Amount'
                            DELTA_WRITE_OFF:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Amount Cleared Manually'
                            DELTA_NOT_SOLVED:
                              type: number
                              maxLength: 25
                              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
                      E1BP_DISPUTE_ATTRIBUTE:
                        type: array
                        items:
                          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: X=TRUE,""=FALSE'
                              enum:
                              - X
                              - ''
                      E1BP_DISPUTE_NOTE:
                        type: array
                        items:
                          properties:
                            FORMAT_COL:
                              type: string
                              maxLength: 2
                              description: Tag column
                            TEXT_LINE:
                              type: string
                              maxLength: 132
                              description: Text Line
                      E1BP_DISPUTE_FILECONTENT:
                        type: array
                        items:
                          properties:
                            FILE_ID:
                              type: string
                              maxLength: 3
                              description: 'FSCM-DM: Sequential Number of Attachments to Be Created'
                            CONTENT_LINE:
                              type: string
                              format: byte
                              maxLength: 510
                              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
                              maxLength: 11
                              description: 'FSCM-DM: Document Size'
                      E1BP_DISPUTE_OBJECT:
                        type: array
                        items:
                          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'
                      E1BP_DISPUTE_SPLIT:
                        type: array
                        items:
                          properties:
                            CASE_GUID:
                              type: string
                              maxLength: 32
                              description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                            CASE_TYPE:
                              type: string
                              maxLength: 4
                              description: 'FSCM-DM: Case Type'
                      E1BP_DISPUTE_SPLIT_ATTRIBUT:
                        type: array
                        items:
                          properties:
                            CASE_GUID:
                              type: string
                              maxLength: 32
                              description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                            ATTR_ID:
                              type: string
                              maxLength: 30
                              description: 'FSCM-DM: Attribute ID'
                            ATTR_VALUE:
                              type: string
                              maxLength: 132
                              description: 'FSCM-DM: Attribute Value'
                      E1BP_DISPUTE_SPLIT_NOTES:
                        type: array
                        items:
                          properties:
                            CASE_GUID:
                              type: string
                              maxLength: 32
                              description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                            FORMAT_COL:
                              type: string
                              maxLength: 2
                              description: Tag column
                            TEXT_LINE:
                              type: string
                              maxLength: 132
                              description: Text Line
                      E1BP_DISPUTE_SPLIT_OBJECT:
                        type: array
                        items:
                          properties:
                            CASE_GUID:
                              type: string
                              maxLength: 32
                              description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                            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'
                      E1BP_DISPUTE_SPLIT_AMOUNTS:
                        type: array
                        items:
                          properties:
                            CASE_GUID:
                              type: string
                              maxLength: 32
                              description: 'FSCM-DM: GUID (Internal Key of Dispute Case)'
                            DELTA_ORIGINAL:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Original Disputed Amount'
                            DELTA_DISPUTED:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Current Disputed Amount'
                            DELTA_PAID:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: Paid Amount'
                            DELTA_CREDITED:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Credited Amount'
                            DELTA_WRITE_OFF:
                              type: number
                              maxLength: 25
                              description: 'FSCM-DM: BAPI - Amount Cleared Manually'
                            DELTA_NOT_SOLVED:
                              type: number
                              maxLength: 25
                              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
                    required:
                    - E1DISPUTE_PROCESS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
