openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/READ_SOURCE_WITH_ENHANCEMENTS:
    post:
      tags:
      - ED_UTILITIES
      operationId: /rfc/READ_SOURCE_WITH_ENHANCEMENTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                NAME:
                  type: string
                  maxLength: 120
                NO_ENHANCEMENTS:
                  type: string
                  default: ' '
                  maxLength: 1
                STATE:
                  type: string
                  default: A
                  maxLength: 1
                S_TYPE:
                  type: string
                  maxLength: 3
                SOURCE:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: Text, 255 Characters
              required:
              - NAME
              - S_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PROGDIR:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      STATE:
                        type: string
                        maxLength: 1
                        description: 'ABAP: Program Status (Active, Saved, Transported...)'
                      SQLX:
                        type: string
                        maxLength: 1
                        description: Source code protection
                      EDTX:
                        type: string
                        maxLength: 1
                        description: 'Editor lock flag  enumValues: X=Switch on,""=Switch off'
                        enum:
                        - X
                        - ''
                      VARCL:
                        type: string
                        maxLength: 1
                        description: Case-Sensitive
                      DBAPL:
                        type: string
                        maxLength: 1
                        description: Application database
                      DBNA:
                        type: string
                        maxLength: 2
                        description: Logical database
                      CLAS:
                        type: string
                        maxLength: 4
                        description: Program class
                      TYPE:
                        type: string
                        maxLength: 3
                        description: Selection screen version
                      OCCURS:
                        type: string
                        maxLength: 1
                        description: Automatically generated program
                      SUBC:
                        type: string
                        maxLength: 1
                        description: 'Program type  enumValues: X=XSLT Program,S=Subroutine Pool,F=Function group,I=INCLUDE program,M=Module Pool,J=Interface pool,T=Type Pool,K=Class pool,1=Executable program'
                        enum:
                        - X
                        - S
                        - F
                        - I
                        - M
                        - J
                        - T
                        - K
                        - '1'
                      APPL:
                        type: string
                        maxLength: 1
                        description: Application
                      SECU:
                        type: string
                        maxLength: 8
                        description: Authorization Group
                      CNAM:
                        type: string
                        maxLength: 12
                        description: Author
                      CDAT:
                        type: string
                        format: date
                        description: Created on
                      UNAM:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      UDAT:
                        type: string
                        format: date
                        description: Changed On
                      VERN:
                        type: string
                        maxLength: 6
                        description: Version number
                      LEVL:
                        type: string
                        maxLength: 4
                        description: Level
                      RSTAT:
                        type: string
                        maxLength: 1
                        description: 'Status  enumValues: P=SAP Standard Production Program,""=,K=Customer Production Program,T=Test Program,S=System Program'
                        enum:
                        - P
                        - ''
                        - K
                        - T
                        - S
                      RMAND:
                        type: string
                        maxLength: 3
                        description: Client
                      RLOAD:
                        type: string
                        maxLength: 1
                        description: Master Language
                      FIXPT:
                        type: string
                        maxLength: 1
                        description: 'Fixed point arithmetic  enumValues: X=Switch on,""=Switch off'
                        enum:
                        - X
                        - ''
                      SSET:
                        type: string
                        maxLength: 1
                        description: 'Start only via variant  enumValues: X=Switch on,""=Switch off'
                        enum:
                        - X
                        - ''
                      SDATE:
                        type: string
                        format: date
                        description: 'Standard selection screen generation: Date'
                      STIME:
                        type: string
                        maxLength: 6
                        description: 'Standard selection screen generation: Time'
                      IDATE:
                        type: string
                        format: date
                        description: 'Selection screen generation: Date'
                      ITIME:
                        type: string
                        maxLength: 6
                        description: 'Selection screen generation: Time'
                      LDBNAME:
                        type: string
                        maxLength: 20
                        description: LDB name
                      UCCHECK:
                        type: string
                        maxLength: 1
                        description: Flag, if unicode check was performed
                  TRANSPORTKEY:
                    type: object
                    properties:
                      DEVCLASS:
                        type: string
                        maxLength: 30
                        description: Package
                      OBJ_TYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      OBJ_NAME:
                        type: string
                        maxLength: 40
                        description: Object Name in Object Directory
                      SUB_TYPE:
                        type: string
                        maxLength: 4
                        description: Object Type
                      SUB_NAME:
                        type: string
                        maxLength: 120
                        description: Object name in SUBKEY
                  SOURCE:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: Text, 255 Characters
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
