openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_SCRP_GR_PROG:
    post:
      tags:
      - SEUS
      operationId: /rfc/RS_SCRP_GR_PROG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PROGRAM:
                  type: string
                  maxLength: 40
                  description: Scren header (for identifying program name)
                PROG_FIELD:
                  type: string
                  maxLength: 132
                  description: (Generic) field name
                PFIELD:
                  type: array
                  items:
                    type: object
                    properties:
                      FNAM:
                        type: string
                        maxLength: 132
                        description: Field name
                      ITYP:
                        type: string
                        maxLength: 1
                        description: Internal type from ABAP Dictionary
                      TYPE:
                        type: string
                        maxLength: 4
                        description: Field Format
                      LENG:
                        type: string
                        format: byte
                        description: Text length
                      FLG1:
                        type: string
                        format: byte
                        description: Flag byte 1
                      FLG2:
                        type: string
                        format: byte
                        description: Flag byte 2
                      FLG3:
                        type: string
                        format: byte
                        description: Flag byte 3
                      FMB1:
                        type: string
                        format: byte
                        description: Format byte
                      FMB2:
                        type: string
                        format: byte
                        description: Format byte extension
                      ALLOWED:
                        type: string
                        maxLength: 1
                        description: 'Flag: Data type allowed in screen  enumValues: X='
                        enum:
                        - X
                      GTYP:
                        type: string
                        maxLength: 1
                        description: Graphical type ( space, 'C')
              required:
              - PROGRAM
              - PROG_FIELD
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MESS_CODE:
                    type: string
                    maxLength: 6
                    description: Message code in the format 'abbccc'
                  MESS_TEXT:
                    type: string
                    maxLength: 158
                    description: Message text
                  PFIELD:
                    type: array
                    items:
                      type: object
                      properties:
                        FNAM:
                          type: string
                          maxLength: 132
                          description: Field name
                        ITYP:
                          type: string
                          maxLength: 1
                          description: Internal type from ABAP Dictionary
                        TYPE:
                          type: string
                          maxLength: 4
                          description: Field Format
                        LENG:
                          type: string
                          format: byte
                          description: Text length
                        FLG1:
                          type: string
                          format: byte
                          description: Flag byte 1
                        FLG2:
                          type: string
                          format: byte
                          description: Flag byte 2
                        FLG3:
                          type: string
                          format: byte
                          description: Flag byte 3
                        FMB1:
                          type: string
                          format: byte
                          description: Format byte
                        FMB2:
                          type: string
                          format: byte
                          description: Format byte extension
                        ALLOWED:
                          type: string
                          maxLength: 1
                          description: 'Flag: Data type allowed in screen  enumValues: X='
                          enum:
                          - X
                        GTYP:
                          type: string
                          maxLength: 1
                          description: Graphical type ( space, 'C')
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
