openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRM_SEND_EMAIL:
    post:
      tags:
      - SRM_FM_CALL_HANDLER_BASICS
      operationId: /rfc/SRM_SEND_EMAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_QUEUE:
                  type: object
                  properties:
                    SRTFD:
                      type: string
                      maxLength: 22
                      description: User-defined key in table INDX
                    RATING:
                      type: string
                      maxLength: 4
                      description: 'Rating  enumValues: @0A@=Red,@09@=Yellow,@Q3@=Initial,@08@=Green'
                      enum:
                      - '@0A@'
                      - '@09@'
                      - '@Q3@'
                      - '@08@'
                    FUNCNAME:
                      type: string
                      maxLength: 30
                      description: Name of Function Module
                    OBJECT_TYPE:
                      type: string
                      maxLength: 10
                      description: Object type
                    OBJECT_ID:
                      type: string
                      maxLength: 70
                      description: BOR Object Number
                    LOGICAL_SYSTEM:
                      type: string
                      maxLength: 10
                      description: Logical System
                    OBJECT_GUID:
                      type: string
                      format: byte
                      description: Object GUID
                    STATUS:
                      type: string
                      maxLength: 10
                      description: 'Status of the Call Element  enumValues: FINISHED=Successful Call,APPL_ERROR=Application Error,RFC_ERROR=RFC Error,INITIAL=Initial,LOCK_ERROR=Lock'
                      enum:
                      - FINISHED
                      - APPL_ERROR
                      - RFC_ERROR
                      - INITIAL
                      - LOCK_ERROR
                    ITERATION_NUM:
                      type: integer
                      format: int32
                      description: Repeat Counter
                    PRIORITY:
                      type: integer
                      format: int32
                      description: Priority
                    TIMESTAMP:
                      type: integer
                      format: int64
                      description: UTC Time Stamp
                    AETIME:
                      type: string
                      maxLength: 6
                      description: Time of Registration
                    AEDAT:
                      type: string
                      format: date
                      description: Registration Date
                    USERA:
                      type: string
                      maxLength: 12
                      description: User name
                    NUMBER_EMAILS:
                      type: integer
                      format: int32
                      description: Number of E-Mails
                    FREETEXT:
                      type: string
                      maxLength: 64
                      description: Comment
                    RUNTIME:
                      type: integer
                      format: int32
                      description: Runtime in Microseconds
                IT_RECEIVER:
                  type: array
                  items:
                    type: object
                    properties:
                      RECEIVER:
                        type: string
                        maxLength: 1215
                        description: 'SAPoffice: Name of the recipient of a document (also ext.)'
                      REC_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Specification of recipient type  enumValues: K=Pager/SMS,G=Organization object/ID,J=SAP object,H=Organizational unit/position,D=X.500 Address,R=SAP user in another SAP System,""=Name,P=Private distribution list,X=X.400 address,O=SAPoffice user,A=External address,L=Telex number,1=Other Recipient Types,F=Fax number,C=Shared distribution list,B=SAP user,U=Internet address'
                        enum:
                        - K
                        - G
                        - J
                        - H
                        - D
                        - R
                        - ''
                        - P
                        - X
                        - O
                        - A
                        - L
                        - '1'
                        - F
                        - C
                        - B
                        - U
                      REC_ID:
                        type: string
                        maxLength: 17
                        description: Recipient ID
                      REPLY_DOC:
                        type: string
                        maxLength: 46
                        description: Object ID of the document being replied to
                      REC_DATE:
                        type: string
                        format: date
                        description: Date document was received
                      PROXY_ID:
                        type: string
                        maxLength: 17
                        description: ID of the substitute who (also) received the object
                      RETRN_CODE:
                        type: string
                        maxLength: 4
                        description: Return code
                      EXPRESS:
                        type: string
                        maxLength: 1
                        description: 'Send express  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      COPY:
                        type: string
                        maxLength: 1
                        description: 'Send: As copy  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      BLIND_COPY:
                        type: string
                        maxLength: 1
                        description: 'Send as a blind copy  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NO_FORWARD:
                        type: string
                        maxLength: 1
                        description: 'You cannot forward this message  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NO_PRINT:
                        type: string
                        maxLength: 1
                        description: 'Object cannot be printed  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      TO_ANSWER:
                        type: string
                        maxLength: 1
                        description: 'A reply must be sent for this object  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      TO_DO_EXPL:
                        type: string
                        maxLength: 1
                        description: 'ToDo by all recipients  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      TO_DO_GRP:
                        type: string
                        maxLength: 1
                        description: ToDo group of the recipient
                      COM_TYPE:
                        type: string
                        maxLength: 6
                        description: 'Transmission Method (Fax, Telex, ...)  enumValues: ""=SAPoffice internal,TELEX=Telex,TELFAX=Fax'
                        enum:
                        - ''
                        - TELEX
                        - TELFAX
                      LFDNR:
                        type: string
                        maxLength: 3
                        description: 'Addresses: Sequence Number of Address'
                      FAX:
                        type: string
                        maxLength: 30
                        description: 'SAPoffice: Fax number'
                      COUNTRY:
                        type: string
                        maxLength: 3
                        description: Country Key
                      SPOOL_ID:
                        type: string
                        maxLength: 5
                        description: ID of the spool entry (e.g. after faxing)
                      NOTIF_DEL:
                        type: string
                        maxLength: 1
                        description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      NOTIF_READ:
                        type: string
                        maxLength: 1
                        description: Read acknowledgment expected
                      NOTIF_NDEL:
                        type: string
                        maxLength: 1
                        description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
                      SAP_BODY:
                        type: string
                        maxLength: 1
                        description: 'Send externally with SAP data part  enumValues: X=Value for activated,""=Value for deactivated'
                        enum:
                        - X
                        - ''
              required:
              - IS_QUEUE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_RECEIVER:
                    type: array
                    items:
                      type: object
                      properties:
                        RECEIVER:
                          type: string
                          maxLength: 1215
                          description: 'SAPoffice: Name of the recipient of a document (also ext.)'
                        REC_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Specification of recipient type  enumValues: K=Pager/SMS,G=Organization object/ID,J=SAP object,H=Organizational unit/position,D=X.500 Address,R=SAP user in another SAP System,""=Name,P=Private distribution list,X=X.400 address,O=SAPoffice user,A=External address,L=Telex number,1=Other Recipient Types,F=Fax number,C=Shared distribution list,B=SAP user,U=Internet address'
                          enum:
                          - K
                          - G
                          - J
                          - H
                          - D
                          - R
                          - ''
                          - P
                          - X
                          - O
                          - A
                          - L
                          - '1'
                          - F
                          - C
                          - B
                          - U
                        REC_ID:
                          type: string
                          maxLength: 17
                          description: Recipient ID
                        REPLY_DOC:
                          type: string
                          maxLength: 46
                          description: Object ID of the document being replied to
                        REC_DATE:
                          type: string
                          format: date
                          description: Date document was received
                        PROXY_ID:
                          type: string
                          maxLength: 17
                          description: ID of the substitute who (also) received the object
                        RETRN_CODE:
                          type: string
                          maxLength: 4
                          description: Return code
                        EXPRESS:
                          type: string
                          maxLength: 1
                          description: 'Send express  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        COPY:
                          type: string
                          maxLength: 1
                          description: 'Send: As copy  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        BLIND_COPY:
                          type: string
                          maxLength: 1
                          description: 'Send as a blind copy  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NO_FORWARD:
                          type: string
                          maxLength: 1
                          description: 'You cannot forward this message  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NO_PRINT:
                          type: string
                          maxLength: 1
                          description: 'Object cannot be printed  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        TO_ANSWER:
                          type: string
                          maxLength: 1
                          description: 'A reply must be sent for this object  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        TO_DO_EXPL:
                          type: string
                          maxLength: 1
                          description: 'ToDo by all recipients  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        TO_DO_GRP:
                          type: string
                          maxLength: 1
                          description: ToDo group of the recipient
                        COM_TYPE:
                          type: string
                          maxLength: 6
                          description: 'Transmission Method (Fax, Telex, ...)  enumValues: ""=SAPoffice internal,TELEX=Telex,TELFAX=Fax'
                          enum:
                          - ''
                          - TELEX
                          - TELFAX
                        LFDNR:
                          type: string
                          maxLength: 3
                          description: 'Addresses: Sequence Number of Address'
                        FAX:
                          type: string
                          maxLength: 30
                          description: 'SAPoffice: Fax number'
                        COUNTRY:
                          type: string
                          maxLength: 3
                          description: Country Key
                        SPOOL_ID:
                          type: string
                          maxLength: 5
                          description: ID of the spool entry (e.g. after faxing)
                        NOTIF_DEL:
                          type: string
                          maxLength: 1
                          description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        NOTIF_READ:
                          type: string
                          maxLength: 1
                          description: Read acknowledgment expected
                        NOTIF_NDEL:
                          type: string
                          maxLength: 1
                          description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
                        SAP_BODY:
                          type: string
                          maxLength: 1
                          description: 'Send externally with SAP data part  enumValues: X=Value for activated,""=Value for deactivated'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
