openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TOCX_CREATE_VIEW_ON_DATABASE:
    post:
      tags:
      - DSYP
      summary: 'Structures: Create the view and write it to the database'
      operationId: /rfc/TOCX_CREATE_VIEW_ON_DATABASE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                OUTLINE_FROM:
                  type: string
                  maxLength: 12
                  description: Name of the structure to be modified
                OUTLINE_TO:
                  type: string
                  maxLength: 12
                  description: Name of the modified structure
                SPRAS:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: 'Flag: if ''X'', chapters are enabled.'
                SWITCH_ON_FLAG:
                  type: string
                  default: X
                  maxLength: 1
                  description: 'Flag: if ''X'', chapters are enabled.'
                VIEWNAME_FROM:
                  type: string
                  default: STANDARD
                  maxLength: 12
                  description: 'Flag: if ''X'', chapters are enabled.'
                VIEWNAME_TO:
                  type: string
                  default: ___NONE___
                  maxLength: 12
                  description: 'Flag: if ''X'', chapters are enabled.'
                VIEW_TITLE:
                  type: string
                  default: ' '
                  maxLength: 60
                  description: 'Flag: if ''X'', chapters are enabled.'
                VIEW_TYP:
                  type: string
                  maxLength: 4
                  description: 'Flag: if ''X'', chapters are enabled.'
                LIST_OF_CHAPTERS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOKCLASS:
                        type: string
                        maxLength: 4
                        description: 'Documentation: Class'
                      DOKNAME:
                        type: string
                        maxLength: 60
                        description: Documentation Object
                LIST_OF_CREATED_VIEWS:
                  type: array
                  items:
                    type: object
                    properties:
                      OUTLINE:
                        type: string
                        maxLength: 12
                        description: 'Structures: name of the structure'
                      VIEWNAME:
                        type: string
                        maxLength: 12
                        description: 'Structures: Name of View'
                      PAR_VIEW:
                        type: string
                        maxLength: 12
                        description: 'Structures: Name of View'
                      VIEW_TYP:
                        type: string
                        maxLength: 4
                        description: View type
                      FUSER:
                        type: string
                        maxLength: 12
                        description: Documentation created by
                      FDATE:
                        type: string
                        format: date
                        description: Date documentation was created
                      FTIME:
                        type: string
                        maxLength: 6
                        description: Time at which documentation was created
                      LUSER:
                        type: string
                        maxLength: 12
                        description: Documentation last changed by
                      LDATE:
                        type: string
                        format: date
                        description: Date of last change to documentation
                      LTIME:
                        type: string
                        maxLength: 6
                        description: Time of last change to documentation
                PARAMETERS_OF_VIEW:
                  type: array
                  items:
                    type: object
                    properties:
                      OUTLINE:
                        type: string
                        maxLength: 12
                        description: 'Structures: name of the structure'
                      VIEWNAME:
                        type: string
                        maxLength: 12
                        description: 'Structures: Name of View'
                      VIEW_TYP:
                        type: string
                        maxLength: 4
                        description: View type
                      SEQN4:
                        type: integer
                        format: int64
                        description: Sequential number, 5 characters
                      VIEW_DATA1:
                        type: string
                        maxLength: 20
                        description: Data field no. 1 for view
                      VIEW_DATA2:
                        type: string
                        maxLength: 65
                        description: Data field no. 2 for view
              required:
              - OUTLINE_FROM
              - OUTLINE_TO
              - VIEW_TYP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LIST_OF_CHAPTERS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOKCLASS:
                          type: string
                          maxLength: 4
                          description: 'Documentation: Class'
                        DOKNAME:
                          type: string
                          maxLength: 60
                          description: Documentation Object
                  LIST_OF_CREATED_VIEWS:
                    type: array
                    items:
                      type: object
                      properties:
                        OUTLINE:
                          type: string
                          maxLength: 12
                          description: 'Structures: name of the structure'
                        VIEWNAME:
                          type: string
                          maxLength: 12
                          description: 'Structures: Name of View'
                        PAR_VIEW:
                          type: string
                          maxLength: 12
                          description: 'Structures: Name of View'
                        VIEW_TYP:
                          type: string
                          maxLength: 4
                          description: View type
                        FUSER:
                          type: string
                          maxLength: 12
                          description: Documentation created by
                        FDATE:
                          type: string
                          format: date
                          description: Date documentation was created
                        FTIME:
                          type: string
                          maxLength: 6
                          description: Time at which documentation was created
                        LUSER:
                          type: string
                          maxLength: 12
                          description: Documentation last changed by
                        LDATE:
                          type: string
                          format: date
                          description: Date of last change to documentation
                        LTIME:
                          type: string
                          maxLength: 6
                          description: Time of last change to documentation
                  PARAMETERS_OF_VIEW:
                    type: array
                    items:
                      type: object
                      properties:
                        OUTLINE:
                          type: string
                          maxLength: 12
                          description: 'Structures: name of the structure'
                        VIEWNAME:
                          type: string
                          maxLength: 12
                          description: 'Structures: Name of View'
                        VIEW_TYP:
                          type: string
                          maxLength: 4
                          description: View type
                        SEQN4:
                          type: integer
                          format: int64
                          description: Sequential number, 5 characters
                        VIEW_DATA1:
                          type: string
                          maxLength: 20
                          description: Data field no. 1 for view
                        VIEW_DATA2:
                          type: string
                          maxLength: 65
                          description: Data field no. 2 for view
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
