This chapter covers the following topics:
Creates Service Request with customer type organization. Creates a charge line for the Service Request. Updates the charge line and submits the charge line to Order Management. This flow creates a single service request with a charge line.
PLSQL
Create_Service_Request_Charge_Submit_OM_PLSQL
The following are the prerequisites for executing the flows:
Customers and Contacts.
The following profile options must be set:
| Profile | Value | 
|---|---|
| Service: Inventory Validation Organization | Vision Operations | 
The following predefined data must be used:
| Entity | Field Name | Field Value | 
|---|---|---|
| FND_GLOB_APPS_INITIALIZE | User Id | 1318 | 
| Resp Id | 20638 | |
| Resp Appl Id | 170 | 
The following data must be set up:
| Interface | Field Name | Field Value1 | Field Value2 | 
|---|---|---|---|
| CS_SERVICEREQUEST_PUB_SERVICE_REQUEST_Rec | Request Date | #SYSDATE(0) | dd-MON-YYYY | 
| Type Name | Customer Call | ||
| Type Id | 4 | ||
| Severity Id | 4 | ||
| Severity Name | High | ||
| Status Id | 1 | ||
| Status Name | Open | ||
| Customer Id | 4429 | ||
| Account Id | 3347 | ||
| Summary | Create Service Request API flow | ||
| Caller Type | ORGANIZATION | ||
| Urgency Id | 47 | ||
| Urgency Name | Immediate | ||
| Owner Id | 10180 | ||
| Owner Group Id | 100000082 | ||
| Business Process Id | 1001 | ||
| Group Type | RS_GROUP | ||
| CS_CHARGE_DETAILS_PUB_CHARGES_Rec | Incident Id | {{L_SR_CREATE_OUT_REC1_1_1_REQUEST_ID}} | |
| Charge Line Type | ACTUAL | ||
| Line Number | 1 | ||
| Business Process Id | 1044 | ||
| Transaction Type Id | 431 | ||
| Inventory Item Id In | 149 | ||
| Txn Billing Type Id | 457 | ||
| Unit Of Measure Code | Ea | ||
| Quantity Required | 1 | ||
| Interface To Oe Flag | Y | ||
| Original Source Id | {{L_SR_CREATE_OUT_REC1_1_1_REQUEST_ID}} | ||
| Original Source Code | SR | ||
| Source Code | SR | ||
| Org Id | 204 | 
Following are the details of the scenarios in the flow:
| Scenario | Objective | Artifact Method | Component Set | Main Component | 
|---|---|---|---|---|
| Create_Service_Request | This scenario creates a service request with customer contact with a note associated to the service request. | CS_ServiceRequest_PUB.Create_ServiceRequest | CS_SERVICEREQUEST_PUB_CREATE_SERVICEREQUEST_B | CS_SERVICEREQUEST_PUB_CREATE_SERVICEREQUEST_B_Main | 
| Verification_Create_SR | - | VERIFICATION_COMPONENT | ||
| Create_Charge | This scenario creates a charge line for the above created service request | CS_CHARGE_DETAILS_PUB.Create_Charge_Details | CS_CHARGE_DETAILS_PUB_CREATE_CHARGE_DETAILS | CS_CHARGE_DETAILS_PUB_CREATE_CHARGE_DETAILS_Main | 
| Verification_Create_Charge | - | VERIFICATION_COMPONENT | ||
| Update_Charge | This scenario updates the quantity of the charge line | CS_CHARGE_DETAILS_PUB.Update_Charge_Details | CS_CHARGE_DETAILS_PUB_UPDATE_CHARGE_DETAILS | CS_CHARGE_DETAILS_PUB_UPDATE_CHARGE_DETAILS_Main | 
| Verification_Update_Charge | - | VERIFICATION_COMPONENT | ||
| Submit_Charge | This scenario submits the charge line to Order Management | CS_CHARGE_CREATE_ORDER_PUB.Submit_Order | - | CS_CHARGE_CREATE_ORDER_PUB_SUBMIT_ORDER_Main | 
| Verification_Submit_Charge | - | VERIFICATION_COMPONENT |