openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SSFCONVERT_OTF_AND_MAIL:
    post:
      tags:
      - STXBW
      summary: Transfer doc. in OTF format using functn SO_OBJECT_SEND to SAPconnect
      operationId: /rfc/SSFCONVERT_OTF_AND_MAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                MAILOPTIONS:
                  type: object
                  properties:
                    TDDEVICE:
                      type: string
                      maxLength: 8
                      description: 'Output device  enumValues: MAIL=Mail,SCREEN=Screen,TELEFAX=Fax Number,PRINTER=Printer'
                      enum:
                      - MAIL
                      - SCREEN
                      - TELEFAX
                      - PRINTER
                    TDPREVIEW:
                      type: string
                      maxLength: 1
                      description: 'Print preview  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDGETOTF:
                      type: string
                      maxLength: 1
                      description: 'Return of OTF table. No printing, display, or faxing  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDPAGEFORM:
                      type: string
                      maxLength: 8
                      description: 'Spool: Page format'
                    TDSPOOLID:
                      type: integer
                      format: int32
                      description: Spool request number
                    FAXOBJ:
                      type: string
                      maxLength: 12
                      description: 'Object: Number from ID'
                    MAILOBJ:
                      type: string
                      maxLength: 12
                      description: 'Object: Number from ID'
                    TDPAGES:
                      type: integer
                      format: int64
                      description: No. of pages output
                    TDDRIVER:
                      type: string
                      maxLength: 4
                      description: 'Spool: Driver name'
                    TDABAP:
                      type: string
                      maxLength: 1
                      description: 'Spool: Driver is ABAP function module  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDOTFCALL:
                      type: string
                      maxLength: 30
                      description: OTF ABAP driver function module
                    TDOTFTYPE:
                      type: string
                      maxLength: 12
                      description: OTF type
                    TDRTL:
                      type: string
                      maxLength: 1
                      description: 'A right-to-left language occurs in the OTF  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    USEREXIT:
                      type: string
                      maxLength: 1
                      description: User function last executed
                    TDFORMS:
                      type: integer
                      format: int64
                      description: 'Smart Forms: Number of printed forms'
                    TDSCREEN:
                      type: string
                      maxLength: 8
                      description: 'SAPscript: name of screen type'
                    TDSCDRIVER:
                      type: string
                      maxLength: 4
                      description: Screen driver
                    TDSCABAP:
                      type: string
                      maxLength: 1
                      description: 'Screen driver is in ABAP/4  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDPROGRAM:
                      type: string
                      maxLength: 40
                      description: Program Name
                    TDBACKBMP:
                      type: string
                      maxLength: 1
                      description: 'Smart Forms: OTF contains background graphic  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDBACKBMPP:
                      type: string
                      maxLength: 1
                      description: 'SF: OTF contains background graphic to be printed  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    DIFFCOP:
                      type: string
                      maxLength: 1
                      description: 'SAP Smart Forms: General Indicator'
                    NOPRIBUTT:
                      type: string
                      maxLength: 1
                      description: 'SAP Smart Forms: General Indicator'
                    TDTELELAND:
                      type: string
                      maxLength: 3
                      description: Country Key
                    TDTELENUM:
                      type: string
                      maxLength: 30
                      description: Telecommunications partner
                    TDTELENUME:
                      type: string
                      maxLength: 30
                      description: Telecommunications partner
                    TDFAXUSER:
                      type: string
                      maxLength: 12
                      description: SAPoffice user name
                    FAXFORMAT:
                      type: string
                      maxLength: 3
                      description: 3-Byte field
                    TDSCHEDULE:
                      type: string
                      maxLength: 3
                      description: 'Send time request  enumValues: NIG=Send at night,IMM=Send immediately'
                      enum:
                      - NIG
                      - IMM
                    TDSENDDATE:
                      type: string
                      format: date
                      description: Requested send date
                    TDSENDTIME:
                      type: string
                      maxLength: 6
                      description: Requested send time
                    BCS_REQST:
                      type: string
                      maxLength: 1
                      description: 'Requested Status  enumValues: N=No Status Is to Be Returned,E=Only Error Statuses Are to Be Returned,A=Return All Statuses'
                      enum:
                      - N
                      - E
                      - A
                    BCS_STATUS:
                      type: string
                      maxLength: 1
                      description: 'Setting for Which Statuses Are Reported by Mail  enumValues: N=No Status,E=Only Error Statuses,A=All Statuses'
                      enum:
                      - N
                      - E
                      - A
                    BCS_COMMIT:
                      type: string
                      maxLength: 1
                      description: 'Indicator for COMMIT WORK in Dialog Mode  enumValues: ""=No,X=Yes, execute COMMIT WORK'
                      enum:
                      - ''
                      - X
                    BCS_LANGU:
                      type: string
                      maxLength: 1
                      description: Language key
                    TDARMOD:
                      type: string
                      maxLength: 1
                      description: 'Print: Archiving mode  enumValues: 1=Print only,2=Archive only,3=Print and archive'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    TDNOARMCH:
                      type: string
                      maxLength: 1
                      description: 'No changes by user in the archiving mode  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDARCCOP:
                      type: string
                      maxLength: 1
                      description: 'Smart Forms: Indicator whether to archive copies'
                    TDTITLE:
                      type: string
                      maxLength: 50
                      description: Title in dialog box
                    TDNOPREV:
                      type: string
                      maxLength: 1
                      description: 'No print preview  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDNOPRINT:
                      type: string
                      maxLength: 1
                      description: 'No printing from print preview  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDNOARCH:
                      type: string
                      maxLength: 1
                      description: 'No archiving from print preview  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDIEXIT:
                      type: string
                      maxLength: 1
                      description: 'Immediate exit after printing/faxing from print preview  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    TDDATASET:
                      type: string
                      maxLength: 6
                      description: 'Spool request: Name'
                    TDSUFFIX1:
                      type: string
                      maxLength: 4
                      description: 'Spool request: Suffix 1'
                    TDSUFFIX2:
                      type: string
                      maxLength: 12
                      description: 'Spool request: Suffix 2'
                    TDCOVTITLE:
                      type: string
                      maxLength: 68
                      description: Text for Cover Page (Print Parameters)
                    TDDEST:
                      type: string
                      maxLength: 4
                      description: 'Spool: Output device'
                    TDPRINTER:
                      type: string
                      maxLength: 8
                      description: 'Spool: Device type name'
                    RQPOSNAME:
                      type: string
                      maxLength: 50
                      description: 'Spool: Long name of printers for host spooler'
                    TDNEWID:
                      type: string
                      maxLength: 1
                      description: New Spool Request (Print Parameters)
                    TDIMMED:
                      type: string
                      maxLength: 1
                      description: Print Immediately (Print Parameters)
                    TDDELETE:
                      type: string
                      maxLength: 1
                      description: Delete After Printing (Print Parameters)
                    TDLIFETIME:
                      type: integer
                      format: int64
                      description: Spool Retention Period (Print Parameters)
                    TDAUTORITY:
                      type: string
                      maxLength: 12
                      description: 'Print: Authorization'
                    TDFINAL:
                      type: string
                      maxLength: 1
                      description: Spool request completed
                    SPONUMIV:
                      type: string
                      maxLength: 2
                      description: Number range number
                    TDCOVER:
                      type: string
                      maxLength: 1
                      description: 'Print: SAP cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    TDRECEIVER:
                      type: string
                      maxLength: 12
                      description: Recipient (Print Parameters)
                    TDDIVISION:
                      type: string
                      maxLength: 12
                      description: Department on Cover Page (Print Parameters)
                    TDCOPIES:
                      type: integer
                      format: int64
                      description: 'Number of Copies  enumValues: 001=1 printout: Original only. 2 printouts: 1 original + 1 copy'
                      enum:
                      - '001'
                    TDGROUP:
                      type: string
                      maxLength: 1
                      description: Grouping Copies
                    TDPAGESLCT:
                      type: string
                      maxLength: 60
                      description: Pages selected for printing
                    URLCALL:
                      type: string
                      maxLength: 30
                      description: Name of Function Module
                MAIL_RECIPIENT:
                  type: object
                  properties:
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    DESCRIBE:
                      type: string
                      maxLength: 10
                      description: Describe flag
                MAIL_SENDER:
                  type: object
                  properties:
                    LOGSYS:
                      type: string
                      maxLength: 10
                      description: Logical system
                    OBJTYPE:
                      type: string
                      maxLength: 10
                      description: Object Type
                    OBJKEY:
                      type: string
                      maxLength: 70
                      description: Object key
                    DESCRIBE:
                      type: string
                      maxLength: 10
                      description: Describe flag
                MAIL_APPLICATION_OBJECT_IDS:
                  type: array
                  items:
                    type: object
                    properties:
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      OBJTYPE:
                        type: string
                        maxLength: 10
                        description: Object Type
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                      DESCRIBE:
                        type: string
                        maxLength: 10
                        description: Describe flag
                OTF:
                  type: array
                  items:
                    type: object
                    properties:
                      TDPRINTCOM:
                        type: string
                        maxLength: 2
                        description: 'OFT format: command ID'
                      TDPRINTPAR:
                        type: string
                        maxLength: 70
                        description: 'OTF format: command parameters'
              required:
              - MAILOPTIONS
              - MAIL_RECIPIENT
              - MAIL_SENDER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MAIL_OK:
                    type: string
                    maxLength: 1
                  MSGID:
                    type: string
                    maxLength: 20
                    description: Messages, Message Class
                  MSGNO:
                    type: integer
                    format: int64
                    description: Messages, Message Number
                  MSGV1:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  MSGV2:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  MSGV3:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  MSGV4:
                    type: string
                    maxLength: 50
                    description: Messages, Message Variable
                  OFFICE_OBJID:
                    type: object
                    properties:
                      OBJTP:
                        type: string
                        maxLength: 3
                        description: Code for document class
                      OBJYR:
                        type: string
                        maxLength: 2
                        description: 'Object: Year from ID'
                      OBJNO:
                        type: string
                        maxLength: 12
                        description: 'Object: Number from ID'
                  MAIL_APPLICATION_OBJECT_IDS:
                    type: array
                    items:
                      type: object
                      properties:
                        LOGSYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        OBJTYPE:
                          type: string
                          maxLength: 10
                          description: Object Type
                        OBJKEY:
                          type: string
                          maxLength: 70
                          description: Object key
                        DESCRIBE:
                          type: string
                          maxLength: 10
                          description: Describe flag
                  OTF:
                    type: array
                    items:
                      type: object
                      properties:
                        TDPRINTCOM:
                          type: string
                          maxLength: 2
                          description: 'OFT format: command ID'
                        TDPRINTPAR:
                          type: string
                          maxLength: 70
                          description: 'OTF format: command parameters'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
