openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FASU_HANDLE_1_VARIANT_RFC:
    post:
      tags:
      - ASU5
      summary: handel on single variant for one report (RFC)
      operationId: /rfc/FASU_HANDLE_1_VARIANT_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
                IS_VARID:
                  type: object
                  properties:
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    REPORT:
                      type: string
                      maxLength: 40
                      description: 'ABAP: Program Name in Variant Key'
                    VARIANT:
                      type: string
                      maxLength: 14
                      description: 'ABAP: Name of variant (without program name)'
                    FLAG1:
                      type: string
                      maxLength: 1
                      description: CHAR01 data element for SYST
                    FLAG2:
                      type: string
                      maxLength: 1
                      description: CHAR01 data element for SYST
                    TRANSPORT:
                      type: string
                      maxLength: 1
                      description: System variant - transported automatically
                    ENVIRONMNT:
                      type: string
                      maxLength: 1
                      description: 'Environment for variant  enumValues: B=Background,A=Background and online,O=Online'
                      enum:
                      - B
                      - A
                      - O
                    PROTECTED:
                      type: string
                      maxLength: 1
                      description: 'Flag (character)  enumValues: X='
                      enum:
                      - X
                    SECU:
                      type: string
                      maxLength: 8
                      description: Authorization Group
                    VERSION:
                      type: integer
                      format: int32
                      description: Version number of variant
                    ENAME:
                      type: string
                      maxLength: 12
                      description: User Name
                    EDAT:
                      type: string
                      format: date
                      description: (8-character) Date for SYST
                    ETIME:
                      type: string
                      maxLength: 6
                      description: TIME Data Element for SYST
                    AENAME:
                      type: string
                      maxLength: 12
                      description: User Name
                    AEDAT:
                      type: string
                      format: date
                      description: (8-character) Date for SYST
                    AETIME:
                      type: string
                      maxLength: 6
                      description: TIME Data Element for SYST
                    MLANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    XFLAG1:
                      type: string
                      format: byte
                      description: Flag for variant catalog
                    XFLAG2:
                      type: string
                      format: byte
                      description: Flag for variant catalog
                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
                IT_SELC:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 8
                        description: CHAR08 data element for SYST
                      PART:
                        type: string
                        maxLength: 5
                        description: CHAR05 data element for SYST
                      PAR1:
                        type: string
                        maxLength: 5
                        description: CHAR05 data element for SYST
                      PAR2:
                        type: string
                        maxLength: 5
                        description: CHAR05 data element for SYST
                      PARC:
                        type: string
                        maxLength: 5
                        description: CHAR05 data element for SYST
                      DBNA:
                        type: string
                        maxLength: 5
                        description: CHAR05 data element for SYST
                      FLG0:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      FLG1:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      FLG2:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      FLG3:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      FLG4:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      NO_DISPLAY:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      PARM:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                      DBSE:
                        type: string
                        maxLength: 1
                        description: CHAR01 data element for SYST
                IT_SSCR:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 8
                        description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                      NUMB:
                        type: integer
                        format: int32
                        description: 'ABAP: Sequential selection number'
                      KIND:
                        type: string
                        maxLength: 1
                        description: 'ABAP: Type of selection'
                      OLENGTH:
                        type: integer
                        format: int32
                        description: 'ABAP: Output length of selection condition'
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'ABAP/4: Selection field type'
                      DTYP:
                        type: string
                        maxLength: 4
                        description: 'ABAP: Dictionary type of a selection'
                      DBFIELD:
                        type: string
                        maxLength: 132
                        description: 'ABAP: Reference field for selection'
                      MISCELL:
                        type: string
                        maxLength: 30
                        description: 'Load table SSCR: Field for all purposes'
                      DB:
                        type: string
                        maxLength: 1
                        description: 'ABAP/4: Flag: Selection of log. database?'
                      APPENDAGE:
                        type: string
                        maxLength: 1
                        description: 'ABAP/4: Flag for various purposes (selections)'
                      OFFSET:
                        type: integer
                        format: int32
                        description: 'ABAP: Offset on selection screen'
                      LENGTH:
                        type: integer
                        format: int32
                        description: 'ABAP/4: Length of selection field'
                      MATCHCODE:
                        type: string
                        maxLength: 30
                        description: 'ABAP/4: Matchcode entry on selection screen'
                      SPAGPA:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      LOWER:
                        type: string
                        maxLength: 1
                        description: 'ABAP: Is upper/lower case allowed in selection?  enumValues: X='
                        enum:
                        - X
                      NOSELSET:
                        type: string
                        maxLength: 1
                        description: 'ABAP/4: No value set allowed for selection?'
                      GROUP1:
                        type: string
                        maxLength: 4
                        description: 'ABAP: Group ID of a selection on the screen'
                      FLAG1:
                        type: string
                        format: byte
                        description: Flag for selection screen description
                      FLAG2:
                        type: string
                        format: byte
                        description: Flag for selection screen description
                      FLAG3:
                        type: string
                        format: byte
                        description: Flag for selection screen description
                      FLAG4:
                        type: string
                        format: byte
                        description: Flag for selection screen description
              required:
              - IS_REPORT
              - IS_VARID
      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
                  IT_SELC:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 8
                          description: CHAR08 data element for SYST
                        PART:
                          type: string
                          maxLength: 5
                          description: CHAR05 data element for SYST
                        PAR1:
                          type: string
                          maxLength: 5
                          description: CHAR05 data element for SYST
                        PAR2:
                          type: string
                          maxLength: 5
                          description: CHAR05 data element for SYST
                        PARC:
                          type: string
                          maxLength: 5
                          description: CHAR05 data element for SYST
                        DBNA:
                          type: string
                          maxLength: 5
                          description: CHAR05 data element for SYST
                        FLG0:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        FLG1:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        FLG2:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        FLG3:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        FLG4:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        NO_DISPLAY:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        PARM:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                        DBSE:
                          type: string
                          maxLength: 1
                          description: CHAR01 data element for SYST
                  IT_SSCR:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 8
                          description: 'ABAP/4: Name of SELECT-OPTION / PARAMETER'
                        NUMB:
                          type: integer
                          format: int32
                          description: 'ABAP: Sequential selection number'
                        KIND:
                          type: string
                          maxLength: 1
                          description: 'ABAP: Type of selection'
                        OLENGTH:
                          type: integer
                          format: int32
                          description: 'ABAP: Output length of selection condition'
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'ABAP/4: Selection field type'
                        DTYP:
                          type: string
                          maxLength: 4
                          description: 'ABAP: Dictionary type of a selection'
                        DBFIELD:
                          type: string
                          maxLength: 132
                          description: 'ABAP: Reference field for selection'
                        MISCELL:
                          type: string
                          maxLength: 30
                          description: 'Load table SSCR: Field for all purposes'
                        DB:
                          type: string
                          maxLength: 1
                          description: 'ABAP/4: Flag: Selection of log. database?'
                        APPENDAGE:
                          type: string
                          maxLength: 1
                          description: 'ABAP/4: Flag for various purposes (selections)'
                        OFFSET:
                          type: integer
                          format: int32
                          description: 'ABAP: Offset on selection screen'
                        LENGTH:
                          type: integer
                          format: int32
                          description: 'ABAP/4: Length of selection field'
                        MATCHCODE:
                          type: string
                          maxLength: 30
                          description: 'ABAP/4: Matchcode entry on selection screen'
                        SPAGPA:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        LOWER:
                          type: string
                          maxLength: 1
                          description: 'ABAP: Is upper/lower case allowed in selection?  enumValues: X='
                          enum:
                          - X
                        NOSELSET:
                          type: string
                          maxLength: 1
                          description: 'ABAP/4: No value set allowed for selection?'
                        GROUP1:
                          type: string
                          maxLength: 4
                          description: 'ABAP: Group ID of a selection on the screen'
                        FLAG1:
                          type: string
                          format: byte
                          description: Flag for selection screen description
                        FLAG2:
                          type: string
                          format: byte
                          description: Flag for selection screen description
                        FLAG3:
                          type: string
                          format: byte
                          description: Flag for selection screen description
                        FLAG4:
                          type: string
                          format: byte
                          description: Flag for selection screen description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
