Template class for customer projects. Mock data is supported.

/cnbs/v1/template
POST | GET

High level summary of required operations:

  • Mock data support
  • Mock data can be setup via configuration

Optional

  • Impersonation User
  • Mock data (mock_data)
    • Mock data type (mock_type)
      • space … no mock data
      • W … mock data generation on WAS
      • C … mock data generation on Core
    • Mock Number (mock_number)
      • key for customzing table
    • Parameter
      • Name
      • Value

Example POST

JSON Payload:

{
  "impersonation_user": "CNBSTEST",
  "mock_data": {
    "mock_type": "C",
    "mock_number": 1
  },
  "parameter": [
    {
      "name": "MATNR",
      "value": "4711"
    }
  ]
}

cURL

curl -X POST "https://<<your.server.here>>/cnbs/v1/user/change_password?sap-client=800&sap-language=EN&apiid=CNBSMV01R" -H "accept: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -H "authorization: Basic Y2tvZXNzbHQ6dGVzdDAx" -H "Content-Type: application/json" -d "{ \"current_password\": \"Initial01\", \"new_password\": \"Zufght#$\"}"
  • Status (status)
    • Message Type (message_type)
      • SAP Message Type.
        • Errors:
          • E = Error
          • A = Abort
          • X = Exception
        • Others:
          • S = Success
          • W = Warning
          • I = Information
    • Message Identifier (message_identification)
      • SAP Message ID.
    • Message Number (message_number)
      • SAP Message Number.
    • Message Line (message_line_string)
      • SAP Message Text.

JSON: {

"data": {
  "gen": [
    {
      "name": "VBELN",
      "value": "123"
    },
    {
      "name": "MATNR",
      "value": "7890"
    }
  ]
},
"status": {
  "message_type": "S",
  "message_identification": "/CNBS/X_API",
  "message_number": 10,
  "message_line_string": "Request successfully processed",
  "json": ""
}

} </code>

  • public/docs/webarapi/v130/template.txt
  • Last modified: 2020/10/30 08:25
  • by Christian Koessl