openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FP_PRINT_XFA:
    post:
      tags:
      - FP_PRINT
      operationId: /rfc/FP_PRINT_XFA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PARAMETERS:
                  type: object
                  properties:
                    DEST:
                      type: string
                      maxLength: 4
                      description: 'Spool: Output device'
                    REQNEW:
                      type: string
                      maxLength: 1
                      description: New Spool Request (Print Parameters)
                    REQIMM:
                      type: string
                      maxLength: 1
                      description: Print Immediately (Print Parameters)
                    REQDEL:
                      type: string
                      maxLength: 1
                      description: Delete After Printing (Print Parameters)
                    REQFINAL:
                      type: string
                      maxLength: 1
                      description: Spool request completed
                    SPOOLID:
                      type: integer
                      format: int32
                      description: Spool request number
                    SENDDATE:
                      type: string
                      format: date
                      description: Requested send date
                    SENDTIME:
                      type: string
                      maxLength: 6
                      description: Requested send time
                    SCHEDULE:
                      type: string
                      maxLength: 3
                      description: 'Send time request  enumValues: NIG=Send at night,IMM=Send immediately'
                      enum:
                      - NIG
                      - IMM
                    COPIES:
                      type: integer
                      format: int64
                      description: 'Number of Copies  enumValues: 001=1 printout: Original only. 2 printouts: 1 original + 1 copy'
                      enum:
                      - '001'
                    DATASET:
                      type: string
                      maxLength: 6
                      description: 'Spool request: Name'
                    SUFFIX1:
                      type: string
                      maxLength: 4
                      description: 'Spool request: Suffix 1'
                    SUFFIX2:
                      type: string
                      maxLength: 12
                      description: 'Spool request: Suffix 2'
                    COVTITLE:
                      type: string
                      maxLength: 68
                      description: Text for Cover Page (Print Parameters)
                    COVER:
                      type: string
                      maxLength: 1
                      description: 'Print: SAP cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    RECEIVER:
                      type: string
                      maxLength: 12
                      description: Recipient (Print Parameters)
                    DIVISION:
                      type: string
                      maxLength: 12
                      description: Department on Cover Page (Print Parameters)
                    LIFETIME:
                      type: integer
                      format: int64
                      description: Spool Retention Period (Print Parameters)
                    AUTHORITY:
                      type: string
                      maxLength: 12
                      description: 'Print: Authorization'
                    RQPOSNAME:
                      type: string
                      maxLength: 50
                      description: 'Spool: Long name of printers for host spooler'
                    PDLTYPE:
                      type: string
                      maxLength: 30
                      description: Printer Control Language
                    XDCNAME:
                      type: string
                      maxLength: 51
                      description: XDC Name
                    NOPDF:
                      type: string
                      maxLength: 1
                      description: 'No PDF generation  enumValues: X=TRUE,""=FALSE'
                      enum:
                      - X
                      - ''
                    SPONUMIV:
                      type: string
                      maxLength: 2
                      description: Number range number
                XFD:
                  type: string
                  format: byte
                XFT:
                  type: string
                  format: byte
              required:
              - PARAMETERS
              - XFD
              - XFT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SPOOLID:
                    type: integer
                    format: int32
                    description: Spool request number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
