openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SVRS_GET_VERSION_MCID:
    post:
      tags:
      - SVRR
      summary: Returns a version of a Matchcode ID
      operationId: /rfc/SVRS_GET_VERSION_MCID
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJECT_NAME:
                  type: string
                  maxLength: 34
                  description: Object name
                VERSNO:
                  type: integer
                  format: int64
                  description: Number of the version
                DD21V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: 'R/3: language key'
                      MCONAME:
                        type: string
                        maxLength: 10
                        description: Name of a matchcode object
                      MCID:
                        type: string
                        maxLength: 1
                        description: Matchcode ID
                      POSITION:
                        type: integer
                        format: int64
                        description: Version Management
                      MCOTABPOS:
                        type: integer
                        format: int64
                        description: Version Management
                      TABNAME:
                        type: string
                        maxLength: 10
                        description: Table Name
                DD23V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      MCONAME:
                        type: string
                        maxLength: 10
                        description: ''
                      MCID:
                        type: string
                        maxLength: 1
                        description: ''
                      AS4LOCAL:
                        type: string
                        maxLength: 1
                        description: ''
                      AS4VERS:
                        type: integer
                        format: int64
                        description: ''
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: ''
                      APPLCLASS:
                        type: string
                        maxLength: 4
                        description: ''
                      AUTHCLASS:
                        type: integer
                        format: int64
                        description: ''
                      MAINT:
                        type: string
                        maxLength: 1
                        description: ''
                      SECINDEX:
                        type: string
                        maxLength: 1
                        description: ''
                      ENDUSER:
                        type: string
                        maxLength: 1
                        description: ''
                      DELFLAG:
                        type: string
                        maxLength: 1
                        description: ''
                      POOLTAB:
                        type: string
                        maxLength: 10
                        description: ''
                      AS4USER:
                        type: string
                        maxLength: 12
                        description: ''
                      AS4DATE:
                        type: string
                        format: date
                        description: ''
                      AS4TIME:
                        type: string
                        maxLength: 6
                        description: ''
                      MCTEXT:
                        type: string
                        maxLength: 60
                        description: ''
                      ACTFLAG:
                        type: string
                        maxLength: 1
                        description: ''
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: ''
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: ''
                      FLAGS:
                        type: string
                        format: byte
                        description: ''
                      INDTABNAME:
                        type: string
                        maxLength: 10
                        description: ''
                      INDNAME:
                        type: string
                        maxLength: 3
                        description: ''
                DD24V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      MCONAME:
                        type: string
                        maxLength: 10
                        description: Name of a matchcode object
                      MCID:
                        type: string
                        maxLength: 1
                        description: Matchcode ID
                      MCFIELDN:
                        type: string
                        maxLength: 10
                        description: Matchcode field name
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: 'R/3: language key'
                      POSITION:
                        type: integer
                        format: int64
                        description: Version Management
                      TABNAME:
                        type: string
                        maxLength: 10
                        description: Table Name
                      BASEFLDN:
                        type: string
                        maxLength: 10
                        description: Internal SAP Field Name
                      OBJPOS:
                        type: integer
                        format: int64
                        description: Version Management
                      OFFSET:
                        type: integer
                        format: int64
                        description: Version Management
                      FLENGTH:
                        type: integer
                        format: int64
                        description: Version Management
                      OUTLINE:
                        type: integer
                        format: int64
                        description: Version Management
                      OUTCOL:
                        type: integer
                        format: int64
                        description: Version Management
                      OUTMODFLAG:
                        type: string
                        maxLength: 1
                        description: Version Management
                      MEMID:
                        type: string
                        maxLength: 3
                        description: Set/Get parameter ID
                      GPA:
                        type: string
                        maxLength: 1
                        description: Version Management
                      SPA:
                        type: string
                        maxLength: 1
                        description: Version Management
                      FLAGS:
                        type: string
                        format: byte
                        description: Flag byte
                      NOUPPER:
                        type: string
                        maxLength: 1
                        description: Version Management
                      ROLLNAME:
                        type: string
                        maxLength: 10
                        description: Data element (semantic domain)
                DD28V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: 'R/3: language key'
                      CONDNAME:
                        type: string
                        maxLength: 10
                        description: Version Management
                      POSITION:
                        type: integer
                        format: int64
                        description: Version Management
                      TABNAME:
                        type: string
                        maxLength: 10
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 10
                        description: Local Field Name
                      NEGATION:
                        type: string
                        maxLength: 3
                        description: Version Management
                      OPERATOR:
                        type: string
                        maxLength: 2
                        description: Version Management
                      CONSTANTS:
                        type: string
                        maxLength: 38
                        description: Version Management
                      CONTLINE:
                        type: string
                        maxLength: 1
                        description: Version Management
                      AND_OR:
                        type: string
                        maxLength: 3
                        description: Version Management
                      OFFSET:
                        type: integer
                        format: int64
                        description: Version Management
                      FLENGTH:
                        type: integer
                        format: int64
                        description: Version Management
                      MCOFIELD:
                        type: string
                        maxLength: 10
                        description: Matchcode field name
              required:
              - OBJECT_NAME
              - VERSNO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INFO_LINE:
                    type: string
                    maxLength: 72
                    description: Name + correction number + date + time + author
                  DD21V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: 'R/3: language key'
                        MCONAME:
                          type: string
                          maxLength: 10
                          description: Name of a matchcode object
                        MCID:
                          type: string
                          maxLength: 1
                          description: Matchcode ID
                        POSITION:
                          type: integer
                          format: int64
                          description: Version Management
                        MCOTABPOS:
                          type: integer
                          format: int64
                          description: Version Management
                        TABNAME:
                          type: string
                          maxLength: 10
                          description: Table Name
                  DD23V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        MCONAME:
                          type: string
                          maxLength: 10
                          description: ''
                        MCID:
                          type: string
                          maxLength: 1
                          description: ''
                        AS4LOCAL:
                          type: string
                          maxLength: 1
                          description: ''
                        AS4VERS:
                          type: integer
                          format: int64
                          description: ''
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: ''
                        APPLCLASS:
                          type: string
                          maxLength: 4
                          description: ''
                        AUTHCLASS:
                          type: integer
                          format: int64
                          description: ''
                        MAINT:
                          type: string
                          maxLength: 1
                          description: ''
                        SECINDEX:
                          type: string
                          maxLength: 1
                          description: ''
                        ENDUSER:
                          type: string
                          maxLength: 1
                          description: ''
                        DELFLAG:
                          type: string
                          maxLength: 1
                          description: ''
                        POOLTAB:
                          type: string
                          maxLength: 10
                          description: ''
                        AS4USER:
                          type: string
                          maxLength: 12
                          description: ''
                        AS4DATE:
                          type: string
                          format: date
                          description: ''
                        AS4TIME:
                          type: string
                          maxLength: 6
                          description: ''
                        MCTEXT:
                          type: string
                          maxLength: 60
                          description: ''
                        ACTFLAG:
                          type: string
                          maxLength: 1
                          description: ''
                        MASTERLANG:
                          type: string
                          maxLength: 1
                          description: ''
                        FUNCNAME:
                          type: string
                          maxLength: 30
                          description: ''
                        FLAGS:
                          type: string
                          format: byte
                          description: ''
                        INDTABNAME:
                          type: string
                          maxLength: 10
                          description: ''
                        INDNAME:
                          type: string
                          maxLength: 3
                          description: ''
                  DD24V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        MCONAME:
                          type: string
                          maxLength: 10
                          description: Name of a matchcode object
                        MCID:
                          type: string
                          maxLength: 1
                          description: Matchcode ID
                        MCFIELDN:
                          type: string
                          maxLength: 10
                          description: Matchcode field name
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: 'R/3: language key'
                        POSITION:
                          type: integer
                          format: int64
                          description: Version Management
                        TABNAME:
                          type: string
                          maxLength: 10
                          description: Table Name
                        BASEFLDN:
                          type: string
                          maxLength: 10
                          description: Internal SAP Field Name
                        OBJPOS:
                          type: integer
                          format: int64
                          description: Version Management
                        OFFSET:
                          type: integer
                          format: int64
                          description: Version Management
                        FLENGTH:
                          type: integer
                          format: int64
                          description: Version Management
                        OUTLINE:
                          type: integer
                          format: int64
                          description: Version Management
                        OUTCOL:
                          type: integer
                          format: int64
                          description: Version Management
                        OUTMODFLAG:
                          type: string
                          maxLength: 1
                          description: Version Management
                        MEMID:
                          type: string
                          maxLength: 3
                          description: Set/Get parameter ID
                        GPA:
                          type: string
                          maxLength: 1
                          description: Version Management
                        SPA:
                          type: string
                          maxLength: 1
                          description: Version Management
                        FLAGS:
                          type: string
                          format: byte
                          description: Flag byte
                        NOUPPER:
                          type: string
                          maxLength: 1
                          description: Version Management
                        ROLLNAME:
                          type: string
                          maxLength: 10
                          description: Data element (semantic domain)
                  DD28V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: 'R/3: language key'
                        CONDNAME:
                          type: string
                          maxLength: 10
                          description: Version Management
                        POSITION:
                          type: integer
                          format: int64
                          description: Version Management
                        TABNAME:
                          type: string
                          maxLength: 10
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 10
                          description: Local Field Name
                        NEGATION:
                          type: string
                          maxLength: 3
                          description: Version Management
                        OPERATOR:
                          type: string
                          maxLength: 2
                          description: Version Management
                        CONSTANTS:
                          type: string
                          maxLength: 38
                          description: Version Management
                        CONTLINE:
                          type: string
                          maxLength: 1
                          description: Version Management
                        AND_OR:
                          type: string
                          maxLength: 3
                          description: Version Management
                        OFFSET:
                          type: integer
                          format: int64
                          description: Version Management
                        FLENGTH:
                          type: integer
                          format: int64
                          description: Version Management
                        MCOFIELD:
                          type: string
                          maxLength: 10
                          description: Matchcode field name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
