openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FS_API_BP011_ADD:
    post:
      tags:
      - FS_API
      summary: Create Business Partner Employment Data
      operationId: /rfc/FS_API_BP011_ADD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_GENERAL:
                  type: object
                  properties:
                    AUTHORITHY:
                      type: string
                      maxLength: 1
                      description: 'Activate Authorization Check  enumValues: X=TRUE,""=FALSE'
                      enum:
                      - X
                      - ''
                    CHANGE_DOCU:
                      type: string
                      maxLength: 1
                      description: 'Activate Generation of Change Documents  enumValues: X=TRUE,""=FALSE'
                      enum:
                      - X
                      - ''
                    BUFFER:
                      type: string
                      maxLength: 1
                      description: 'Activate Data Buffer up to COMMIT  enumValues: X=TRUE,""=FALSE'
                      enum:
                      - X
                      - ''
                    IDATE:
                      type: string
                      format: date
                      description: DB Field Contents Must Be Valid at This Date
                    TECH_DATE:
                      type: string
                      format: date
                      description: Consider Database Changes up to This Date Limit Only
                IV_PARTNER:
                  type: string
                  maxLength: 10
                  description: Business Partner Number
                IV_PARTNER_GUID:
                  type: string
                  format: byte
                  description: GUID of a Business Partner
                IV_TESTRUN:
                  type: string
                  maxLength: 1
                  description: Single-Character Indicator
                ET_RETURN:
                  type: array
                  items:
                    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
                IT_BP011:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      PARTNR:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      EMPL_SINCE:
                        type: string
                        format: date
                        description: Employed from
                      EMPL_UNTIL:
                        type: string
                        format: date
                        description: Employed Until
                      EMPLOYMENT:
                        type: integer
                        format: int64
                        description: Employment Status
                      EMP_SECTOR:
                        type: string
                        maxLength: 10
                        description: Industry; Only Relevant for Real Estate Business Partner
                      EMP_SECTOR_ZGP:
                        type: string
                        maxLength: 10
                        description: Industry
                      EMPLOYER:
                        type: string
                        maxLength: 35
                        description: Employer of business partner
                      PROFESSION:
                        type: string
                        maxLength: 35
                        description: Employment; Only Relevant for Real Estate Business Partner
                      JOBGR_ZGP:
                        type: string
                        maxLength: 4
                        description: Occupation/group
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RETURN:
                    type: array
                    items:
                      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
                  IT_BP011:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        PARTNR:
                          type: string
                          maxLength: 10
                          description: Business Partner Number
                        EMPL_SINCE:
                          type: string
                          format: date
                          description: Employed from
                        EMPL_UNTIL:
                          type: string
                          format: date
                          description: Employed Until
                        EMPLOYMENT:
                          type: integer
                          format: int64
                          description: Employment Status
                        EMP_SECTOR:
                          type: string
                          maxLength: 10
                          description: Industry; Only Relevant for Real Estate Business Partner
                        EMP_SECTOR_ZGP:
                          type: string
                          maxLength: 10
                          description: Industry
                        EMPLOYER:
                          type: string
                          maxLength: 35
                          description: Employer of business partner
                        PROFESSION:
                          type: string
                          maxLength: 35
                          description: Employment; Only Relevant for Real Estate Business Partner
                        JOBGR_ZGP:
                          type: string
                          maxLength: 4
                          description: Occupation/group
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
