openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_MESSAGE_READ:
    post:
      tags:
      - SIFP
      operationId: /rfc/RPY_MESSAGE_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                MESSAGE_ID:
                  type: string
                  maxLength: 20
                  description: Message Class
                MESSAGE_NR:
                  type: string
                  maxLength: 3
                  description: Message Class
                WITH_DOCU:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Message Class
                DOCU_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      KEY_ID:
                        type: string
                        maxLength: 1
                        description: Line type ID with complex objects
                      OBJLINE:
                        type: string
                        maxLength: 72
                        description: 'EDIC: Program editor line'
                DOCU_TECH:
                  type: array
                  items:
                    type: object
                    properties:
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - MESSAGE_ID
              - MESSAGE_NR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGE_TEXT:
                    type: object
                    properties:
                      SPRSL:
                        type: string
                        maxLength: 1
                        description: Language Key
                      ARBGB:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MSGNR:
                        type: string
                        maxLength: 3
                        description: Message number
                      TEXT:
                        type: string
                        maxLength: 73
                        description: Message Text
                  DOCU_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        KEY_ID:
                          type: string
                          maxLength: 1
                          description: Line type ID with complex objects
                        OBJLINE:
                          type: string
                          maxLength: 72
                          description: 'EDIC: Program editor line'
                  DOCU_TECH:
                    type: array
                    items:
                      type: object
                      properties:
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
