openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RPY_MESSAGE_COMPOSE:
    post:
      tags:
      - SIGE
      summary: Format a message
      operationId: /rfc/RPY_MESSAGE_COMPOSE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language key
                MESSAGE_ID:
                  type: string
                  maxLength: 20
                  description: Message Class
                MESSAGE_NUMBER:
                  type: integer
                  format: int64
                  description: Message Number
                MESSAGE_VAR1:
                  type: string
                  default: ' '
                  maxLength: 50
                  description: Variable 1
                MESSAGE_VAR2:
                  type: string
                  default: ' '
                  maxLength: 50
                  description: Variable 2
                MESSAGE_VAR3:
                  type: string
                  default: ' '
                  maxLength: 50
                  description: Variable 3
                MESSAGE_VAR4:
                  type: string
                  default: ' '
                  maxLength: 50
                  description: Variable 4
                LONGTEXT:
                  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_NUMBER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESSAGE_TEXT:
                    type: string
                    maxLength: 255
                    description: Message Text
                  LONGTEXT:
                    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.
