openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SCP_SEGMENTS_RFC1:
    post:
      tags:
      - SCPS
      operationId: /rfc/SCP_SEGMENTS_RFC1
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IM_SELECTION:
                  type: object
                  properties:
                    DIRECTION:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    TOP:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    SHOWCP:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    SHOWSEG:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    SHOWCHA:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    SHOWCOD:
                      type: string
                      maxLength: 1
                      description: Single-Character Flag
                    SOCHA:
                      type: array
                      items:
                        type: object
                        properties:
                          SIGN:
                            type: string
                            maxLength: 1
                            description: Type of SIGN component in row type of a Ranges type
                          OPTION:
                            type: string
                            maxLength: 2
                            description: Type of OPTION component in row type of a Ranges type
                          LOW:
                            type: string
                            maxLength: 6
                            description: Unicode character
                          HIGH:
                            type: string
                            maxLength: 6
                            description: Unicode character
                    SOCOD:
                      type: array
                      items:
                        type: object
                        properties:
                          SIGN:
                            type: string
                            maxLength: 1
                            description: Type of SIGN component in row type of a Ranges type
                          OPTION:
                            type: string
                            maxLength: 2
                            description: Type of OPTION component in row type of a Ranges type
                          LOW:
                            type: string
                            format: byte
                            description: Byte sequence
                          HIGH:
                            type: string
                            format: byte
                            description: Byte sequence
                    SOMBL:
                      type: array
                      items:
                        type: object
                        properties:
                          SIGN:
                            type: string
                            maxLength: 1
                            description: Type of SIGN component in row type of a Ranges type
                          OPTION:
                            type: string
                            maxLength: 2
                            description: Type of OPTION component in row type of a Ranges type
                          LOW:
                            type: integer
                            format: int32
                            description: Multi-Byte Length
                          HIGH:
                            type: integer
                            format: int32
                            description: Multi-Byte Length
                    SOCP:
                      type: array
                      items:
                        type: object
                        properties:
                          SIGN:
                            type: string
                            maxLength: 1
                            description: Type of SIGN component in row type of a Ranges type
                          OPTION:
                            type: string
                            maxLength: 2
                            description: Type of OPTION component in row type of a Ranges type
                          LOW:
                            type: integer
                            format: int64
                            description: SAP Character Set ID
                          HIGH:
                            type: integer
                            format: int64
                            description: SAP Character Set ID
                    SOSEG:
                      type: array
                      items:
                        type: object
                        properties:
                          SIGN:
                            type: string
                            maxLength: 1
                            description: Type of SIGN component in row type of a Ranges type
                          OPTION:
                            type: string
                            maxLength: 2
                            description: Type of OPTION component in row type of a Ranges type
                          LOW:
                            type: string
                            maxLength: 5
                            description: Name for Code Page Segment
                          HIGH:
                            type: string
                            maxLength: 5
                            description: Name for Code Page Segment
              required:
              - IM_SELECTION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EX_SET:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        CPCODEPAGE:
                          type: integer
                          format: int64
                          description: SAP Character Set ID
                        SEGID:
                          type: string
                          maxLength: 5
                          description: Name for Code Page Segment
                        CHARSUNIQ:
                          type: string
                          maxLength: 1
                          description: Character appears only once in code page (output)
                        POINTSUNIQ:
                          type: string
                          maxLength: 1
                          description: Code point appears only once in the code page (Input)
                        CHARID:
                          type: string
                          maxLength: 6
                          description: Unicode character
                        MBLEN:
                          type: integer
                          format: int32
                          description: Multi-Byte Length
                        CODE:
                          type: string
                          format: byte
                          description: Byte sequence
                        TEXT:
                          type: string
                          maxLength: 100
                          description: Character 100
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
