openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SO_RESUBMISSION_INSERT:
    post:
      tags:
      - SOB1
      operationId: /rfc/SO_RESUBMISSION_INSERT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CREATOR:
                  type: string
                  maxLength: 12
                  description: Office name of the manufacturer
                DELETE_OBJECT_IN_INBOX:
                  type: string
                  default: X
                  maxLength: 1
                  description: Delete object from inbox, if folder=INB
                FORWARDER:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Office name of forwarder
                OBJECT_ID:
                  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'
                OWNER:
                  type: string
                  maxLength: 12
                  description: Office user name
                RESUB_DATA:
                  type: object
                  properties:
                    RSDAT:
                      type: string
                      format: date
                      description: Date On Which The Object Was Resubmitted
                    RSTIM:
                      type: string
                      maxLength: 6
                      description: 'Resubmission: time'
                    RSSPA:
                      type: integer
                      format: int64
                      description: Intervals at which an object should be resubmitted
                    RSFLG:
                      type: string
                      maxLength: 1
                      description: 'Interpretation of the resubmission period (days/months)  enumValues: 3=Periodic resubmission: units in weeks,4=Periodic resubmission: units in months,1=Single resubmission,6=Periodic resubmission: units in months, always last day,2=Periodic resubmission: units in days,5=Periodic resubmission: units in years'
                      enum:
                      - '3'
                      - '4'
                      - '1'
                      - '6'
                      - '2'
                      - '5'
                    RSTIME:
                      type: string
                      maxLength: 6
                      description: 'End of resubmission: time'
                    RSDATE:
                      type: string
                      format: date
                      description: 'End of resubmission: date'
                    RSDATB:
                      type: string
                      format: date
                      description: 'Start of resubmission: Date'
                    RSTIMB:
                      type: string
                      maxLength: 6
                      description: 'Start of resubmission: time'
                    RSDAY:
                      type: string
                      maxLength: 1
                      description: 'Day of resubmission (eg. every first Wednesday)  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                      enum:
                      - '1'
                      - '4'
                      - '5'
                      - '7'
                      - '3'
                      - '2'
                      - '6'
                    ACINP:
                      type: string
                      maxLength: 4
                      description: 'ToDo: status'
                    OBJRD:
                      type: string
                      maxLength: 1
                      description: 'Object has already been viewed  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    OBJRS:
                      type: string
                      maxLength: 1
                      description: 'The reply to this object has already been sent  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    RSDATL:
                      type: integer
                      format: int64
                      description: Lead time of the resubmission in days
                    RSTIML:
                      type: integer
                      format: int64
                      description: 'SAPoffice: lead time of resubmission in hours'
                    RSFLGL:
                      type: string
                      maxLength: 1
                      description: 'SAPoffice: interpretation of lead time for the resubmission  enumValues: 0=No lead time,2=Lead time in calendar days,1=Lead time in workdays'
                      enum:
                      - '0'
                      - '2'
                      - '1'
                    CROTP:
                      type: string
                      maxLength: 3
                      description: 'User who created object: Object type from ID'
                    CROYR:
                      type: string
                      maxLength: 2
                      description: 'User that created object: year from the ID'
                    CRONO:
                      type: string
                      maxLength: 12
                      description: 'User that created object: number from the ID'
                    CRODAT:
                      type: string
                      format: date
                      description: Date created
                    CROTIM:
                      type: string
                      maxLength: 6
                      description: Time created
                    CHOTP:
                      type: string
                      maxLength: 3
                      description: 'User that changed the object: Object type from ID'
                    CHOYR:
                      type: string
                      maxLength: 2
                      description: 'User that changed the object: year from the ID'
                    CHONO:
                      type: string
                      maxLength: 12
                      description: 'User that changed the object: number from the ID'
                    CHODAT:
                      type: string
                      format: date
                      description: Date of Last Change
                    CHOTIM:
                      type: string
                      maxLength: 6
                      description: Time of Last Change
                    FLAG1:
                      type: string
                      maxLength: 1
                      description: 'Search of private or shared folders  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                    FLAG2:
                      type: string
                      maxLength: 1
                      description: 'Search of private or shared folders  enumValues: X=Value for activated,""=Value for deactivated'
                      enum:
                      - X
                      - ''
                SOURCE_FOLDER:
                  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'
              required:
              - CREATOR
              - OBJECT_ID
              - OWNER
              - RESUB_DATA
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COUNTER:
                    type: integer
                    format: int64
                    description: Counter from SORSK
                  FIRST_RESUBMISSION_DATE:
                    type: string
                    format: date
                    description: First resubmission date
                  WRONG_FACTORY_CALENDAR:
                    type: string
                    maxLength: 1
                    description: Error in factory calendar
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
