openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_PROGRAM_READ:
    post:
      tags:
      - SIFP
      operationId: /rfc/RPY_PROGRAM_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                ONLY_SOURCE:
                  type: string
                  default: ' '
                  maxLength: 1
                ONLY_TEXTS:
                  type: string
                  default: ' '
                  maxLength: 1
                PROGRAM_NAME:
                  type: string
                  maxLength: 40
                READ_LATEST_VERSION:
                  type: string
                  default: ' '
                  maxLength: 1
                WITH_INCLUDELIST:
                  type: string
                  default: X
                  maxLength: 1
                WITH_LOWERCASE:
                  type: string
                  default: ' '
                  maxLength: 1
                INCLUDE_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      INCLNAME:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      TITLE:
                        type: string
                        maxLength: 255
                        description: Language-dependent text in ABAP/4 text pool
                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
                TEXTELEMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 1
                        description: ABAP/4 text pool ID (selection text/numbered text)
                      KEY:
                        type: string
                        maxLength: 8
                        description: Text element key (number/selection name)
                      ENTRY:
                        type: string
                        maxLength: 255
                        description: Language-dependent text in ABAP/4 text pool
                      LENGTH:
                        type: integer
                        format: int32
                        description: Reserved length for text (with language reserve)
              required:
              - PROGRAM_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PROG_INF:
                    type: object
                    properties:
                      PROGNAME:
                        type: string
                        maxLength: 40
                        description: ABAP Program Name
                      PROG_TYPE:
                        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
                      CODE_LOCK:
                        type: string
                        maxLength: 1
                        description: Source code protection
                      EDIT_LOCK:
                        type: string
                        maxLength: 1
                        description: 'Editor lock flag  enumValues: X=Switch on,""=Switch off'
                        enum:
                        - X
                        - ''
                      UPPLOWCASE:
                        type: string
                        maxLength: 1
                        description: Case-Sensitive
                      AUTH_GROUP:
                        type: string
                        maxLength: 8
                        description: Authorization Group
                      DBAPPL:
                        type: string
                        maxLength: 1
                        description: Application database
                      DBNAME:
                        type: string
                        maxLength: 2
                        description: Logical database
                      SELSCREEN:
                        type: string
                        maxLength: 3
                        description: Selection screen version
                      CREAT_USER:
                        type: string
                        maxLength: 12
                        description: Author
                      CREAT_DATE:
                        type: string
                        format: date
                        description: Created on
                      MOD_USER:
                        type: string
                        maxLength: 12
                        description: Last changed by
                      MOD_DATE:
                        type: string
                        format: date
                        description: Changed On
                      VERSION:
                        type: string
                        maxLength: 6
                        description: Version number
                      RELEASE:
                        type: string
                        maxLength: 4
                        description: Level
                      STATUS:
                        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
                      MANDANT:
                        type: string
                        maxLength: 3
                        description: Client
                      MASTERLANG:
                        type: string
                        maxLength: 1
                        description: Master Language
                      FIXP_ARITH:
                        type: string
                        maxLength: 1
                        description: 'Fixed point arithmetic  enumValues: X=Switch on,""=Switch off'
                        enum:
                        - X
                        - ''
                      START_VARI:
                        type: string
                        maxLength: 1
                        description: 'Start only via variant  enumValues: X=Switch on,""=Switch off'
                        enum:
                        - X
                        - ''
                      AUTO_GENER:
                        type: string
                        maxLength: 1
                        description: Automatically generated program
                  INCLUDE_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        INCLNAME:
                          type: string
                          maxLength: 40
                          description: ABAP Program Name
                        TITLE:
                          type: string
                          maxLength: 255
                          description: Language-dependent text in ABAP/4 text pool
                  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
                  TEXTELEMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 1
                          description: ABAP/4 text pool ID (selection text/numbered text)
                        KEY:
                          type: string
                          maxLength: 8
                          description: Text element key (number/selection name)
                        ENTRY:
                          type: string
                          maxLength: 255
                          description: Language-dependent text in ABAP/4 text pool
                        LENGTH:
                          type: integer
                          format: int32
                          description: Reserved length for text (with language reserve)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
