openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/COM_BSP_SEARCH_BP:
    post:
      tags:
      - COM_BUPA_BSP_SEARCH
      operationId: /rfc/COM_BSP_SEARCH_BP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_CONTROL:
                  type: object
                  properties:
                    MY_PARTNER:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    ORGANIZATIONS:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    PERSONS:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    GROUPS:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    STATUS_CHECK:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    DYNAMIC_SEARCH:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    ADDRESS_KEY:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    EMPLOYEES:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                    ALL_ADDRESS_VERSION:
                      type: string
                      maxLength: 1
                      description: Boolean Type, Do Not Use in Interfaces!
                IS_SEARCH_CRITERIA:
                  type: object
                  properties:
                    BP_NAME1:
                      type: string
                      maxLength: 40
                      description: Name 1 / Last Name (Search Help Field 1)
                    BP_NAME2:
                      type: string
                      maxLength: 40
                      description: Name 2 / First Name (Search Help Field 2)
                    CITY1:
                      type: string
                      maxLength: 40
                      description: City
                    CITY2:
                      type: string
                      maxLength: 40
                      description: District
                    POST_CODE1:
                      type: string
                      maxLength: 10
                      description: City postal code
                    POST_CODE2:
                      type: string
                      maxLength: 10
                      description: PO Box postal code
                    PO_BOX_LOC:
                      type: string
                      maxLength: 40
                      description: PO Box city
                    STREET:
                      type: string
                      maxLength: 60
                      description: Street
                    HOUSE_NUM1:
                      type: string
                      maxLength: 10
                      description: House Number
                    HOUSE_NUM2:
                      type: string
                      maxLength: 10
                      description: House number supplement
                    COUNTRY:
                      type: string
                      maxLength: 3
                      description: Country Key
                    REGION:
                      type: string
                      maxLength: 3
                      description: Region (State, Province, County)
                    SORT1:
                      type: string
                      maxLength: 20
                      description: Search term 1 for business partner
                    SORT2:
                      type: string
                      maxLength: 20
                      description: Search term 2 for business partner
                    LANGU:
                      type: string
                      maxLength: 1
                      description: Language Key
                    CONSNO_TEL:
                      type: integer
                      format: int64
                      description: Sequence number
                    TEL1_NUMBR:
                      type: string
                      maxLength: 30
                      description: 'First telephone no.: dialling code+number'
                    TEL1_EXT:
                      type: string
                      maxLength: 10
                      description: 'First Telephone No.: Extension'
                    TELEPHONE:
                      type: string
                      maxLength: 30
                      description: 'Complete number: dialling code+number+extension'
                    CONSNO_FAX:
                      type: integer
                      format: int64
                      description: Sequence number
                    FAX:
                      type: string
                      maxLength: 30
                      description: 'Fax number: dialling code+number'
                    FAX_EXT:
                      type: string
                      maxLength: 10
                      description: 'Fax no.: Extension'
                    FAX_NO:
                      type: string
                      maxLength: 30
                      description: 'Complete number: dialling code+number+extension'
                    CONSNO_EMAIL:
                      type: integer
                      format: int64
                      description: Sequence number
                    EMAIL:
                      type: string
                      maxLength: 241
                      description: E-Mail Address
                    CONSNO_URL:
                      type: integer
                      format: int64
                      description: Sequence number
                    URL:
                      type: string
                      maxLength: 132
                      description: URL, for Example, Homepage or ftp Address
                    PARTNER_ROLE:
                      type: string
                      maxLength: 6
                      description: BP role
                    PARTNER_TYPE:
                      type: string
                      maxLength: 1
                      description: 'Business Partner Category  enumValues: 3=Group,2=Organization,1=Person'
                      enum:
                      - '3'
                      - '2'
                      - '1'
                    CON_NAME_FIRST:
                      type: string
                      maxLength: 25
                      description: Contact Person First Name
                    CON_NAME_LAST:
                      type: string
                      maxLength: 25
                      description: Contact Person Last Name
                    EMP_NAME_FIRST:
                      type: string
                      maxLength: 25
                      description: Employee's First Name
                    EMP_NAME_LAST:
                      type: string
                      maxLength: 25
                      description: Employee's Last Name
                    MY_ACCOUNTS:
                      type: string
                      maxLength: 1
                      description: My Business Partners
                    HITS:
                      type: integer
                      format: int64
                      description: Maximum Number of Hits
                    VALID_DATE:
                      type: string
                      format: date
                      description: Selection Date for Search Helps
                    IDTYPE:
                      type: string
                      maxLength: 6
                      description: Identification Type
                    IDTYPE_DESCRIPTION:
                      type: string
                      maxLength: 40
                      description: Identification Type
                    IDNUMBER:
                      type: string
                      maxLength: 60
                      description: Identification Number
                    REL_PARTNER1:
                      type: string
                      maxLength: 10
                      description: Business Partner Number
                    REL_PARTNER2:
                      type: string
                      maxLength: 10
                      description: Business Partner Number
                    RELTYP:
                      type: string
                      maxLength: 6
                      description: Business Partner Relationship Category
                    XRF:
                      type: string
                      maxLength: 1
                      description: 'Business partner role definition instead of BP relationship  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    RS_INDEX:
                      type: integer
                      format: int64
                      description: Business Partner Relationship Category
                    XDIRECTION:
                      type: string
                      maxLength: 1
                      description: 'One-Way Business Partner Relationship Category  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    RS_REL_TYP:
                      type: string
                      maxLength: 6
                      description: Business Partner Relationship Category
                    RS_PARTNER:
                      type: string
                      maxLength: 10
                      description: Partner ID of Relationship
                    RS_NAME1:
                      type: string
                      maxLength: 40
                      description: Name 1 / Last Name (Search Help Field 1)
                    RS_NAME2:
                      type: string
                      maxLength: 40
                      description: Name 2 / First Name (Search Help Field 2)
                    BP_EEW_DUMMY:
                      type: string
                      maxLength: 1
                      description: Dummy function in length 1
                IV_CHECKS:
                  type: string
                  default: X
                  maxLength: 1
                  description: 'Boolscher Typ: Nicht zur Verwendung auf Oberflächen'
                IV_MAX_HITS:
                  type: integer
                  format: int64
                  description: Maximum Number of Hits
                IV_PARTNER1:
                  type: string
                  maxLength: 10
                  description: Geschäftspartnernummer
                CT_PARTNER_KEYS:
                  type: array
                  items:
                    type: object
                    properties:
                      PARTNER:
                        type: string
                        maxLength: 10
                        description: Business Partner Number
                      PARTNER_GUID:
                        type: string
                        format: byte
                        description: Business Partner GUID
              required:
              - CT_PARTNER_KEYS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BUT020:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        PARTNER:
                          type: string
                          maxLength: 10
                          description: Business Partner Number
                        ADDRNUMBER:
                          type: string
                          maxLength: 10
                          description: Address number
                        XDFADR:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Address is standard address'
                        ADEXT:
                          type: string
                          maxLength: 20
                          description: Address number in external system
                        NATION:
                          type: string
                          maxLength: 1
                          description: International address version ID
                        GUID:
                          type: string
                          maxLength: 32
                          description: UUID in character form
                        MOVE_ADDR:
                          type: string
                          maxLength: 10
                          description: Number of Move Target Address for Address Moves
                        DATE_FROM:
                          type: string
                          format: date
                          description: Date Obsolete
                        ADDRESS_GUID:
                          type: string
                          format: byte
                          description: GUID of a Business Partner Address
                        ADDR_VALID_FROM:
                          type: integer
                          format: int64
                          description: Validity Start of a Business Partner Address
                        ADDR_VALID_TO:
                          type: integer
                          format: int64
                          description: Validity End of a Business Partner Address
                        ADDR_MOVE_DATE:
                          type: integer
                          format: int64
                          description: Date of Move for Address Moves
                  EV_HITS:
                    type: integer
                    format: int64
                    description: Maximum Number of Hits
                  CT_PARTNER_KEYS:
                    type: array
                    items:
                      type: object
                      properties:
                        PARTNER:
                          type: string
                          maxLength: 10
                          description: Business Partner Number
                        PARTNER_GUID:
                          type: string
                          format: byte
                          description: Business Partner GUID
                required:
                - CT_PARTNER_KEYS
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
