openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IAC_GET_DYNPRO_INFO:
    post:
      tags:
      - SIAC
      operationId: /rfc/IAC_GET_DYNPRO_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DYNPRO:
                  type: string
                  maxLength: 4
                  description: 'ABAP Program: Number of Current Screen'
                PROGRAM:
                  type: string
                  maxLength: 40
                  description: 'ABAP Program: Current Main Program'
                FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      FNAM:
                        type: string
                        maxLength: 132
                        description: Field name
                      DIDX:
                        type: string
                        format: byte
                        description: Box height
                      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
                      FILL:
                        type: string
                        maxLength: 1
                        description: Padding character, leading zero
                      FMB1:
                        type: string
                        format: byte
                        description: Format byte
                      FMB2:
                        type: string
                        format: byte
                        description: Format byte extension
                      COLR:
                        type: string
                        maxLength: 1
                        description: Color
                      LENG:
                        type: string
                        format: byte
                        description: Text length
                      LINE:
                        type: string
                        format: byte
                        description: Line
                      COLN:
                        type: string
                        format: byte
                        description: Column
                      LTYP:
                        type: string
                        maxLength: 1
                        description: Loop type
                      LANF:
                        type: string
                        format: byte
                        description: Loop start line
                      LBLK:
                        type: string
                        format: byte
                        description: Loop block size
                      LREP:
                        type: string
                        format: byte
                        description: Loop repeat factor
                      FMKY:
                        type: string
                        maxLength: 3
                        description: Function menu key
                      PAID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      UCNV:
                        type: string
                        maxLength: 5
                        description: User conversion routine
                      TYPE:
                        type: string
                        maxLength: 4
                        description: Field Format
                      AUTH:
                        type: string
                        maxLength: 3
                        description: Authorization ID
                      WNAM:
                        type: string
                        maxLength: 132
                        description: Currency key field
                      DMAC:
                        type: string
                        maxLength: 132
                        description: Matchcode file name
                      GRP1:
                        type: string
                        maxLength: 3
                        description: Modification group 1
                      GRP2:
                        type: string
                        maxLength: 3
                        description: Modification group 2
                      GRP3:
                        type: string
                        maxLength: 3
                        description: Modification group 3
                      GRP4:
                        type: string
                        maxLength: 3
                        description: Modification group 4
                      ITYP:
                        type: string
                        maxLength: 1
                        description: Internal type from ABAP Dictionary
                      AGLT:
                        type: string
                        format: byte
                        description: Number of valid positions
                      ADEZ:
                        type: string
                        format: byte
                        description: No. of decimal places
                      STXT:
                        type: string
                        maxLength: 132
                        description: Text
                      RES1:
                        type: string
                        maxLength: 255
                        description: Screen source reserve field area without structure
                      RES2:
                        type: string
                        maxLength: 255
                        description: Screen source reserve field area without structure
              required:
              - DYNPRO
              - PROGRAM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        FNAM:
                          type: string
                          maxLength: 132
                          description: Field name
                        DIDX:
                          type: string
                          format: byte
                          description: Box height
                        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
                        FILL:
                          type: string
                          maxLength: 1
                          description: Padding character, leading zero
                        FMB1:
                          type: string
                          format: byte
                          description: Format byte
                        FMB2:
                          type: string
                          format: byte
                          description: Format byte extension
                        COLR:
                          type: string
                          maxLength: 1
                          description: Color
                        LENG:
                          type: string
                          format: byte
                          description: Text length
                        LINE:
                          type: string
                          format: byte
                          description: Line
                        COLN:
                          type: string
                          format: byte
                          description: Column
                        LTYP:
                          type: string
                          maxLength: 1
                          description: Loop type
                        LANF:
                          type: string
                          format: byte
                          description: Loop start line
                        LBLK:
                          type: string
                          format: byte
                          description: Loop block size
                        LREP:
                          type: string
                          format: byte
                          description: Loop repeat factor
                        FMKY:
                          type: string
                          maxLength: 3
                          description: Function menu key
                        PAID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        UCNV:
                          type: string
                          maxLength: 5
                          description: User conversion routine
                        TYPE:
                          type: string
                          maxLength: 4
                          description: Field Format
                        AUTH:
                          type: string
                          maxLength: 3
                          description: Authorization ID
                        WNAM:
                          type: string
                          maxLength: 132
                          description: Currency key field
                        DMAC:
                          type: string
                          maxLength: 132
                          description: Matchcode file name
                        GRP1:
                          type: string
                          maxLength: 3
                          description: Modification group 1
                        GRP2:
                          type: string
                          maxLength: 3
                          description: Modification group 2
                        GRP3:
                          type: string
                          maxLength: 3
                          description: Modification group 3
                        GRP4:
                          type: string
                          maxLength: 3
                          description: Modification group 4
                        ITYP:
                          type: string
                          maxLength: 1
                          description: Internal type from ABAP Dictionary
                        AGLT:
                          type: string
                          format: byte
                          description: Number of valid positions
                        ADEZ:
                          type: string
                          format: byte
                          description: No. of decimal places
                        STXT:
                          type: string
                          maxLength: 132
                          description: Text
                        RES1:
                          type: string
                          maxLength: 255
                          description: Screen source reserve field area without structure
                        RES2:
                          type: string
                          maxLength: 255
                          description: Screen source reserve field area without structure
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
