openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BIZC_CPROV_SEARCH_CONTENT:
    post:
      tags:
      - BIZCRFC1
      operationId: /rfc/BIZC_CPROV_SEARCH_CONTENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_SEARCH_PATTERN:
                  type: array
                  items:
                    type: object
                    properties:
                      TABLENAME:
                        type: string
                        maxLength: 100
                        description: 'Business Content: Table Name (for Search)'
                      FIELDNAME:
                        type: string
                        maxLength: 200
                        description: 'Business Content: Field Name (for Search)'
                      SELOPT_SIGN:
                        type: string
                        maxLength: 1
                        description: 'ABAP: ID: I/E (include/exclude values)'
                      SELOPT_OPTION:
                        type: string
                        maxLength: 2
                        description: 'ABAP: Selection option (EQ/BT/CP/...)'
                      SELOPT_LOW:
                        type: string
                        maxLength: 255
                        description: 'Business Content: Select Option (for Search)'
                      SELOPT_HIGH:
                        type: string
                        maxLength: 255
                        description: 'Business Content: Select Option (for Search)'
                I_LANGU:
                  type: string
                  maxLength: 1
                I_METHOD:
                  type: string
                  maxLength: 20
                I_NAMEDC_ID:
                  type: string
                I_PROVIDER:
                  type: string
                  maxLength: 20
                I_SEARCH_CONTROL:
                  type: object
                  properties:
                    SCOPE:
                      type: string
                      maxLength: 30
                      description: 'Business Content: Search Scope  enumValues: SUBTREE=Subtree Scope,OBJECT=Object Scope,ONELEVEL=One-Level Scope'
                      enum:
                      - SUBTREE
                      - OBJECT
                      - ONELEVEL
                    MAX_NO_OF_HITS:
                      type: integer
                      format: int32
                      description: 'Business Content: Maximum Number Of Hits (in Search)'
              required:
              - I_LANGU
              - I_METHOD
              - I_NAMEDC_ID
              - I_PROVIDER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_ERROR:
                    type: array
                    items:
                      type: object
                      properties:
                        PROVIDER:
                          type: string
                          maxLength: 20
                          description: Content Provider
                        ID:
                          type: string
                          description: 'Business Content: Named Context'
                        REFERENCE_ID:
                          type: string
                          description: Identification of import parameter that caused the error
                        SEVERITY:
                          type: string
                          maxLength: 1
                          description: 'BIZC: Meaning of an Exception'
                        ERROR_CODE:
                          type: integer
                          format: int64
                          description: 'Business Content: Error Code'
                        EXCEPTION_NAME:
                          type: string
                          description: Name of Exception
                        TEXTID:
                          type: string
                          description: ''
                        SHORTTEXT:
                          type: string
                          maxLength: 100
                          description: Short Text of Error
                        LONGTEXT:
                          type: string
                          description: Detailed Error Description with Trouble-Shooting Tips
                        PROGRAM_NAME:
                          type: string
                          maxLength: 40
                          description: 'ABAP Program: Current Main Program'
                        INCLUDE_NAME:
                          type: string
                          maxLength: 40
                          description: 'ABAP Program: Current Main Program'
                        SOURCE_LINE:
                          type: integer
                          format: int32
                          description: Termination Line in Source Code
                        STACK_ID:
                          type: string
                          maxLength: 10
                          description: Exception Stack ID
                        STACK_LEVEL:
                          type: integer
                          format: int32
                          description: Hierarchy Level Within Exception Stack
                        TIMESTAMP:
                          type: integer
                          format: int64
                          description: UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
                        CALLBACK_TOOL:
                          type: string
                          maxLength: 10
                          description: Tool for Callback
                        CALLBACK_ID:
                          type: string
                          description: ID of Error for Callback
                        LINK:
                          type: string
                          description: URL for Accessing Additional Information, Such as Dump, Log
                  ET_NAMEDC_ID:
                    type: array
                    items:
                      type: object
                      properties:
                        PROVIDER:
                          type: string
                          maxLength: 20
                          description: Content Provider
                        ID:
                          type: string
                          description: 'Business Content: Named Context'
                        TECHNICAL_NAME:
                          type: string
                          description: 'Business Content: Technical Name'
                        DESCRIPTION:
                          type: string
                          description: 'Business Content: Description'
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key of Current Text Environment
                        IS_CONTENT_OBJECT:
                          type: string
                          maxLength: 1
                          description: Boolean
                        IS_CONTEXT:
                          type: string
                          maxLength: 1
                          description: Boolean
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
