openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SVRS_GET_VERSION_ENQD:
    post:
      tags:
      - SVRR
      summary: Lock object version
      operationId: /rfc/SVRS_GET_VERSION_ENQD
      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
                DD25V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      VIEWNAME:
                        type: string
                        maxLength: 10
                        description: ''
                      AS4LOCAL:
                        type: string
                        maxLength: 1
                        description: ''
                      AS4VERS:
                        type: integer
                        format: int64
                        description: ''
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: ''
                      AGGTYPE:
                        type: string
                        maxLength: 1
                        description: ''
                      APPLCLASS:
                        type: string
                        maxLength: 4
                        description: ''
                      AUTHCLASS:
                        type: integer
                        format: int64
                        description: ''
                      READONLY:
                        type: string
                        maxLength: 1
                        description: ''
                      ROOTTAB:
                        type: string
                        maxLength: 10
                        description: ''
                      AS4USER:
                        type: string
                        maxLength: 12
                        description: ''
                      AS4DATE:
                        type: string
                        format: date
                        description: ''
                      AS4TIME:
                        type: string
                        maxLength: 6
                        description: ''
                      DDTEXT:
                        type: string
                        maxLength: 60
                        description: ''
                      VIEWCLASS:
                        type: string
                        maxLength: 1
                        description: ''
                      ACTFLAG:
                        type: string
                        maxLength: 1
                        description: ''
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: ''
                      CUSTOMAUTH:
                        type: string
                        maxLength: 1
                        description: ''
                      VIEWGRANT:
                        type: string
                        maxLength: 1
                        description: ''
                      GLOBALFLAG:
                        type: string
                        maxLength: 1
                        description: ''
                DD26V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: 'R/3: language key'
                      VIEWNAME:
                        type: string
                        maxLength: 10
                        description: Name of SAP table view
                      TABNAME:
                        type: string
                        maxLength: 10
                        description: Table Name
                      TABPOS:
                        type: integer
                        format: int64
                        description: Version Management
                      FORTABNAME:
                        type: string
                        maxLength: 10
                        description: Table Name
                      FORFIELD:
                        type: string
                        maxLength: 10
                        description: Local Field Name
                      FORDIR:
                        type: string
                        maxLength: 1
                        description: Version Management
                DD27V_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DDLANGUAGE:
                        type: string
                        maxLength: 1
                        description: 'R/3: language key'
                      VIEWNAME:
                        type: string
                        maxLength: 10
                        description: Name of SAP table view
                      VIEWFIELD:
                        type: string
                        maxLength: 10
                        description: Local Field Name
                      OBJPOS:
                        type: integer
                        format: int64
                        description: Version Management
                      TABNAME:
                        type: string
                        maxLength: 10
                        description: Table Name
                      FIELDNAME:
                        type: string
                        maxLength: 10
                        description: Local Field Name
                      KEYFLAG:
                        type: string
                        maxLength: 1
                        description: Version Management
                      MCFIELDID:
                        type: string
                        maxLength: 3
                        description: Matchcode field ID
                      EFORM:
                        type: string
                        maxLength: 16
                        description: Name of ABAP form
                      ROLLNAME:
                        type: string
                        maxLength: 10
                        description: Data element (semantic domain)
                      ENQMODE:
                        type: string
                        maxLength: 1
                        description: Lock Mode
                      RDONLY:
                        type: string
                        maxLength: 1
                        description: Maintenance attribute for view field
                      ROLLCHANGE:
                        type: string
                        maxLength: 1
                        description: Version Management
              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
                  DD25V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        VIEWNAME:
                          type: string
                          maxLength: 10
                          description: ''
                        AS4LOCAL:
                          type: string
                          maxLength: 1
                          description: ''
                        AS4VERS:
                          type: integer
                          format: int64
                          description: ''
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: ''
                        AGGTYPE:
                          type: string
                          maxLength: 1
                          description: ''
                        APPLCLASS:
                          type: string
                          maxLength: 4
                          description: ''
                        AUTHCLASS:
                          type: integer
                          format: int64
                          description: ''
                        READONLY:
                          type: string
                          maxLength: 1
                          description: ''
                        ROOTTAB:
                          type: string
                          maxLength: 10
                          description: ''
                        AS4USER:
                          type: string
                          maxLength: 12
                          description: ''
                        AS4DATE:
                          type: string
                          format: date
                          description: ''
                        AS4TIME:
                          type: string
                          maxLength: 6
                          description: ''
                        DDTEXT:
                          type: string
                          maxLength: 60
                          description: ''
                        VIEWCLASS:
                          type: string
                          maxLength: 1
                          description: ''
                        ACTFLAG:
                          type: string
                          maxLength: 1
                          description: ''
                        MASTERLANG:
                          type: string
                          maxLength: 1
                          description: ''
                        CUSTOMAUTH:
                          type: string
                          maxLength: 1
                          description: ''
                        VIEWGRANT:
                          type: string
                          maxLength: 1
                          description: ''
                        GLOBALFLAG:
                          type: string
                          maxLength: 1
                          description: ''
                  DD26V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: 'R/3: language key'
                        VIEWNAME:
                          type: string
                          maxLength: 10
                          description: Name of SAP table view
                        TABNAME:
                          type: string
                          maxLength: 10
                          description: Table Name
                        TABPOS:
                          type: integer
                          format: int64
                          description: Version Management
                        FORTABNAME:
                          type: string
                          maxLength: 10
                          description: Table Name
                        FORFIELD:
                          type: string
                          maxLength: 10
                          description: Local Field Name
                        FORDIR:
                          type: string
                          maxLength: 1
                          description: Version Management
                  DD27V_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DDLANGUAGE:
                          type: string
                          maxLength: 1
                          description: 'R/3: language key'
                        VIEWNAME:
                          type: string
                          maxLength: 10
                          description: Name of SAP table view
                        VIEWFIELD:
                          type: string
                          maxLength: 10
                          description: Local Field Name
                        OBJPOS:
                          type: integer
                          format: int64
                          description: Version Management
                        TABNAME:
                          type: string
                          maxLength: 10
                          description: Table Name
                        FIELDNAME:
                          type: string
                          maxLength: 10
                          description: Local Field Name
                        KEYFLAG:
                          type: string
                          maxLength: 1
                          description: Version Management
                        MCFIELDID:
                          type: string
                          maxLength: 3
                          description: Matchcode field ID
                        EFORM:
                          type: string
                          maxLength: 16
                          description: Name of ABAP form
                        ROLLNAME:
                          type: string
                          maxLength: 10
                          description: Data element (semantic domain)
                        ENQMODE:
                          type: string
                          maxLength: 1
                          description: Lock Mode
                        RDONLY:
                          type: string
                          maxLength: 1
                          description: Maintenance attribute for view field
                        ROLLCHANGE:
                          type: string
                          maxLength: 1
                          description: Version Management
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
