Creating Quote using Quoting APIs

Hi,
I am using the following method, trying to create a Quote from OA.
oracle.apps.qot.core.Quote.create(ControlRecord controlRecord) returns void
Since the method return void, I could not fetch the Quote details, of the created quote, like quote_header_id, etc.. also am not sure weather the Quote has been created or not.
Plz help me with this, also what values shoud be assigned to ControlRecord object for creating a valid Quote.
Thanks,
Adarsh

Hi,
Below is the description obtained in the quoting implementation guide.
create(ControlRecord) Creates a quote with the attributes populated in this quote
object. Quote header ID, last update date, and quote number
will be populated in the quote header after the quote is
created. This API should be called within a transaction block.
public void
create(oracle.apps.aso.quote.ControlRecord
controlRec)throws FrameworkException, SQLExce
ption, QuoteException
As per this description it should populate Quote header ID, last update date, and quote number . So i am trying to fetch the quote header id and it is showing null.
Is there anything which i am missing in the code?
Regards,
Mithun

Similar Messages

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • Creating PDF using ITEXT API's - error

    Hi,
    In my WebDynpro Application I want to generate a PDF (using ITEXT API's) out of the data retrieved from back end system .
    I used this source code.
    Document document = new Document(PageSize.A4);
    document.open();
    PdfPTable table = new PdfPTable(1);
    PdfPCell cell;
    cell = new PdfPCell(new Paragraph("ONE"));
    table.addCell(cell);
    cell = new PdfPCell(new Paragraph("TWO"));      
    table.addCell(cell);
    document.add(table);
    document.close();
    byte[] b = new byte[100 * 1024];
    b =  document.toString().getBytes("UTF-8");
    IWDCachedWebResource pdfRes = WDWebResource.getPublicCachedWebResource(b, WDWebResourceType.PDF, WDScopeType.CLIENTSESSION_SCOPE,      wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"FileNameHelloText"));
    I have used Window Manager to create a external window with the URL from pdfRes.getUrl() method.
    After execution i get a pop up window with out PDF document.
    Please let me know your thoughts & solutions to the above mentioned problem.
    Thanks
    Senthil

    Hello Folks,
                   Use the following snippet of the code to generate PDF using ITEXT API.
                                       Document document = new Document(PageSize.A4);
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
         PdfWriter.getInstance(document, bos);
         document.open();
                    PdfPTable table = new PdfPTable(1);
                    PdfPCell cell;
                    cell = new PdfPCell(new Paragraph("ONE"));
                    table.addCell(cell);
                    cell = new PdfPCell(new Paragraph("TWO"));      
                    table.addCell(cell);
                    document.add(table);
                    document.close();
                    byte [] byteContent = bos.toByteArray();
         IWDCachedWebResource cachedResource =
                             WDWebResource.getPublicCachedWebResource(
              byteContent,
              WDWebResourceType.PDF,
              WDScopeType.CLIENTSESSION_SCOPE,
              wdThis
                                          .wdGetAPI()
                                          .getComponent()
                                          .getDeployableObjectPart(),
              "TestPDF");
                  IWDWindow externalWindow =
            wdComponentAPI
                            .getWindowManager()
                            .createExternalWindow(cachedResource.getURL(),                         "PDF Window",true);
                  externalWindow.open();
    Thanks and Regards,
    Gopi

  • Creating Modules using Open API

    Hi,
    I am trying to create Form module using Open API.
    What I would like to know is :-
    1. How to link the source file (c++) against the Open
    API library (f60d2f32.lib).
    The c++ source file, Does it have to be .c extension ?
    2. Compile the files to create an executable.
    Anyone got any idea or can point to URL where I can get more info.
    Thanks - Appreciate your help.

    This really needs to go to one of the Developer (FOrms/Reports) forums, but any interface to Forms/Reports/Etc. will need to be compiled and linked as 'C', not 'C++'.

  • Creating form using OIM API

    Hi
    can anyone help me in creatig a form and assigning it to a resource object.
    please tell what all should i mention in the map which is to be passed to createForm() method.
    Thank you

    Hi all
    what attributes i need to to map to create a from using OIM API
    createForm Method?
    I have tried with this but did not work:The form is getting created , i.e I am seeing an entry in DB.
    At the same time I am aslo getting an exception which is whown below:
    formMap.put("Structure Utility.Table Name", "SAM");
              formMap.put("Structure Utility.Description", "TESTING API USAGE FOR FORM");
    The Exceptions I get are :
    Thor.API.Exceptions.tcInvalidNameException
         at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
         at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.createForm(Unknown Source)
    09:05:13,772 ERROR [DATABASE] Class/Method: tcDataBase/writeStatement encounter
    some problems: ORA-02089: COMMIT is not allowed in a subordinate session
    java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session
    09:05:13,819 ERROR [ADAPTERS] Event: Adding Columns to SDC. has encountered an error.
    09:05:13,819 ERROR [SERVER] Class/Method: tcDataObj/runEvent Error :EVT Fatal Rejection Occured
    09:05:13,819 ERROR [APIS] Class/Method: tcFormDefinitionOperationsBean/createForm encounter some problems: maoErrors:Error Adding Column.
    How can i resolve this?
    When and where can I view the form that I have created?
    Thank you

  • Create lov using open api

    i want to create a assistant of lov using open api(code C).
    can anyone give me the steps and procedures for do this .

    This really needs to go to one of the Developer (FOrms/Reports) forums, but any interface to Forms/Reports/Etc. will need to be compiled and linked as 'C', not 'C++'.

  • Creating JOB using JOB API - Future Dated value for a segment

    Hi
    Trying to create a JOB using "hr_job_api.create_job" as of today (17-Jul-2009), with one of the segment value has the 'Date_from' as 26-Jul-2009.
    API is throwing the below error
    ORA-20001: FLEX-VALUE IS EXPIRED:
    ORA-06512: at "APPS.HR_JOB_API", line 878
    Have anyone come across this error before ?
    Thanks
    Arun

    As per the error it saying there is a problem in the DFF attached with the job, or even job kff itself, paste the whole code and whole error

  • Error while creating IViews using collaboration API

    Hi
    I have created one Dynpage portal component, in that i would like to utilize collaboration API.
    I am keep on getting errors like "<b>The compilation unit directly references the missing type ...."</b>"
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sap.ip.collaboration.room.api.IRooms;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    public class Sample extends PageProcessorComponent {
      public DynPage getPage() {
        return new SampleDynPage();
      public static class SampleDynPage extends DynPage
         IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
    Initialization code executed once per user.
    I have included the following jar files:
    bc.rf.framework_api.jar
    coll.shared.extension_api.jar
    coll.shared.roomobject_api.jar
    coll.shared.types_api.jar
    com.sap.security.api.ep5.jar
    and also i have included com.sap.netweaver.coll.shared in portal.xml as servicesreference
    Experts can you please help in the above problem
    I am sure u will get reward points.
    Thanks in Advance

    HI,
    You have to add the following jars apart from the jars you have mentioned
    1. kmc.util.core_api.jar
    2. umapi.jar
    To find jar files
    ==================
    Download and install the JAR Finder. how to is mentioned in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">Weblog</a>. see what jar is required by copying the com.sap.ip.BaseException  from the error "compilation unit references................." and put the "BaseException" in the jar finder and search. from the given options select the correct jar "com.sap.ip.BaseException" right click and add to the project. You can add all the jars required by this method.
    Portalapp.xml
    ==============
    <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
        <property name="ServicesReference" value="com.sap.netweaver.coll.shared"/>
      </application-config>
    HI,
    use the BaseException etc the errors you get in NWDS to search for the jar. paste the BaseException and search in jarfinder.
    Message was edited by: Kirupanand Venkatapathi
    Message was edited by: Kirupanand Venkatapathi

  • Help in creating application using BlackBerry APIs

    Hi All,
    I want to create an application using the BlackBerry APIs. Can anyone please give any pointers to any reference material or tutorials?
    Thanks in advance

    hi Bindia,
    First off all u need to install BlackBerry_JDE_4.2.1.exe which is developement environment for blackberry Application developement.
    in which u will get javadoc api reference simulator and JDE.
    Hope it helps

  • EMail Notification for the Newly Created users using UME API

    Hi ,
    In my application ,the user creation is handled by custom Admin module which uses the UME APIs. Upon creating the user, we need to send a notification mail to the user's email id which he provided in the Add new user form.
    <b>Is there any direct APIs available to notify the user via email. I hope the Standard user creatin module in User Administration also uses the same UME APIs.</b>
    Please let me know the possibilities.
    Appreciate your help.
    <b><b>Sample Code:</b>
         <b>IUserFactory mUserFact = UMFactory.getUserFactory();
         IUserMaint mUserMaint = mUserMaint = mUserFact.newUser(aUser.getLogin());
         IUserAccountFactory mAccountFact =UMFactory.getUserAccountFactory();
         IUserAccount portalAccount = null;
         mUserMaint.setDisplayName(aUser.getLogin());
         mUserMaint.setXXX();
         mUserMaint.save();
         mUserMaint.commit();
         portalAccount = mAccountFact.newUserAccount(aUser.getLogin(), mUserMaint.getUniqueID());
         mAccount.setPassword("XXXXXX");
         aUser.setPassword(mPassword);
         mAccount.save();
         mAccount.commit();</b></b>
    Thanks and Regards,
    Sekar

    Hi,
    I have used the Java Mail API directly send the notification upon new user creation.
    Thanks and Regards,
    Sekar

  • How to start approval procedure for a Document/Draft using DI API

    Hi!
    My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
    Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
    I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
    Thank you for your replies!
    Jan

    Unfortunately there is no way to trigger the approval process for any object added through the DI API.
    Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
    Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
    - Set this U_Approval to yes when adding through DI and add as draft
    - When user opens draft document in the application, check are they an approver (U_Approver = "Y")
    - If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
    You could further expand your DI project to send a mail to the approver whenever a draft PO is added.

  • What are the differences between three BAPIs available to create quotes.

    Hello SAP gurus.
    I am trying to understand the difference between the following 3 BAPIs
    that are used to create Quote
    BAPI_QUOTATION_CREATEFROMDATA2
    BAPI_QUOTATION_CREATEFROMDATA
    BAPI_QUOTATION_CREATEBOS
    Our company is right now using BAPI_QUOTATION_CREATEFROMDATA2 and so I want to understand
    why I can't use BAPI_QUOTATION_CREATEFROMDATA or BAPI_QUOTATION_CREATEBOS instead.
    Any feedback regarding this will be highly appreciated.
    Thanks
    Ram

    HI,
    refer to this link...
    Difference between BAPIS to craete quotation

  • Steps to create quotes from scratch

    Hi guys
    We have installed ECC and just for testing purpose we want to enter some basic data starting from creating couple of customers, department, quote and order.
    Is there a simple way (steps) to follow.
    The reason for asking this question is that we don't know where to start.
    Any suggestions will be highly appreciated.
    Thanks
    Ram

    create customers (sold to, ship to, payer and bill to) through XD01, ensure you have them in correct sales area
    create material master records in MM01 making sure you have correct sales area and plant, pay attention to material type and item category group
    create quote in VA21
    I assume you will use SAP delievered enterprise structure/hierarchy.
    Mike

  • Creating Quote from WebPage

    Hi
    How can i create Quote from my Web Page
    i am using vb.net in my aspx pages
    I want to populate
    OQUT(Docdate,CardCode,NumAtCard,TrnspCode,Taxdate,ShipToCode) and
    QUT1(ItemCode,Quantity,UnitPrice)
    i am uding DTW but can i directly pusg from web page using vb.net code?
    thanks

    Weekend should not be counted.  If no one reply within some hours, it usually means no one did it before.  You may close the old one and post it again there to see.  However, your question may not be easy to understand.  Try use some others' view to rephrase it.  In which direction you want to use B1 data?

Maybe you are looking for

  • Error when scheduling job for Job Control LO

    Hi all, I tried to schedule the job for collective update after I set the job parameter in tcode LBWE for LO Data Extraction. But they said 'Error generating job' without any description why. Maybe you can help me about this since I still can't do th

  • Downloading a pdf file from javascript() window does not work

    PDF download/view works fine where the link points to actual pdf file. But I have problem downloading/viewing pdf files that are loaded using javascript(), e.g. bank statements and such. When I click a link FF downloads a file which either has no ext

  • Facetime activation errors since IOS8 update

    IPAD Air (16gig WiFi)  since upgrading to IOS8, I have tried to setup Face Time and keep getting "An error occurred during activation. Try again" or "Could not sign in. Please check your network connection and try again." I have rebooted. I have rese

  • Encrypted mailserver setup possible?

    Hi, Since some time I keep telling myself I should start to host my email myself instead of trusting a (commercial) company like gmail. So I've been thinking a lot about the required setup, but I can't figure out a good way that suits my needs/requir

  • Contact Photos in Mac OS

    On my Mac my Facebook Contacts are not updating their photos - I tried Enable Photo Updates in Preferences of the Contact App, but this did not work.  Any other Suggestions?