openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_XBP_JOB_CLOSE:
    post:
      tags:
      - SXBP
      summary: Complete job definition
      operationId: /rfc/BAPI_XBP_JOB_CLOSE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                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
                RECIPIENT:
                  type: object
                  properties:
                    RECIPIENT:
                      type: string
                      maxLength: 241
                      description: Recipient address
                    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
                    COPY:
                      type: string
                      maxLength: 1
                      description: 'Send: Copy  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    BLIND_COPY:
                      type: string
                      maxLength: 1
                      description: 'Send: Blind copy  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    EXPRESS:
                      type: string
                      maxLength: 1
                      description: 'Send Express  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    NO_FORWARDING:
                      type: string
                      maxLength: 1
                      description: 'Send: No forwarding  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    DELIVER:
                      type: string
                      maxLength: 1
                      description: 'Acknowledgment of receipt expected  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    NO_PRINT:
                      type: string
                      maxLength: 1
                      description: 'Send: No printing  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    MAILSTATUS:
                      type: string
                      maxLength: 1
                      description: Status of external send in which a mail was sent
                RECIPIENT_OBJ:
                  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
                TARGET_SERVER:
                  type: string
                  maxLength: 20
                  description: Instance for Execution of a Job
              required:
              - 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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
