openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_XBP_JOB_ADD_ABAP_STEP:
    post:
      tags:
      - SXBP
      summary: Add Job Step with ABAP Program to a Job
      operationId: /rfc/BAPI_XBP_JOB_ADD_ABAP_STEP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ABAP_PROGRAM_NAME:
                  type: string
                  maxLength: 40
                  description: ABAP Program Name
                ABAP_VARIANT_NAME:
                  type: string
                  default: ' '
                  maxLength: 14
                  description: ABAP Variant Name
                ALLARCPAR:
                  type: object
                  properties:
                    SAP_OBJECT:
                      type: string
                      maxLength: 10
                      description: 'SAP ArchiveLink: Object type of business object'
                    AR_OBJECT:
                      type: string
                      maxLength: 10
                      description: Document type
                    ARCHIV_ID:
                      type: string
                      maxLength: 2
                      description: 'SAP ArchiveLink: Target storage system'
                    DOC_TYPE:
                      type: string
                      maxLength: 20
                      description: 'SAP ArchiveLink: Document class'
                    RPC_HOST:
                      type: string
                      maxLength: 32
                      description: SAP ArchiveLink RPC host
                    RPC_SERVIC:
                      type: string
                      maxLength: 32
                      description: 'SAP ArchiveLink: RPC service / RFC destination'
                    INTERFACE:
                      type: string
                      maxLength: 14
                      description: 'SAP ArchiveLink: Name of communication connection component'
                    MANDANT:
                      type: string
                      maxLength: 3
                      description: Client
                    REPORT:
                      type: string
                      maxLength: 40
                      description: SAP ArchiveLink Report Name
                    INFO:
                      type: string
                      maxLength: 3
                      description: 'SAP ArchiveLink: Info field'
                    ARCTEXT:
                      type: string
                      maxLength: 40
                      description: 'SAP ArchiveLink: Text information field'
                    DATUM:
                      type: string
                      maxLength: 8
                      description: 'SAP ArchiveLink: Archiving date'
                    ARCUSER:
                      type: string
                      maxLength: 12
                      description: Data element for user
                    PRINTER:
                      type: string
                      maxLength: 4
                      description: 'SAP ArchiveLink: Specify target printer'
                    FORMULAR:
                      type: string
                      maxLength: 16
                      description: 'SAP ArchiveLink: Output format'
                    ARCHIVPATH:
                      type: string
                      maxLength: 70
                      description: 'SAP ArchiveLink: Standard archive path'
                    PROTOKOLL:
                      type: string
                      maxLength: 8
                      description: 'SAP ArchiveLink: Storage connection protocol'
                    VERSION:
                      type: string
                      maxLength: 4
                      description: 'SAP ArchiveLink: Version number  enumValues: 0031=SAP ArchiveLink Interface 3.1,*=SAP ArchiveLink Interface Default Version ''*'',0045=SAP ArchiveLink HTTP Content Server Interface 4.5,0046=SAP ArchiveLink HTTP Content Server Interface 4.6'
                      enum:
                      - '0031'
                      - '*'
                      - '0045'
                      - '0046'
                ALLPRIPAR:
                  type: object
                  properties:
                    PDEST:
                      type: string
                      maxLength: 4
                      description: Output Device (Print Parameters)
                    PRCOP:
                      type: integer
                      format: int64
                      description: Number of Copies (Print Parameters)
                    PLIST:
                      type: string
                      maxLength: 12
                      description: Name of Spool Request (Print Parameters)
                    PRTXT:
                      type: string
                      maxLength: 68
                      description: Text for Cover Page (Print Parameters)
                    PRIMM:
                      type: string
                      maxLength: 1
                      description: Print Immediately (Print Parameters)
                    PRREL:
                      type: string
                      maxLength: 1
                      description: Delete After Printing (Print Parameters)
                    PRNEW:
                      type: string
                      maxLength: 1
                      description: New Spool Request (Print Parameters)
                    PEXPI:
                      type: integer
                      format: int64
                      description: Spool Retention Period (Print Parameters)
                    LINCT:
                      type: integer
                      format: int32
                      description: Page Length of List
                    LINSZ:
                      type: integer
                      format: int32
                      description: Line width of list
                    PAART:
                      type: string
                      maxLength: 16
                      description: Print Format (Print Parameters)
                    PRBIG:
                      type: string
                      maxLength: 1
                      description: Selection Cover Page (Print Parameters)
                    PRSAP:
                      type: string
                      maxLength: 1
                      description: 'Print: SAP cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    PRREC:
                      type: string
                      maxLength: 12
                      description: Recipient (Print Parameters)
                    PRABT:
                      type: string
                      maxLength: 12
                      description: Department on Cover Page (Print Parameters)
                    PRBER:
                      type: string
                      maxLength: 12
                      description: 'Print: Authorization'
                    PRDSN:
                      type: string
                      maxLength: 6
                      description: Name of Spool File
                    PTYPE:
                      type: string
                      maxLength: 12
                      description: 'Print: Type of spool request'
                    ARMOD:
                      type: string
                      maxLength: 1
                      description: 'Print: Archiving mode  enumValues: 1=Print only,2=Archive only,3=Print and archive'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    FOOTL:
                      type: string
                      maxLength: 1
                      description: 'Print: Output footer'
                    PRIOT:
                      type: integer
                      format: int64
                      description: 'PRINT: Spool request priority'
                    PRUNX:
                      type: string
                      maxLength: 1
                      description: 'PRINT: Host spool cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                ARCHIVE_PARAMETERS:
                  type: object
                  properties:
                    SAPOBJECT:
                      type: string
                      maxLength: 10
                      description: 'SAP ArchiveLink: Object type of business object'
                    OBJECT:
                      type: string
                      maxLength: 10
                      description: Document type
                    INFO:
                      type: string
                      maxLength: 3
                      description: 'SAP ArchiveLink: Info field'
                EXTERNAL_USER_NAME:
                  type: string
                  maxLength: 16
                  description: Name of the SAP-External User
                JOBCOUNT:
                  type: string
                  maxLength: 8
                  description: Job Count
                JOBNAME:
                  type: string
                  maxLength: 32
                  description: Job Name
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language for List Output
                PRINT_PARAMETERS:
                  type: object
                  properties:
                    DESTIN:
                      type: string
                      maxLength: 4
                      description: Output Device (Print Parameters)
                    PRINTIMM:
                      type: string
                      maxLength: 1
                      description: Print Immediately (Print Parameters)
                    RELEASE:
                      type: string
                      maxLength: 1
                      description: Delete After Printing (Print Parameters)
                    COPIES:
                      type: integer
                      format: int64
                      description: Number of Copies (Print Parameters)
                    PRIARCMODE:
                      type: string
                      maxLength: 1
                      description: 'Print: Archiving mode  enumValues: 1=Print only,2=Archive only,3=Print and archive'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                    SHOWPASSWD:
                      type: string
                      maxLength: 12
                      description: 'Print: Authorization'
                    SAPBANNER:
                      type: string
                      maxLength: 1
                      description: 'Print: SAP cover page  enumValues: X=Print,""=Do Not Print,D=Default (Printer Setting)'
                      enum:
                      - X
                      - ''
                      - D
                    BANNERPAGE:
                      type: string
                      maxLength: 1
                      description: Selection Cover Page (Print Parameters)
                    EXPIRATION:
                      type: integer
                      format: int64
                      description: Spool Retention Period (Print Parameters)
                    PRINTRECIP:
                      type: string
                      maxLength: 12
                      description: Recipient (Print Parameters)
                    NUMLINES:
                      type: integer
                      format: int32
                      description: Page Length of List
                    NUMCOLUMNS:
                      type: integer
                      format: int32
                      description: Line width of list
                SAP_USER_NAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: SAP User Name for Authorization Check
              required:
              - ABAP_PROGRAM_NAME
              - EXTERNAL_USER_NAME
              - JOBCOUNT
              - JOBNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN:
                    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
                  STEP_NUMBER:
                    type: integer
                    format: int32
                    description: Job Step Sequential ID Number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
