openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_PROGRAM_INSERT:
    post:
      tags:
      - SIFP
      operationId: /rfc/RPY_PROGRAM_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                APPLICATION:
                  type: string
                  default: X
                  maxLength: 1
                AUTHORIZATION_GROUP:
                  type: string
                  default: ' '
                  maxLength: 8
                  description: Authorization Group
                DEVELOPMENT_CLASS:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Package
                EDIT_LOCK:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Editor lock flag
                LOG_DB:
                  type: string
                  default: ' '
                  maxLength: 3
                  description: Name of Logical Database
                PROGRAM_NAME:
                  type: string
                  maxLength: 40
                PROGRAM_TYPE:
                  type: string
                  default: '1'
                  maxLength: 1
                R2_FLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                SAVE_INACTIVE:
                  type: string
                  default: ' '
                  maxLength: 1
                TEMPORARY:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Temporary Object
                TITLE_STRING:
                  type: string
                  maxLength: 70
                TRANSPORT_NUMBER:
                  type: string
                  default: ' '
                  maxLength: 20
                SOURCE:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
                SOURCE_EXTENDED:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: Text, 255 Characters
              required:
              - PROGRAM_NAME
              - TITLE_STRING
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SOURCE:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
                  SOURCE_EXTENDED:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: Text, 255 Characters
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
