openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_ANSWER_READMULTIPLE:
    post:
      tags:
      - BEANSWER
      summary: Read answers
      operationId: /rfc/BAPI_ANSWER_READMULTIPLE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ANSWERSFORTEMPLATE:
                  type: string
                  maxLength: 20
                  description: Customizing templates entity table
                FROMTIMESTAMP:
                  type: integer
                  format: int64
                  description: Time stamp in short form (Local date and time/format)
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language key
                LANGUAGEISO:
                  type: string
                  maxLength: 2
                  description: Language according to ISO 639
                LASTUSER:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: Last changed on/by
                NAMESONLY:
                  type: string
                  maxLength: 1
                  description: Only read texts
                READ_DOMINANT:
                  type: string
                  maxLength: 1
                  description: Data element for Flag - Any use
                ANSWERSFORNODES:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                ANSWERSFORQUESTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 20
                        description: Object definition
                HEADERS:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      QUEST_ID:
                        type: string
                        maxLength: 20
                        description: Unique question ID
                      NODE_GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      DOMINANT:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Answer status  enumValues: 5=Pre-Answered in Template,3=To Be Approved,""=Not Yet Answered,4=Approved,2=Answered,1=Open/Clarification Required'
                        enum:
                        - '5'
                        - '3'
                        - ''
                        - '4'
                        - '2'
                        - '1'
                      TEMPLATE:
                        type: string
                        maxLength: 20
                        description: Template ID
                LONGTEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      SEQUENCE:
                        type: integer
                        format: int32
                        description: Sequential number
                      FORMAT_COL:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TEXT_LINE:
                        type: string
                        maxLength: 132
                        description: Text Line
                SELECTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      GUID:
                        type: string
                        format: byte
                        description: 16 byte GUID
                      CHOICE:
                        type: string
                        maxLength: 15
                        description: Possible selection ID
                      FIX:
                        type: string
                        maxLength: 1
                        description: 'Flag: Fixed answer  enumValues: ""=Attribute does not apply,X=Attribute applies'
                        enum:
                        - ''
                        - X
                      NODISP:
                        type: string
                        maxLength: 1
                        description: 'Flag: Do not display  enumValues: ""=Attribute does not apply,X=Attribute applies'
                        enum:
                        - ''
                        - X
                      SELECTED:
                        type: string
                        maxLength: 1
                        description: 'Answer selected  enumValues: ""=Attribute does not apply,X=Attribute applies'
                        enum:
                        - ''
                        - X
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ANSWERSFORNODES:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                  ANSWERSFORQUESTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: string
                          maxLength: 20
                          description: Object definition
                  HEADERS:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        QUEST_ID:
                          type: string
                          maxLength: 20
                          description: Unique question ID
                        NODE_GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        DOMINANT:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        STATUS:
                          type: string
                          maxLength: 1
                          description: 'Answer status  enumValues: 5=Pre-Answered in Template,3=To Be Approved,""=Not Yet Answered,4=Approved,2=Answered,1=Open/Clarification Required'
                          enum:
                          - '5'
                          - '3'
                          - ''
                          - '4'
                          - '2'
                          - '1'
                        TEMPLATE:
                          type: string
                          maxLength: 20
                          description: Template ID
                  LONGTEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        SEQUENCE:
                          type: integer
                          format: int32
                          description: Sequential number
                        FORMAT_COL:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TEXT_LINE:
                          type: string
                          maxLength: 132
                          description: Text Line
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  SELECTIONS:
                    type: array
                    items:
                      type: object
                      properties:
                        GUID:
                          type: string
                          format: byte
                          description: 16 byte GUID
                        CHOICE:
                          type: string
                          maxLength: 15
                          description: Possible selection ID
                        FIX:
                          type: string
                          maxLength: 1
                          description: 'Flag: Fixed answer  enumValues: ""=Attribute does not apply,X=Attribute applies'
                          enum:
                          - ''
                          - X
                        NODISP:
                          type: string
                          maxLength: 1
                          description: 'Flag: Do not display  enumValues: ""=Attribute does not apply,X=Attribute applies'
                          enum:
                          - ''
                          - X
                        SELECTED:
                          type: string
                          maxLength: 1
                          description: 'Answer selected  enumValues: ""=Attribute does not apply,X=Attribute applies'
                          enum:
                          - ''
                          - X
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
