openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_QUERY_KEYFIELD:
    post:
      tags:
      - SWOR
      operationId: /rfc/SWO_QUERY_KEYFIELD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                KEYFIELD:
                  type: string
                  maxLength: 32
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                OBJTYPE:
                  type: string
                  maxLength: 10
                TEXT:
                  type: string
                  default: ' '
                  maxLength: 1
              required:
              - KEYFIELD
              - OBJTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INFO:
                    type: object
                    properties:
                      KEYFIELD:
                        type: string
                        maxLength: 32
                        description: Key field
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Name
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      EDITELEM:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      EDITORDER:
                        type: integer
                        format: int64
                        description: Editing sequence
                      REFSTRUCT:
                        type: string
                        maxLength: 30
                        description: Reference table
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field
                      REFOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Reference obj. type
                      MCODE:
                        type: string
                        maxLength: 30
                        description: Search Help (Formerly Matchcode)
                      HLPPARAM:
                        type: string
                        maxLength: 30
                        description: Name of a search help parameter
                      INTLENGTH:
                        type: integer
                        format: int64
                        description: Internal field length
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset in key
                      INTATYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP elementary data type  enumValues: N=Character string with only digits,s=2-byte integer, only for length field before LCHR or LRAW,h=Table type,y=Byte sequence with variable length (ABAP type XSTRING),l=Reference to data object,b=1-byte integer, integer number <= 254,P=Packed number,T=Time (Time: HHMMSS),u=Structured type, flat,I=Integer number (4-byte integer with sign),F=Floating point number to accuracy of 8 bytes,v=Structured type, deep,V=Character string
                          (old Dictionary type VARC),X=Byte sequence (heXadecimal),C=Character string,g=Character string with variable length (ABAP type STRING),r=Reference to class/interface,D=Date (Date: YYYYMMDD)'
                        enum:
                        - N
                        - s
                        - h
                        - y
                        - l
                        - b
                        - P
                        - T
                        - u
                        - I
                        - F
                        - v
                        - V
                        - X
                        - C
                        - g
                        - r
                        - D
                      OUTLENGTH:
                        type: integer
                        format: int64
                        description: Output length
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: 'Lowercase letters allowed/not allowed  enumValues: ""=Do not set flag,X=Set flag'
                        enum:
                        - ''
                        - X
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      MEMORYID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      CREA_REL:
                        type: string
                        maxLength: 4
                        description: Release at Creation
                      SHORTTEXT:
                        type: string
                        maxLength: 80
                        description: Description
                      MODELONLY:
                        type: string
                        maxLength: 1
                        description: 'Release status verb  enumValues: X=Object type is only modeled,""=Object type is implemented,R=Object type is released'
                        enum:
                        - X
                        - ''
                        - R
                      OBSOLETE:
                        type: string
                        maxLength: 4
                        description: Release in which object type was set as obsolete
                      DDLENGTH:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                  RETURN:
                    type: object
                    properties:
                      CODE:
                        type: integer
                        format: int64
                        description: Exception for method
                      ERRORTYPE:
                        type: integer
                        format: int64
                        description: 'Error type  enumValues: 1=Application Error,2=System error,0=Temporary error'
                        enum:
                        - '1'
                        - '2'
                        - '0'
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      TEXT:
                        type: string
                        maxLength: 256
                        description: Error Message
                      VARIABLE1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE4:
                        type: string
                        maxLength: 50
                        description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
