openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FASU_HANDLE_VARIANTS_RFC:
    post:
      tags:
      - ASU5
      summary: handle the vraiant restore
      operationId: /rfc/FASU_HANDLE_VARIANTS_RFC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_REPORT:
                  type: object
                  properties:
                    REPORT:
                      type: string
                      maxLength: 40
                      description: 'ABAP: Program Name in Variant Key'
                    KIND:
                      type: string
                      maxLength: 1
                      description: 'ABAP: Type of selection'
                    NAME:
                      type: string
                      maxLength: 8
                      description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                    SORT:
                      type: integer
                      format: int32
                      description: Natural number
                    COMPNAME:
                      type: string
                      maxLength: 30
                      description: Field Name
                    TYPE:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    DEEP:
                      type: integer
                      format: int32
                      description: Natural number
                    LENGTH:
                      type: integer
                      format: int32
                      description: Natural number
                    DECIMALS:
                      type: integer
                      format: int32
                      description: Natural number
                    ERROR:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                CT_PROTOCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      LEVEL:
                        type: integer
                        format: int64
                        description: 'Log Level  enumValues: 3=Overview level for logging all work steps,1=Statistics level for summary of program results,2=Error level for logging incorrect results,4=Detailed level, additional information for the Hotline'
                        enum:
                        - '3'
                        - '1'
                        - '2'
                        - '4'
                      SEVERITY:
                        type: string
                        maxLength: 1
                        description: 'Error severity('' '',W(arning),E(rror),A(bnormal termination))  enumValues: W=Warning,""=Function Not Executed Yet,A=Internal Error, Operation Canceled,S=Status Message,E=Error: Could not Execute Function,N=Function Executed Successfully,I=Information,F=Fatal error'
                        enum:
                        - W
                        - ''
                        - A
                        - S
                        - E
                        - N
                        - I
                        - F
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      AG:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Message number
                      NEWOBJ:
                        type: string
                        maxLength: 1
                        description: 'New Section  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      VAR1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VAR2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VAR3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VAR4:
                        type: string
                        maxLength: 50
                        description: Message Variable
              required:
              - IS_REPORT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CT_PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        LEVEL:
                          type: integer
                          format: int64
                          description: 'Log Level  enumValues: 3=Overview level for logging all work steps,1=Statistics level for summary of program results,2=Error level for logging incorrect results,4=Detailed level, additional information for the Hotline'
                          enum:
                          - '3'
                          - '1'
                          - '2'
                          - '4'
                        SEVERITY:
                          type: string
                          maxLength: 1
                          description: 'Error severity('' '',W(arning),E(rror),A(bnormal termination))  enumValues: W=Warning,""=Function Not Executed Yet,A=Internal Error, Operation Canceled,S=Status Message,E=Error: Could not Execute Function,N=Function Executed Successfully,I=Information,F=Fatal error'
                          enum:
                          - W
                          - ''
                          - A
                          - S
                          - E
                          - N
                          - I
                          - F
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        AG:
                          type: string
                          maxLength: 20
                          description: Application Area
                        MSGNR:
                          type: string
                          maxLength: 3
                          description: Message number
                        NEWOBJ:
                          type: string
                          maxLength: 1
                          description: 'New Section  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        VAR1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VAR2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VAR3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VAR4:
                          type: string
                          maxLength: 50
                          description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
