Problem in creating SR from Projects

Hi,
I am trying to call API cs_servicerequest_pub.Create_ServiceRequest to create Service Request from Oracle Projects, But getting error, Can anybody tell me what m i missing to pass in the api.
Below is the code, which I am using to create SR.
declare
lx_return_status VARCHAR2(1);
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;
l_sr_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
l_sr_rec.summary := 'Testing SR';
l_sr_rec.request_date := sysdate;
l_sr_rec.type_id := 14002; NORDIC Depot Repair -1
l_sr_rec.status_id := 1; open2
l_sr_rec.severity_id := 2; medium3
l_sr_rec.verify_cp_flag := 'N';
l_sr_rec.problem_code := 'Testing SR11'; --4
l_sr_rec.caller_type := 'ORGANIZATION'; --'PERSON'; --5
l_sr_rec.customer_id := 593243; --636125;
--l_contacts_tab.CONTACT_TYPE := 'CUSTOMER';
cs_servicerequest_pub.Create_ServiceRequest(p_api_version => 2.0,
p_init_msg_list => FND_API.G_TRUE,
p_commit => FND_API.G_TRUE,
x_return_status => lx_return_status,
x_msg_count => lx_msg_count,
x_msg_data => lx_msg_data,
p_resp_appl_id => null,
p_resp_id => null,
p_user_id => null,
p_login_id => null,
p_request_id => NULL,
p_request_number => NULL,
p_service_request_rec => l_sr_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);
IF (lx_return_status = FND_API.G_RET_STS_SUCCESS) then
dbms_output.put_line('Service Request Created : ' || lx_request_number);
end if;
IF (lx_return_status <> FND_API.G_RET_STS_SUCCESS) then
dbms_output.put_line ('ERROR');
END IF;
end;
------------------------------------------------------------------------------------------------------------------------

First time when I created SR, I missed out giving Project Number, Now when I gave that number, it is giving me error, and I guess errors are so many in numbers, that not able to print them also.
Below is the code which I am using ..(I have commented out the problem_code, because this is not a mandatory paramter on front screen while creating SR)
declare
lx_return_status VARCHAR2(1);
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;
v_msg varchar2(240);
l_sr_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
l_sr_rec.summary := 'Testing SR from Projects';
l_sr_rec.request_date := sysdate;
l_sr_rec.type_id := 14002; --NORDIC Depot Repair
l_sr_rec.status_id := 1; --open
l_sr_rec.severity_id := 2; --medium
l_sr_rec.verify_cp_flag := 'N';
-- l_sr_rec.problem_code := ''; --4
l_sr_rec.caller_type := 'ORGANIZATION'; --'PERSON';
l_sr_rec.customer_id := 636125;
l_sr_rec.sr_creation_channel := 'PHONE';
l_sr_rec.project_number := '81';
--l_contacts_tab.CONTACT_TYPE := 'CUSTOMER';
cs_servicerequest_pub.Create_ServiceRequest(p_api_version => 2.0,
p_init_msg_list => FND_API.G_TRUE,
p_commit => FND_API.G_TRUE,
x_return_status => lx_return_status,
x_msg_count => lx_msg_count,
x_msg_data => lx_msg_data,
p_resp_appl_id => null,
p_resp_id => null,
p_user_id => null,
p_login_id => null,
p_request_id => NULL,
p_request_number => NULL,
p_service_request_rec => l_sr_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);
IF (lx_return_status = FND_API.G_RET_STS_SUCCESS) then
dbms_output.put_line('Service Request Created : ' || lx_request_number);
end if;
IF (lx_return_status <> FND_API.G_RET_STS_SUCCESS) then
IF (FND_MSG_PUB.Count_Msg > 1) THEN
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);
IF lx_msg_data IS NOT NULL THEN
v_msg := lx_msg_data;
END IF;
END LOOP;
ELSE
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);
v_msg := lx_msg_data;
END IF;
END IF;
COMMIT;
end;
.......................................................................................................................

Similar Messages

  • Problem in creating Delv from Project.

    Dear All ,
                                          User has  seen all material properly in CJ20N, now he is creating an Outbound Delv from Project ( CNS0 ) But here problem os that about 30 material code are not comingin CNSO pl help us truck is waiting to move.
    Thx & Rgds,
    sap2008

    Hi sap2008
    your question is not clear
    but whtever i have got, it seems that problem is in transportation, ask your basis guys to transport properly
    ani

  • PS: WBS is not flowing for a Material, while creating delivery from Project

    Hi,
    While creating delivery from Project thro CNS0, WBS is not flowing for a Material in delivery, in turn WBS is not flowing in Billing document for same material, in turn not allowing to Post the Billing document to Accounting.
    Error while releasing Billing to the Accounting: Accounting Entry is not generated. Error Message:Assign Condition type
    YMRG in COPA.
    Pls let me know, what can be the reason ?
    Thanks.
    Amit.

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • Problem with creating pdf from Microsoft Publisher 2013

    We are having problems in creating pdfs from Microsoft Publisher2010- When the function 'Adobe PDF' is selected and 'Print' is clicked on nothing happens. The progress bar just sits there for several minutes without creating a pdf. We have to click on cancel and when this is done this crashes Microsft Publisher.
    I have repaired this using the repair facility in Acrobat 9. I have also uninstalled Acrobat 9 and reinstalled this.
    I have also uninstalled Adobe Reader XI and reinstalled Adobe Reader 9.
    Before uninstalling Acrobat I also ran the updates but this didnt help either.
    This is on a Windows 7 PC (64-bit)
    Adobe Acroabt 9 Pro Extended
    Microsoft Publisher 2010.
    Any help is appreciated.
    Thanks

    MS Publisher 2010 is not supported by the Acrobat 9 Family; and the PDFMaker extension for Publisher has been removed completely from the Acrobat XI Family, so upgrading won't help either. Sorry!
    See http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html#main_ PDFMaker_compatible_applications

  • Problem with the% deviation from Project Server 2010 field

    hello
    I have a problem with the% deviation from Project Server 2010 field.
    Within a file or project, this project contains tasks.
    Each task has completed the field% deviation.
    Within the row "Summary" in the field of% deviation does not perform the sum of all fields of tasks.
    Only occurs on certain projects, these projects have the view of PR Progress Report
    Anyone know happens?
    thank you very much

    Hi
    Sorry, I'll be more specific now.
    Within the field% deviation. Your settings in PWA is:
    The formula for field% Deviation:
    Str (IIf ([Job baseline] = 0; IIf ([Working] = 0, 0, 100); IIf ([Working] = 0; -100; Int (100 * ([Job] - [Work Online base]) / [Working baseline])))) + "%"
    Under the heading rows Calculation Summary:
    > Use formula.
    Within the field Allocation Calculation of rows:
    > It is labeled the "Apply unless you manually specify".
    The field [Job] and field [Job baseline] are fields Pack project server.
    The error is in project, in the list of tasks.
    In the top row, this row summary makes the sum of the ranks of the tasks of the file.
    But in my case only in the summary field the same value appears in the tasks.
    In all the cells in column% deviation appears the same value.
    I hope it helps.
    thank you very much

  • Problem with creating site from another computer!

    Hi
    I have WebDB 2.2 and Oracle8i instaled on the same computer. I have a problem to create site from another computer. There is not any process when I try to create site. There is always 0%.
    But I have no problem with creating site on the origin computer.
    Does anybody know something about it?

    I am just not clear what to do once I have made changes and have published the new information.
    You shouldn't have to do anything. iWeb will save the information in the Domain.sites file. You can keep this file in a folder, or even on your desktop and iWeb will launch from a double-click on the file.

  • Problem during creating delivery from PO in intra-co stock transport

    Hi All,
    during the intra co stock transport process between 2 company codes after the PO is saved as the 1st step of the process,im trying to create a delivery wrt the PO in the transaction code VL10B.
    this is giving the following errors
    1.documet is incomplete:u cannot save the delivery
    2.serial number reqt.not satisfied (V50UC-SERIAL),error group:L1
    immediate help on this issues will be appreciable.
    thanx
    vishal degaonkar

    to add more information bout the problem.....
    we've assigned serial no's during delivery creation which is done manually.as the delivery creation process in VL10B is in the background it is not picking up the serial no's and hence the incompletion error.
    is there any other method to create deliveries from purchase orders???

  • Problem in create message from satelite system

    Hello! I have SAp Solution Manager 4.0 stack 15
    I have configurate trusted connections between my solman system and satekite system. I successfully generate iBase, create business partners. When I create message from my sap user , message created without problem. But when I create message from the test user, system create message with error:
    Message 8000000339 created in Support Desk System with following error: User SDTEST does not exist
    Message no. BCOS002

    There is a check if the user who creates the message in the satellite system does exist in Solution Manager.
    Try TX: DNO_CUST04 -> NO_USER_CHECK = X
    /cheers

  • Encounters a Problem when creating or opening project

    I could only get V1 to work with Admin priviliges, otherwise it threw up the message "Adobe Premiere Elements has encountered a problem & needs to close"
    So I have upgraded to V10, but now hit the same block even with users having admin priviledges.
    Happens when I try to create a new project (when clicking OK after entering new details) or when trying to open an existing project.
    When creating a new project the basic folders and files are created before the error message and crash.
    I am using Windows XP SP3 with all latest updates.
    So I can do nothing at all with PE10.
    Error code is 0xc0000005
    Flag 0x00000000
    Record 0x000000000000000
    Address 0x00000000196cd0a3
    Any ideas?

    Dear A.T., thanks for trying to help. Regarding your questions:
    the PC is a single-user machine on a small network. In accordance with Microsofts security recommendations, the working user account does not have administrator priviledges
    4Gb RAM of which 2.15Gb unused
    683Gb free space on C:
    Two internal disks, formatted NTFS
    Latest Quicktime installed
    Previous version of Premiere Elements was v1
    A bit more information on how it fails. Approximately 10 seconds after specifying a new project or giving details for a project to open I see a window informing me that a problem has been encountered and asking if I want to send details to Microsoft. I dont know if this is Adobe or Microsoft generated.  If I click on any option then Premiere Elements disappears and a window declares "MS Visual C++, Runtime Error!, Program c:\program files\A....,   R6030 - CRT not initialised
    The Windows event log records "Faulting Adobe Premiere Elements.exe - faulting module display.dll version 6.0.0.0" I found display.dll in c:\Program Files\Adobe\Adobe Premiere Elements 10 folder. So an Adobe dll is causing the problem?
    So as you recommended, I updated the Intel G35 chipset driver, and that then allowed me to open create new projects and open old ones! Progress!
    But, after doing some video editing, when trying to close Premiere Elements, it crashes with the same unexpected problem encountered error and the same C++ error. This time the Windows Event Viewer stated that the faulting file was Ig4dev32.dll - the new G35 chipset driver I had just installed.
    So I can now create and work on projects but likely to lose my work unexpectedly!

  • Problem while creating a new project template

    I am trying to create a new project template under one operating unit newly created.
    I am using P A Super User responsibility for that operating unit.
    In profile setting the above responsibility has been assigned the new operating unit under Mo operating unit profile.
    Now when I go to Setup>>Projects>>Project Templates and click on New, the form to create new Project template opens up but in the field where I have to select the operating unit, it shows no values in the LOV.
    Can anyone please help me to know what setting do I have to perform so that I can select the operating unit in this new Template creation Form.
    Regards
    Hawker Hunter

    Dear Mr. Govind,
    we have followed all the Project Implementation Setup for the new operating unit except for the Implementation options which we have to fill up for each operating unit.
    In the implementation Options form in the first tab 'System' there are many fields to be filled up.
    For 'Summarization period Type' we choose 'G L Period' and based on this the fields 'Calendar Name' and 'P A Period Type' automatically gets populated.
    But in our case the 'P A Period Type' is not getting populated.
    Can you let me know where we can link the 'P A Period Type' to the chosen 'Calendar name'?
    Also there is a check box - 'Maintain common PA and GL Periods'. If we tick this check box, a message says: 'The Period Type and Calendar of the PA Period does not match the Period type and Calendar of the corresponding GL Period.'
    Can you please let me know where to create the PA Period based on the corresponding GL periods?
    Regards

  • Encountering a problem when creating a new project

    Hello
    I installed JDK 1.5.0_11 and then Java Studio Enterprise 8.1. For my programming class we have to create an application, however the "General" catagory -> "Java Application" project is not there. The options I have under categories is " samples, standard, uml & web.
    I read another post with a similar problem and the advice was to run the ide with another userid. I followed the link to
    Ref: http://blogs.sun.com/karthikr/entry/jse_directories
    This all made sense to me until
    "Run the ide with a fresh userdir as "runide.exe -userdir [newuserdir]" specifying a new user dir."
    Can someone please help me understand how to do this. I tried it from Start->Run but could not get it to work.
    Thank you for your help
    Mark

    There are several ways you can get this done:
    - In 'Start | Run' , execute "<netbeans_install_dir>/bin/netbeans -userdir <path_to_non_existent_dir>" . As an example <path_to_non_existent_dir> can be "c:\temp\myuserdir".
    Or
    - Run the ide and note down the usedir from the details tab in the about box as specified in the blog. Close the ide. Open the windows explorer and rename the userdir to something like <userdir>.bkp. Run the ide via the standard desktop icon or start menu item. The ide will find that the <userdir> does not exist and will create the <userdir>.
    Hope that helps.

  • Problems in creating PDFs from Indesign under Snow Leopard

    The Acrobat PDF Printer does not work under Snow Leopard anymore.
    Adobe gives this alternative:
    http://kb2.adobe.com/cps/509/cpsid_50981.html
    After an update to Acrobat 9.1.3 PDFs should now be generated through a new "Save as Adobe PDF" option under the "PDF" button in the system print dialog.
    This does not at all work in Adobe Indesign with it's proprietary print dialog. The PDF-Button is only available in the system print dialog (I know it is accessible from within the Indesign print dialog panel, yet clicking on the PDF button and selecting "Save as Adobe PDF" is ignored).
    To make things worse: If you follow the advice to delete the Acrobat Printer from the "Print & Fax" panel this deletes the ADPDF9.PPD from the Library/PPD folder! You even cannot produce .ps files and distill them manually. Fortunately I was able to restore the ADPDF9.PPD from a backup.
    This is really annoying: How can Adobe state everything works fine under Snow Leopard if you are not able to create PDFs any more? Or did I miss something?

    Hi.
    make this.
    1. Go to the Apple> System Preferences...
    2.  Open the "Print & Fax" preference panel.
    3. Select the Printing tab, to get to the printers list.
    4.  Select the printer "Adobe PDF 9.0".
    5. Click the options and supplies button.
    6. Choose the Drive.
    Now I have reinstalled Leopard. but first like a Drive I have listed only a "Generic Printer".
    I tried to reassign it ADPDF9.PPD but is not recognized and automatically resets to a generic printer.
    So after some  tests that I have found here
    http://kb2.adobe.com/cps/509/cpsid_50981.html
    I have reinstall leopard
    This has been my problem.
    mario

  • Problem with images disappearing from project

    I have inserted a number of images into my Robohelp 9 project topics using the Insert >> Image function.  Typically the images were stored on my hard drive on my pc, but some I pulled from a shared network drive that were prepared by other people.  They seemed to load into the project OK.  I had them grouped in a about 5 different robohelp folders to keep them organized so after I would insert, complete my topic and save.  I would move the images to their respective folder.  This was fine for a while,  I had no problems generating printed .pdf documentation, making changes to my topics, etc.  But now the images keep disappearing from the Robohelp folder structure and the printed documentation.  I can see the images when I open up and view the topics.  I can also see them when I look out onto the drive on the computer.  However, they do not show up in the Robohelp  Project Manager and are not included in my printed output.  I keep re-inserting them, but they continue to disappear. 

    Hi there
    Certainly it won't hurt anything to add the images to baggage files, but I'd be shocked to find that solves the problem.
    If an image has been used in RoboHelp, it should be present in the project. End of story. The fact they seem to be disappearing seems to suggest that maybe something has gone awry with folder naming or image naming or the project in general.
    So what version and flavor of RoboHelp are you using?
    RoboHelp 10, RoboHelp 9, RoboHelp 8, etc.
    RoboHelp HTML, RoboHelp for Word
    Cheers... Rick

  • Problem with create archive from mini-DV tape

    I have a fairly large collection of homemade mini-DV tapes. They are getting a bit old and I would like to back them up to my computer as well as have easy access to the footage with FCP.
    The tapes were made on a Sony TRV8 camcorder (either directly or as backups of older VHS tapes). I am using the same camcorder for playback.
    The camera shows up as expected in FCP. My goal is to "Create Archive" on each tape. Here is where I ran into some problems.
    My first tape ran about halfway through - around the 30 min mark and gave me a "end of tape" message. The footage was captured properly, but there is still half the tape to go. I tried a second time and only reached the 5 minute mark when the archiving ended with an "end of tape" message. I am on my third try as I type this and have made it to the 15 minute mark.
    I thought to possibly create multiple archives, picking up where I left off. However, whenever I select "create archive" FCP insists on rewinding the tape to the start. This behavior differs from the Apple KB article which states archiving will start from the current position of the tape.
    Adding to the problem is an issue of jittering playback.
    When I playback using the camera controls of the "play" button in the import window, things are fine. When "Create Archive" handles the playback on its own, the pictures jumps as if it is on a trampoline. Sometimes I am able to hit "stop" and then "play" to get a normal playback - sometimes hitting stop stops the archive with an "end of tape" message.
    Any ideas on what is going wrong or how to work around it? I have over 100 tapes to archive. If each tape requires numerous attempts to archive, this will never get done. I thought the archive process was supposed to import the entire tape?

    The bit about archiving from the current tape position is from Apple:
    "Final Cut Pro begins archiving from the current location on the tape."
    From Final Cut Pro X: Create and manage camera archives
    Last updated 9.16.14
    Obviously, that is wrong.
    The part about archiving ignoring timecode and just archiving the entire tape I have read in several online forum posts. Some I believe are in this forum. These same folks usually advise to use archive rather than import in a bad TC scenario. Again, it seems that wrong information.
    I am now simply doing an "import" of a tape, which appears to be working as expected. Seems either the age of the tape and/or the playback device is causing less than perfect timecode. Lot's of stutters resulting in a single "scene" being imported as many separate clips. I understand what you mean by assembling when ready to edit, but this is not practical. It looks like some areas are broken down to clips of 1-2 seconds (some even less).
    What a mess. I'm looking for a mini-DV player as I suspect my camcorder may be the culprit. Not easy to find one.
    Seems I will have to assemble the multiple clips to recreate the original. I am hoping I can then output the assembled sequences to DV files to maintain the "original" quality of the import (which should be the same as the tape since it is all digital). I would then create some FCP libraries to organize and store the clips.
    Was really hoping to simply do the camera archive thing. My tapes are all cataloged and organized. Having a number of archives which match each tape would have saved a lot of time and trouble.
    --and thanks for the help. It's a bit frustrating trying to preserve old tapes, especially when things don't work how you expect. Any workarounds or ideas to get a library of raw files out of this mess is appreciated. IF I can get that far, I plan to back up to M-disc.

  • Problem when creating sapscript from within function module

    Hi,
    I created a function module which retrieves some master data, creates a sapscript for displaying the data and finally converts the sapscript to an otf. Afterwards the otf is converted to a pdf file.
    The problem is that the pdf file is created but it is empty!
    Here is a piece of the code:
    FUNCTION zhr_display_jobdescrpdf.
    * To access the SAP script output in OTF format.
    struct-tdgetotf = 'X'.
    struct-tdprogram = SY-REPID.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
    *           APPLICATION        = 'TX'        " this is SapScript Appl
              device             = 'PRINTER'   " allow output to printer
              dialog             = 'X'         " printer dialog requested
              form               = 'ZHR_JOB_DESCR'       " name of form (SE71)
              language           = 'E'
              OPTIONS            = struct
    CALL FUNCTION 'START_FORM'
    EXPORTING
    *   ARCHIVE_INDEX          =
       form                   = 'ZHR_JOB_DESCR'
       language               = 'E'
    *   STARTPAGE              = ' '
    *   PROGRAM                = ' '
    *   MAIL_APPL_OBJECT       =
    *   IMPORTING
    *   LANGUAGE               =
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
           element                        = 'TEXT'
           function                       = 'SET'
           type                           = 'BODY'
           window                         = 'MAIN'
    CALL FUNCTION 'END_FORM'
    * IMPORTING
    * RESULT =
    EXCEPTIONS
    CALL FUNCTION 'CLOSE_FORM'
    * IMPORTING
    * RESULT =
    * RDI_RESULT =
    TABLES
    otfdata = datab[]
    EXCEPTIONS
    ENDFUNCTION.
    The content of datab[] is:
    1     //     XHPLJIIID    0700 0000000000
    2     IN     01EZHR_JOB_DESCR   MAIN
    3     OP     DINA4   P 144  240 1683811906000010000100001
    4     IN     02MAIN
    5     EP
    6     //
    So none of the variables that are used in the sapscript were transferred, although they are filled with the correct values when I put a breakpoint on the function 'write_form'. It looks like the sapscript can't access variables that are declared in a function module.
    Putting all the code for creating the sapscript in a report is not an option because then I have to use export/import to/from memory for retrieving the otf data and this doesn't work with the sap portal where the function is called.
    Did anyone had the same or similar problem?
    Greetings,
    Frederik

    Hi,
    Yes my problem is already solved.
    I created a report which creates the sapscript and in my function module I just execute that report.
    So problem solved :-).
    Greetings;
    Frederik

Maybe you are looking for

  • How to disable print icon in pdf file, which is created using servlet

    Hai, I have created one pdf file using HttpServletResponse.setContentType("application\pdf"). I want to disable the toolbars of the created pdf file. I want to disable the print, save and other icons in pdf file. Can anybody help me to resolve this p

  • CS3 and Vista: Application wont run

    Just got a new laptop with Vista.  Installed CS3 no problem but now when I try to open any of the programs, nothing happens.  I've already tried running them as administrator and my laptop can definitely handle CS3. Help!

  • Error : staroffice,v8.11 does not run without Openwindows

    Hello, I am trying to run soffice in -headless mode, and as you can tell my client is not running in windowed mode. I know that OpenOffice 2.4 (and onward) lifted this requirement. is there a later version of soffice that will allow me to run in -hea

  • OIM 11g new features

    Hi every one, Could you please tell me the differences between OIM 10g and OIM 11g Thanks Vasu

  • Calling a module component from a diff form

    Hi guys, Does any one know how to: call a module component of a form from a nother from using call form procedure or any diff method. Thanks