openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWX_FORMABS_UPDATE_DB:
    post:
      tags:
      - SWXA
      operationId: /rfc/SWX_FORMABS_UPDATE_DB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FORMDATA:
                  type: object
                  properties:
                    CLIENT:
                      type: string
                      maxLength: 3
                      description: Client
                    FORMNUMBER:
                      type: integer
                      format: int64
                      description: Number of Leave Request
                    APPROVDATE:
                      type: string
                      format: date
                      description: Date
                    APPROVBY:
                      type: string
                      maxLength: 12
                      description: Approver
                    CREATEDATE:
                      type: string
                      format: date
                      description: Date
                    CREATEDBY:
                      type: string
                      maxLength: 12
                      description: Applicant
                    PERNR:
                      type: integer
                      format: int64
                      description: Personnel number
                    NAME:
                      type: string
                      maxLength: 40
                      description: Title, First Name, Last Name
                    DEPARTMENT:
                      type: string
                      maxLength: 40
                      description: Department
                    COSTCENTER:
                      type: string
                      maxLength: 10
                      description: Cost center
                    FIRSTDAY1:
                      type: string
                      format: date
                      description: First day of absence
                    LASTDAY1:
                      type: string
                      format: date
                      description: Last day of absence
                    ABSHOURS1:
                      type: integer
                      format: int64
                      description: Hours Absent
                    FIRSTDAY2:
                      type: string
                      format: date
                      description: First day of absence
                    LASTDAY2:
                      type: string
                      format: date
                      description: Last day of absence
                    ABSHOURS2:
                      type: integer
                      format: int64
                      description: Hours Absent
                    FIRSTDAY3:
                      type: string
                      format: date
                      description: First day of absence
                    LASTDAY3:
                      type: string
                      format: date
                      description: Last day of absence
                    ABSHOURS3:
                      type: integer
                      format: int64
                      description: Hours Absent
                    HOLIDAYTP1:
                      type: string
                      maxLength: 1
                      description: 'Leave Type  enumValues: R=Vacation,S=Special leave'
                      enum:
                      - R
                      - S
                    HOLIDAYTP2:
                      type: string
                      maxLength: 1
                      description: 'Leave Type  enumValues: R=Vacation,S=Special leave'
                      enum:
                      - R
                      - S
                    HOLIDAYTP3:
                      type: string
                      maxLength: 1
                      description: 'Leave Type  enumValues: R=Vacation,S=Special leave'
                      enum:
                      - R
                      - S
                    REASON:
                      type: string
                      maxLength: 50
                      description: Reason for absence
                    CONTACT:
                      type: string
                      maxLength: 50
                      description: Where you can be contacted during your absence
                    PROCSTATE:
                      type: string
                      maxLength: 1
                      description: 'Processing status  enumValues: N=New,A=Approved,R=Rejected'
                      enum:
                      - N
                      - A
                      - R
                FORMNUMBER:
                  type: integer
                  format: int64
                  description: Number of Leave Request
                PROCSTATE:
                  type: string
                  maxLength: 1
                  description: Processing Status
              required:
              - FORMNUMBER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURNCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
