openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SUSR_FIELD_VALUE_REQUEST_RFC:
    post:
      tags:
      - SUF4
      summary: F4 help for fields that are only known at runtime
      operationId: /rfc/SUSR_FIELD_VALUE_REQUEST_RFC
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALLBACK_FORM:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Form for callback before F4 start (-> long docu)
                CALLBACK_PROGRAM:
                  type: string
                  default: ' '
                  maxLength: 40
                  description: Program for callback before F4 start
                DISPLAY:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Override readiness for input
                DYNPNR:
                  type: string
                  default: ' '
                  maxLength: 4
                  description: Screen Number
                DYNPPROG:
                  type: string
                  default: ' '
                  maxLength: 40
                  description: Current Program
                DYNPROFIELD:
                  type: string
                  default: ' '
                  maxLength: 132
                  description: Name of screen field for value return
                FIELDNAME:
                  type: string
                  maxLength: 30
                  description: Field name from Dictionary
                MULTIPLE_CHOICE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Switch on multiple selection
                SEARCHHELP:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Search help as screen field attribute
                SHLPPARAM:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Search help parameter in screen field
                STEPL:
                  type: integer
                  format: int32
                  default: 0
                  description: Steploop line of screen field
                TABNAME:
                  type: string
                  maxLength: 30
                  description: Table/structure name from Dictionary
                VALUE:
                  type: string
                  default: ' '
                  maxLength: 255
                  description: Field contents for F4 call
                RETURN_TAB:
                  type: array
                  items:
                    type: object
                    properties:
                      SHLPNAME:
                        type: string
                        maxLength: 30
                        description: Name of a search help
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      RECORDPOS:
                        type: integer
                        format: int64
                        description: Record position in the matchcode F4 output table
                      FIELDVAL:
                        type: string
                        maxLength: 132
                        description: Field contents, min./max. value
                      RETFIELD:
                        type: string
                        maxLength: 132
                        description: Field name
              required:
              - FIELDNAME
              - TABNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_TAB:
                    type: array
                    items:
                      type: object
                      properties:
                        SHLPNAME:
                          type: string
                          maxLength: 30
                          description: Name of a search help
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        RECORDPOS:
                          type: integer
                          format: int64
                          description: Record position in the matchcode F4 output table
                        FIELDVAL:
                          type: string
                          maxLength: 132
                          description: Field contents, min./max. value
                        RETFIELD:
                          type: string
                          maxLength: 132
                          description: Field name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
