openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWO_INVOKE_INTERNAL:
    post:
      tags:
      - SWOR
      summary: Internal call for invoke
      operationId: /rfc/SWO_INVOKE_INTERNAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INVOKE:
                  type: object
                  properties:
                    OBJECT:
                      type: integer
                      format: int32
                      description: Number of runtime object
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    LOBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    VERB:
                      type: string
                      maxLength: 32
                      description: Object type component
                    ISTAT:
                      type: string
                      maxLength: 5
                      description: Object status
                    DBFIELD:
                      type: string
                      maxLength: 61
                      description: Database field name
                    REFTYPE:
                      type: string
                      maxLength: 1
                      description: 'Dictionary  enumValues: R=Organizational object type,D=Data Dictionary table field or table,""=No data type reference,M=Microsoft OLE data type,O=Object type'
                      enum:
                      - R
                      - D
                      - ''
                      - M
                      - O
                    REFOBJTYPE:
                      type: string
                      maxLength: 10
                      description: Reference obj. type
                    REFRESH:
                      type: string
                      maxLength: 1
                      description: 'Refresh object attributes  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    SYNCHRON:
                      type: string
                      maxLength: 1
                      description: 'Synchronous method  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    INVOKED:
                      type: string
                      maxLength: 1
                      description: 'Call by method  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    DEBUG:
                      type: string
                      maxLength: 1
                      description: 'Object debugger activated  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    RETTEXT:
                      type: string
                      maxLength: 1
                      description: 'Text return in exceptional cases  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    RETDIALOG:
                      type: string
                      maxLength: 1
                      description: 'Error dialog in exceptional cases  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    CODE:
                      type: integer
                      format: int64
                      description: Exception for method
                    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
                    REQUESTER:
                      type: string
                      maxLength: 90
                      description: Object ID
                    VERBTYPE:
                      type: string
                      maxLength: 1
                      description: 'Verb type (key, attr., method)  enumValues: ""=No verb,A=Attribute,K=Key field,E=Event,M=Method'
                      enum:
                      - ''
                      - A
                      - K
                      - E
                      - M
                    PERSISTENT:
                      type: string
                      maxLength: 1
                      description: 'Persistent object IDs (type = ''o'')  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PROGNAME:
                      type: string
                      maxLength: 40
                      description: Implementation program
                    FORMNAME:
                      type: string
                      maxLength: 42
                      description: Name of the subroutine
                    ISAPI:
                      type: string
                      maxLength: 1
                      description: 'Method is R/3 interface function  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    REMOTE:
                      type: string
                      maxLength: 1
                      description: 'Method called remotely  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    ABAPTYPE:
                      type: string
                      maxLength: 1
                      description: 'ABAP function type  enumValues: D=Dialog module,T=Transaction,R=ABAP report,F=Function module,""=No special ABAP/4 function'
                      enum:
                      - D
                      - T
                      - R
                      - F
                      - ''
                    ABAPNAME:
                      type: string
                      maxLength: 30
                      description: Name of ABAP Function
                CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      ELEMENT:
                        type: string
                        maxLength: 32
                        description: Element
                      TAB_INDEX:
                        type: integer
                        format: int64
                        description: Index for table element
                      ELEMLENGTH:
                        type: integer
                        format: int64
                        description: Length of the field in bytes
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP Type of element  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
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Character value
              required:
              - INVOKE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  INVOKE:
                    type: object
                    properties:
                      OBJECT:
                        type: integer
                        format: int32
                        description: Number of runtime object
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      LOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                      VERB:
                        type: string
                        maxLength: 32
                        description: Object type component
                      ISTAT:
                        type: string
                        maxLength: 5
                        description: Object status
                      DBFIELD:
                        type: string
                        maxLength: 61
                        description: Database field name
                      REFTYPE:
                        type: string
                        maxLength: 1
                        description: 'Dictionary  enumValues: R=Organizational object type,D=Data Dictionary table field or table,""=No data type reference,M=Microsoft OLE data type,O=Object type'
                        enum:
                        - R
                        - D
                        - ''
                        - M
                        - O
                      REFOBJTYPE:
                        type: string
                        maxLength: 10
                        description: Reference obj. type
                      REFRESH:
                        type: string
                        maxLength: 1
                        description: 'Refresh object attributes  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SYNCHRON:
                        type: string
                        maxLength: 1
                        description: 'Synchronous method  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      INVOKED:
                        type: string
                        maxLength: 1
                        description: 'Call by method  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      DEBUG:
                        type: string
                        maxLength: 1
                        description: 'Object debugger activated  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      RETTEXT:
                        type: string
                        maxLength: 1
                        description: 'Text return in exceptional cases  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      RETDIALOG:
                        type: string
                        maxLength: 1
                        description: 'Error dialog in exceptional cases  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CODE:
                        type: integer
                        format: int64
                        description: Exception for method
                      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
                      REQUESTER:
                        type: string
                        maxLength: 90
                        description: Object ID
                      VERBTYPE:
                        type: string
                        maxLength: 1
                        description: 'Verb type (key, attr., method)  enumValues: ""=No verb,A=Attribute,K=Key field,E=Event,M=Method'
                        enum:
                        - ''
                        - A
                        - K
                        - E
                        - M
                      PERSISTENT:
                        type: string
                        maxLength: 1
                        description: 'Persistent object IDs (type = ''o'')  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      PROGNAME:
                        type: string
                        maxLength: 40
                        description: Implementation program
                      FORMNAME:
                        type: string
                        maxLength: 42
                        description: Name of the subroutine
                      ISAPI:
                        type: string
                        maxLength: 1
                        description: 'Method is R/3 interface function  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      REMOTE:
                        type: string
                        maxLength: 1
                        description: 'Method called remotely  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ABAPTYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP function type  enumValues: D=Dialog module,T=Transaction,R=ABAP report,F=Function module,""=No special ABAP/4 function'
                        enum:
                        - D
                        - T
                        - R
                        - F
                        - ''
                      ABAPNAME:
                        type: string
                        maxLength: 30
                        description: Name of ABAP Function
                  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
                  CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        ELEMENT:
                          type: string
                          maxLength: 32
                          description: Element
                        TAB_INDEX:
                          type: integer
                          format: int64
                          description: Index for table element
                        ELEMLENGTH:
                          type: integer
                          format: int64
                          description: Length of the field in bytes
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'ABAP Type of element  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
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Character value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
