SR created using cs_servicerequest_pub.Create_ServiceRequest is not able to search it in Contact Center.

Hi All ,
   I have created a SR using following sql api
declare
lx_msg_count NUMBER;
lx_msg_data VARCHAR2(2000);
lx_request_id NUMBER;
lx_request_number VARCHAR2(50);
lx_interaction_id NUMBER;
lx_workflow_process_id NUMBER;
lx_msg_index_out NUMBER;
lx_return_status VARCHAR2(1);
l_service_request_rec CS_ServiceRequest_PUB.service_request_rec_type;
l_notes_table CS_SERVICEREQUEST_PUB.notes_table;
l_contacts_tab CS_SERVICEREQUEST_PUB.contacts_table;
begin
-- Populate the SR Record type
l_service_request_rec.request_date := to_date('19-NOV-2013 16:27:34', 'dd-MON-YYYY
HH24:MI:SS');
l_service_request_rec.type_id := 4;
l_service_request_rec.status_id := 1;
l_service_request_rec.urgency_id := 44;
l_service_request_rec.inventory_item_id := 2530;
l_service_request_rec.inventory_org_id := 204;
l_service_request_rec.severity_id := 6;
l_service_request_rec.summary := 'TEST IBIZ';
l_service_request_rec.caller_type := 'ORGANIZATION';
l_service_request_rec.customer_id := 3532;
l_service_request_rec.verify_cp_flag := 'N';
l_service_request_rec.sr_creation_channel := 'PHONE';
l_service_request_rec.resource_type := null;
l_service_request_rec.group_type := null;
l_service_request_rec.owner_id := null;
l_service_request_rec.owner_group_id := null;
l_service_request_rec.bill_to_site_use_id := 1583;
l_service_request_rec.ship_to_site_use_id := 2359;
l_service_request_rec.exp_resolution_date := to_date('19-DEC-2013 16:27:34', 'dd-MON-YYYY
HH24:MI:SS');
l_service_request_rec.install_site_use_id := 178401;
l_service_request_rec.account_id := 3670;
l_service_request_rec.obligation_date := to_date('22-NOV-2013 16:27:34', 'dd-MON-YYYY
HH24:MI:SS');
l_service_request_rec.category_id := 1376;
l_service_request_rec.last_update_channel := 'PHONE';
l_service_request_rec.category_set_id := 27;
l_service_request_rec.incident_occurred_date :=to_date('19-NOV-2013 16:27:34', 'dd-MON-YYYY
HH24:MI:SS');
l_service_request_rec.incident_location_id :=178401;
l_service_request_rec.incident_country :='US';
l_service_request_rec.last_update_program_code :='CSXSRTAB';
l_service_request_rec.creation_program_code :='CSXSRTAB';
l_service_request_rec.bill_to_account_id :=3670;
l_service_request_rec.ship_to_account_id :=3670;
l_service_request_rec.bill_to_party_id :=3532;
l_service_request_rec.ship_to_party_id :=3532;
l_service_request_rec.bill_to_site_id :=2915;
l_service_request_rec.ship_to_site_id :=2915;
l_service_request_rec.incident_location_type :='HZ_PARTY_SITE';
dbms_output.put_line('before calling public sr');
FND_GLOBAL.APPS_INITIALIZE(
user_id => 0,
resp_id => 21739,
resp_appl_id => 514);
cs_servicerequest_pub.Create_ServiceRequest (
p_api_version => 2.0,
p_init_msg_list => FND_API.G_TRUE,
p_commit => FND_API.G_FALSE,
x_return_status => lx_return_status,
x_msg_count => lx_msg_count,
x_msg_data => lx_msg_data,
p_resp_appl_id => 514,
p_resp_id => 21739,
p_user_id => 0,
p_login_id => NULL,
p_request_id => NULL,
p_request_number => NULL,
p_service_request_rec => l_service_request_rec,
p_notes => l_notes_table,
p_contacts => l_contacts_tab,
x_request_id => lx_request_id,
x_request_number => lx_request_number,
x_interaction_id => lx_interaction_id,
x_workflow_process_id => lx_workflow_process_id );
dbms_output.put_line('Return Status : ' || lx_return_status);
dbms_output.put_line('Inserted request id: ' || lx_request_id );
dbms_output.put_line('Inserted request num : ' || lx_request_number );
dbms_output.put_line('Interaction ID : ' || lx_interaction_id );
IF (lx_return_status <> FND_API.G_RET_STS_SUCCESS) then
IF (FND_MSG_PUB.Count_Msg > 1) THEN
--Display all the error messages
FOR j in 1..FND_MSG_PUB.Count_Msg LOOP
FND_MSG_PUB.Get(
p_msg_index => j,
p_encoded => 'F',
p_data => lx_msg_data,
p_msg_index_out => lx_msg_index_out);
DBMS_OUTPUT.PUT_LINE(lx_msg_data);
END LOOP;
ELSE
--Only one error
FND_MSG_PUB.Get(
p_msg_index => 1,
p_encoded => 'F',
p_data => lx_msg_data,
p_msg_index_out => lx_msg_index_out);
DBMS_OUTPUT.PUT_LINE(lx_msg_data);
DBMS_OUTPUT.PUT_LINE(lx_msg_index_out);
END IF;
END IF;
exception
when others then dbms_output.put_line('in others main ' || sqlerrm);
commit;
end;
I am able to create SR using above code but when i try to search using the SR number it say no LOV is found from Contact Center . Please
help me out.
Thanks
Mark

Hi Mark,
Have you tried setting p_commit to FND_API.G_TRUE?
HTH, Ryan.

Similar Messages

  • Bluetooth  not working on my iphone 4 .using iOS 5..not able to search devices in range

    Bluetooth  not working on my iphone 4 .using iOS 5..not able to search devices in range.Need help on this.Any suggestion guys that would be very handy...

    To what device are you trying to pair your phone?  The iPhone doesn't pair with other phones or computers.

  • Hi, im not able to backup all ma contact to my icloud using my iphone 3gs. only 290 out of 600 contact gets backup in icloud, though i hav enough memory. How to fix it ?? I want to transfer my contacts from 3gs to 5s

    Hi, im not able to backup all ma contact to my icloud using my iphone 3gs. only 290 out of 600 contact gets backup in icloud, though i hav enough memory. How to fix it ??

    I have had similar issues backing up to iCloud. Thy only thing I have found to work every time is backing up to iTunes and then doing a restore to my new device. That includes iPhone 6.

  • I am using iPhone 3GS. Not able to update 6.16 version

    I am using iPhone 3GS. Not able to update 6.16 version

    I'm having the same problem as maujmasti.
    After upgrading my iphone 3gs to ios 6.1.6 my wifi connection stopped working. When the network requires a password it displays a message that the password is incorrect and when it's an open network it says that it wasn't able to connect.
    I formated my iphone in attempt to fix the problem. It worked for a while but a few days later I could not connect anymore. The weird thing is that the wifi connection started to work again for another day or two but after that it stopped for good.
    When I tap on the blue arrow beside the wifi name, all the spaces are blank (IP adress / subnet mask / router / DNS ...).
    I've tried a lot of things that I read on the forum and nothing works.
    I could try to format my phone again but the problem is that I can't do an iCloud backup, not via wifi neither via iTunes.

  • HT2731 Created Apple ID. But Not able to verify. Verification mail is sent on Apple ID and do not know how to check mails in mail box .

    Created Apple ID. But Not able to verify. Verification mail is sent on Apple ID and do not know how to check mails in mail box .

    The verification email will have been sent to the email account that you put as the primary email address on the account - log into that email account as you usually do and you should have an email from Apple.

  • Not able to search Product Id replicated from R/3

    Hi All,
    Issue Description: Not able to search the Product Id (Material) replicated from R/3 backend system in SRM Shopping Cart Wizard.
    The same Product Id(Material) is seen in the transaction "COMMPR01" in SRM.
    I checked in the tables COMM_PRODUCT and found the entry with this material.
    In R/3 backend system, Basic Unit of Measure is maintained in Purchasing data of the Material. But Order Unit is not maintained.
    What surprises me is that if i maintain manually the Order Unit in Purchasing Tab for this material in SRM, then i am able to search this Product Id in the SRM Shopping Cart Wizard screen.
    Also, I have performed the replication of DNL_CUST_BASIS3 before replicating the material object.
    We are on SRM 4.00,SAPKIBKS13.
    Your inputs will definitely help us in resolving this issue.
    Thanks & Regards
    K Gp

    Hi,
    To correct this, the OSS notes 1072160,1102001,1112879,1115992 & 1156748 needs to be applied in SRM EBP system.
    After applying the OSS notes, the order unit field will have the same value as that of base unit of measure provided order unit is not maintained for the material in R/3 Backend system.
    Also include the authorization object "COM_ASET" in the role that has been created for the RFC user in SRM EBP system.
    Kindly let me know if this doesn't works.
    Regards
    K Gp

  • Not able to search for FF IDs on clicking Super user access tab in request

    Hi experts
    in GRC AC 5.3 CUP , Im trying to create new request with Superuser Access request type . On selecting the request type , I get the superuser access tab enabled in the request , Now when I click on that , I am not able to search any Firefighter Ids which are present in the backend SAP system .
    However when I try the same in anohter CUP box in the landscape , it worked .I could see all the FF Ids in that system
    What configuration do I miss in the first box which is not allowing me to view the Ids on search .
    Thanks

    Yes , I had chosen a wrong connector . you are right .
    if the connector is working fine , all the Firefighter Ids are fetched properly.
    Thanks

  • I am not able to sync my outlook contacts with my iphone (both ways) noting that the calendar and notes are suncing perfectly (both ways)?

    I am not able to sync my outlook contacts with my iphone (both ways) noting that the calendar and notes are suncing perfectly (both ways)?

    You cannot sync Outlook 2011 directly with an iPhone, but if you go to the Tools menu and choose Sync Services, you can have Outlook sync with iCal and Address Book, which will then sync with the iPhone. And if your business is using Microsoft Exchange, you can set the iPhone up to communicate and sync directly with the Exchange server.
    Regards.

  • My apple tv is not able to search youtube

    Why is my apple tv not able to search youtube and how can I fif this problem?

    Restart your router and unplug the AppleTV and restart it.

  • I am not able to upload all the contacts into icloud and get into my new iphone 6

    Hi I am trying to sync all the contacts in my old iphone 4 to iclud.
    and so not able to sync only my contacts i think i got all my photos synced.
    can any help me in that.

    Hi Kinnera2740,
    On the old phone go into Settings > Mail, Contacts, Calendars.  Are there any email accounts listed here?  Such as Google, Yahoo, Hotmail, etc?
    If so, tap on each of them and check the 'Contacts' option.  If it is turned on, this means that contact syncing is enabled for that account and that your contacts may already be synced to that mail account.
    Also check Settings > iCloud and look for the 'Contacts' option.  Is it enabled?  If so, then it is possible that some contacts could be synced to your iCloud account as well.  You can check to see which contacts are in which account by going to the Contacts app on your old phone and pressing the 'Groups' button in the top left corner.  You may see several groups here.  Uncheck all groups and then check each group one at a time to check and see how many contacts are synced to each account.  You may need to add the same mail accounts to your new phone and enable contact syncing to have the contacts from the mail servers sync down to the new phone. 

  • Gentlemen, i am not able to sync all my contacts on my iphone to Microsoft outlook. i have 396 contacts on my iphone and only 385 in my outlook. can you please help?

    gentlemen, i am not able to sync all my contacts on my iphone to Microsoft outlook. i have 396 contacts on my iphone and only 385 in my outlook. can you please help?

    Hi Kinnera2740,
    On the old phone go into Settings > Mail, Contacts, Calendars.  Are there any email accounts listed here?  Such as Google, Yahoo, Hotmail, etc?
    If so, tap on each of them and check the 'Contacts' option.  If it is turned on, this means that contact syncing is enabled for that account and that your contacts may already be synced to that mail account.
    Also check Settings > iCloud and look for the 'Contacts' option.  Is it enabled?  If so, then it is possible that some contacts could be synced to your iCloud account as well.  You can check to see which contacts are in which account by going to the Contacts app on your old phone and pressing the 'Groups' button in the top left corner.  You may see several groups here.  Uncheck all groups and then check each group one at a time to check and see how many contacts are synced to each account.  You may need to add the same mail accounts to your new phone and enable contact syncing to have the contacts from the mail servers sync down to the new phone. 

  • Not able to add or edit contacts (i OS 5)

    Since updating to iOS 5, I'm not able to add or edit contacts.  The plus and edit buttons are no longer visible?!  Anyone else having this issue? 

    Nevermind...I discovered I had to turn on contacts in iCloud.

  • Not able to add nor edit contact

    Hello,
    I am not able to add nor edit contact in my handset (BB Curve, 8520). I am able to only delete contacts. Anyone please help to troubleshoot this problem. Thank you
    regards. Harris
    Solved!
    Go to Solution.

    If you have Yahoo! Messenger, Hotmail Messenger or AIM Messenger, uninstall all of them, the problem will be solve...

  • HT1414 I have an Iphone 3GS 16gb which was working on ios 4.1.1  The phone isn't factory unlocked. I upgraded it to IOS 6.0.1 and after that i am not able  to search for networks. it shows no services.

    I have an Iphone 3GS 16gb which was working on ios 4.1.1
    The phone isn't factory unlocked. I upgraded it to IOS 6.0.1 and after that i am not able
    to search for networks. it shows no services.

    Ok thank you so much! Although I ended up taking the sim card out of my new Iphone and reinserting it into my old one it finally let me restore it! So thanks once again this really helped!

  • New Dsktop with new Windows, NOT able to get to my contacts from previous set up ? ?

    Just got new Desktop, reconfiguring everything but not able to get to my contacts from previous setup . Need to get the old page with names and phone Numbers

    What exactly is the version of Skype program installed now on your computer? In Skype go to Help -> About Skype.

Maybe you are looking for