openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SVRS_GET_VERSION_FUNC:
    post:
      tags:
      - SVRR
      summary: Returns the specified version of a function module
      operationId: /rfc/SVRS_GET_VERSION_FUNC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OBJECT_NAME:
                  type: string
                  maxLength: 34
                  description: Function module name
                VERSNO:
                  type: integer
                  format: int64
                DINCL_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: Text editor text line
                ENLFD_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: Function Module Name
                      AREA:
                        type: string
                        maxLength: 4
                        description: Version Management
                      ACTIVE:
                        type: string
                        maxLength: 1
                        description: Function module active
                      GENERATED:
                        type: string
                        maxLength: 1
                        description: Generated Function Module
                      FREEDATE:
                        type: string
                        format: date
                        description: Version Management
                      GLOBAL:
                        type: string
                        maxLength: 1
                        description: Version Management
                      LOC_PRIV:
                        type: string
                        maxLength: 1
                        description: Version Management
                      EXTEN1:
                        type: string
                        maxLength: 1
                        description: Language Key
                      EXTEN2:
                        type: string
                        maxLength: 1
                        description: Function Key
                      EXTEN3:
                        type: string
                        maxLength: 1
                        description: Function Key
                      EXTEN4:
                        type: string
                        maxLength: 1
                        description: Function Key
                      EXTEN5:
                        type: string
                        maxLength: 1
                        description: Function Key
                FUNCT_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      KIND:
                        type: string
                        maxLength: 1
                        description: Type
                      VERSION:
                        type: integer
                        format: int64
                        description: Version of Documentation Module
                      STEXT:
                        type: string
                        maxLength: 79
                        description: Short text
                TFDIR_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: Function Module Name
                      PNAME:
                        type: string
                        maxLength: 8
                        description: Program Name
                      INCLUDE:
                        type: string
                        maxLength: 2
                        description: Version Management
                      FREEDATE:
                        type: string
                        format: date
                        description: Version Management
                      APPL:
                        type: string
                        maxLength: 1
                        description: Version Management
                      MAND:
                        type: string
                        maxLength: 3
                        description: Client
                      FMODE:
                        type: string
                        maxLength: 1
                        description: Version Management
                      HOST:
                        type: string
                        maxLength: 8
                        description: Remote host (CPIC)
                      UTASK:
                        type: string
                        maxLength: 1
                        description: Update
                TFTIT_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      SPRAS:
                        type: string
                        maxLength: 1
                        description: Language Key
                      FUNCNAME:
                        type: string
                        maxLength: 30
                        description: Name of Function Module
                      STEXT:
                        type: string
                        maxLength: 74
                        description: Short text for function module
                TRDIR_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 8
                        description: 'ABAP: Program Name'
                      SQLX:
                        type: string
                        maxLength: 1
                        description: Source code protection
                      EDTX:
                        type: string
                        maxLength: 1
                        description: Editor lock flag
                      VARCL:
                        type: string
                        maxLength: 1
                        description: Upper/Lower Case
                      DBAPL:
                        type: string
                        maxLength: 1
                        description: Application Database
                      DBNA:
                        type: string
                        maxLength: 2
                        description: Logical Database
                      CLAS:
                        type: string
                        maxLength: 4
                        description: Program Class
                      TYPE:
                        type: string
                        maxLength: 3
                        description: Selection screen version
                      OCCURS:
                        type: string
                        maxLength: 1
                        description: Automatically Generated Program
                      SUBC:
                        type: string
                        maxLength: 1
                        description: Program Type
                      APPL:
                        type: string
                        maxLength: 1
                        description: Application
                      SECU:
                        type: string
                        maxLength: 8
                        description: Authorization Group
                      CNAM:
                        type: string
                        maxLength: 12
                        description: Author
                      CDAT:
                        type: string
                        format: date
                        description: Created on
                      UNAM:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      UDAT:
                        type: string
                        format: date
                        description: Changed On
                      VERN:
                        type: string
                        maxLength: 6
                        description: Version Number
                      LEVL:
                        type: string
                        maxLength: 4
                        description: Release
                      RSTAT:
                        type: string
                        maxLength: 1
                        description: Status
                      RMAND:
                        type: string
                        maxLength: 3
                        description: Client
                      RLOAD:
                        type: string
                        maxLength: 1
                        description: Master Language
                      FIXPT:
                        type: string
                        maxLength: 1
                        description: Fixed point arithmetic
                      SSET:
                        type: string
                        maxLength: 1
                        description: Start only via variant
                      SDATE:
                        type: string
                        format: date
                        description: Generate Standard Selections
                      STIME:
                        type: string
                        maxLength: 6
                        description: Generate Standard Selections
                      IDATE:
                        type: string
                        format: date
                        description: Generate Separate Selection
                      ITIME:
                        type: string
                        maxLength: 6
                        description: Generate Separate Selection
                UINCL_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: Text editor text line
              required:
              - OBJECT_NAME
              - VERSNO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DINCL_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: Text editor text line
                  ENLFD_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        FUNCNAME:
                          type: string
                          maxLength: 30
                          description: Function Module Name
                        AREA:
                          type: string
                          maxLength: 4
                          description: Version Management
                        ACTIVE:
                          type: string
                          maxLength: 1
                          description: Function module active
                        GENERATED:
                          type: string
                          maxLength: 1
                          description: Generated Function Module
                        FREEDATE:
                          type: string
                          format: date
                          description: Version Management
                        GLOBAL:
                          type: string
                          maxLength: 1
                          description: Version Management
                        LOC_PRIV:
                          type: string
                          maxLength: 1
                          description: Version Management
                        EXTEN1:
                          type: string
                          maxLength: 1
                          description: Language Key
                        EXTEN2:
                          type: string
                          maxLength: 1
                          description: Function Key
                        EXTEN3:
                          type: string
                          maxLength: 1
                          description: Function Key
                        EXTEN4:
                          type: string
                          maxLength: 1
                          description: Function Key
                        EXTEN5:
                          type: string
                          maxLength: 1
                          description: Function Key
                  FUNCT_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key
                        FUNCNAME:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        KIND:
                          type: string
                          maxLength: 1
                          description: Type
                        VERSION:
                          type: integer
                          format: int64
                          description: Version of Documentation Module
                        STEXT:
                          type: string
                          maxLength: 79
                          description: Short text
                  TFDIR_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        FUNCNAME:
                          type: string
                          maxLength: 30
                          description: Function Module Name
                        PNAME:
                          type: string
                          maxLength: 8
                          description: Program Name
                        INCLUDE:
                          type: string
                          maxLength: 2
                          description: Version Management
                        FREEDATE:
                          type: string
                          format: date
                          description: Version Management
                        APPL:
                          type: string
                          maxLength: 1
                          description: Version Management
                        MAND:
                          type: string
                          maxLength: 3
                          description: Client
                        FMODE:
                          type: string
                          maxLength: 1
                          description: Version Management
                        HOST:
                          type: string
                          maxLength: 8
                          description: Remote host (CPIC)
                        UTASK:
                          type: string
                          maxLength: 1
                          description: Update
                  TFTIT_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        SPRAS:
                          type: string
                          maxLength: 1
                          description: Language Key
                        FUNCNAME:
                          type: string
                          maxLength: 30
                          description: Name of Function Module
                        STEXT:
                          type: string
                          maxLength: 74
                          description: Short text for function module
                  TRDIR_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 8
                          description: 'ABAP: Program Name'
                        SQLX:
                          type: string
                          maxLength: 1
                          description: Source code protection
                        EDTX:
                          type: string
                          maxLength: 1
                          description: Editor lock flag
                        VARCL:
                          type: string
                          maxLength: 1
                          description: Upper/Lower Case
                        DBAPL:
                          type: string
                          maxLength: 1
                          description: Application Database
                        DBNA:
                          type: string
                          maxLength: 2
                          description: Logical Database
                        CLAS:
                          type: string
                          maxLength: 4
                          description: Program Class
                        TYPE:
                          type: string
                          maxLength: 3
                          description: Selection screen version
                        OCCURS:
                          type: string
                          maxLength: 1
                          description: Automatically Generated Program
                        SUBC:
                          type: string
                          maxLength: 1
                          description: Program Type
                        APPL:
                          type: string
                          maxLength: 1
                          description: Application
                        SECU:
                          type: string
                          maxLength: 8
                          description: Authorization Group
                        CNAM:
                          type: string
                          maxLength: 12
                          description: Author
                        CDAT:
                          type: string
                          format: date
                          description: Created on
                        UNAM:
                          type: string
                          maxLength: 12
                          description: Last changed by
                        UDAT:
                          type: string
                          format: date
                          description: Changed On
                        VERN:
                          type: string
                          maxLength: 6
                          description: Version Number
                        LEVL:
                          type: string
                          maxLength: 4
                          description: Release
                        RSTAT:
                          type: string
                          maxLength: 1
                          description: Status
                        RMAND:
                          type: string
                          maxLength: 3
                          description: Client
                        RLOAD:
                          type: string
                          maxLength: 1
                          description: Master Language
                        FIXPT:
                          type: string
                          maxLength: 1
                          description: Fixed point arithmetic
                        SSET:
                          type: string
                          maxLength: 1
                          description: Start only via variant
                        SDATE:
                          type: string
                          format: date
                          description: Generate Standard Selections
                        STIME:
                          type: string
                          maxLength: 6
                          description: Generate Standard Selections
                        IDATE:
                          type: string
                          format: date
                          description: Generate Separate Selection
                        ITIME:
                          type: string
                          maxLength: 6
                          description: Generate Separate Selection
                  UINCL_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: Text editor text line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
