Error on creating Draft Purchase Quotation by using SDK

Hi,
I have encountered an error while trying to create a Draft Purchase Quaotation by using SDK.
I am trying on SAP Business One 8.81 PL02
My Code:
Dim objPQ As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
objPQ.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseQuotations
Error on code:
objPQ.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseQuotations
Error message:
'540000006' is not a valid value for property 'DocObjectCode'. The valid values are: '15' - 'Delivery',  '16' - 'Returns',  '203' - 'A/R Down Payment',  '13' - 'A/R Invoice',  '14' - 'A/R Credit Memo',  '132' - 'Correction Invoice',  '20' - 'Goods Receipt',  '21' - 'Goods Return',  '204' - 'A/P Down Payment',  '18' - 'A/P Invoice',  '19' - 'A/P Credit Memo',  '17' - 'Sales Order',  '22' - 'Purchase Order',  '23' - 'Sales Quotation',  '67' - 'Inventory Transfers',  '59' - 'Goods Receipt',  '60' - 'Goods Issue',  '163' - 'A/P Correction Invoice',  '164' - 'A/P Correction Invoice Reversal',  '165' - 'A/R Correction Invoice',  '166' - 'A/R Correction Invoice Reversal'
Thank you.

Hey Simon,
Have you solved this case?
Im using 8.81 (8.81.316) PL:08, but oPurchaseQuotation does not appear in SAPbobsCOM.BoObjectTypes.
Dim objPQ As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
objPQ.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseQuotations
Somebody knows what is wrong?.

Similar Messages

  • Getting an error while creating a ERP Quotation from CRM Sales Web-UI.

    Hi Experts,
    I am getting an error while creating a ERP quotation from CRM Sales Web-UI. Here  I am enclosing the screen shot. Please give me the solution for this.Thank you in advance.
    Regards
    Kishor Kumar.

    Hi Kishore,
    Please refer to the link below -
    Entry of ERP Sales Documents in SAP CRM - Sales Quotation and Order Management - SAP Library
    Also, refer to the SAP note -
    1446253  - FAQ note: ERP documents in the CRM Web UI (lead-to-cash scenario)
    This note will give you the related topic and the configuration required through SAP help links.
    Hope this will be useful.
    Thanks and Regards
    DJ

  • Can we create the Purchase order that using P&L account or just using account do not use cost center.

    Dear Experts,
    Could you please advise :
    1) Can we create the purchase order that using profit and loss account ? ( if yes , which kind of account assignment category we should use ?)
    2) How to create a purchase order for service charge .( just using GL account )
    Thanks & Best Regards,
    Watson

    Hi,
       May I know why you do not use cost center for consumption?
       You may create a new account assignment category in OME9 by copying K and maintain the cost center as optional. Please note that you have to maintain the item category blank and the account assignment category combination in OMG0. Now, you can use a GL account in PO which doesnt require a cost center assignment (in OBC4 against the field status group of the GL)
       You may use the same account assignment category created in the previous step with item category D, after you maintain the combination of the account assignment with item category D in OMG0.
        Please test the scenario and revert back.
    Regards,
    AKPT

  • Error while creation of PUrchase order by using BAPI.

    Hi All,
       We are creating a purchase order thru BAPI ("BAPI_POEC_CREATE") and we are passing the following parameters ( I_PO_HEADER , I_PO_ITEMS , I_PO_ACCASS , I_PO_PARTNER and I_PO_ORGDATA)  to the bapi and after processing  we are getting the following error and Abend messages.
    Messages:
    1) Enter at least one item or one limit ( we have added line items in I_PO_ITEMS structure).
    2) Incorrect interface data for set 78 in method C.
    3) Interface data contains errors.
    Can anyone help me in fixing these errors inorder to proceed further.
    Regards
    Dharmaraju

    Hi there,
    Did you manage to sort this problem ?
    If not let me know
    I am using the same and know how to overcome
    Thanks
    Turlock
    T

  • Error while creating a Purchase Requisition T Code ME52N

    Dear Freinds,
    The users are trying to create the Purchase Requisition, however the system gives the error message that the GL Account xxxxxx cannot be used, as the comparison of the field selection strings are not comparable with the Account Assignment Category E. Message no. is ME045. How could we resolve this?
    Thanks for the help.
    Regards

    Dear,
    check the FSG for the GL Account 200010 and go to TCcode OBC4 and check the status of field 'Asset number / subnumber' and then go to TCode OME9 and select A and check the field status for field 'Asset number / subnumber'. Status at both areas are different hence system is not accpting. Make status identical.
    Regards,
    Sandip

  • WebDynpro Error while creating a Purchase Order in SRM 7.0

    Hello Friends,
    I need help.
    We are on SRM 7.0 with support pack 8.0 and  we are getting the below error wile clicking on Shopping cart or Purchase Order link in Portal.
    Any idea on how to resolve this error.
    Thanks
    Jyothi.
    http://sapsrm.erpcx.com:8000/sap/bc/webdynpro/sapsrm/wda_l_fpm_oif/
    ASSERTION_FAILED
    The ASSERT condition was violated.
    Method: ADD_EVENT_TO_QUEUE of program CL_FPM========================CP
    Method: IF_FPM~RAISE_EVENT of program CL_FPM========================CP
    Method: SET_CREATE_BUTTON_ACTIVE of program /1BCWDY/0FJM4718F184UKVHA34J==CP
    Method: IF_COMPONENTCONTROLLER~SET_CREATE_BUTTON_ACTIVE of program /1BCWDY/0FJM4718F184UKVHA34J==CP
    Method: RESET_SCREEN of program /1BCWDY/0FJM4718F184UKVHA34J==CP
    Method: IF_V_PRSEL~RESET_SCREEN of program /1BCWDY/0FJM4718F184UKVHA34J==CP
    Method: WDDOMODIFYVIEW of program /1BCWDY/0FJM4718F184UKVHA34J==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/0FJM4718F184UKVHA34J==CP
    Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
    Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP

    Here is what I see:
    Error analysis                                                                                |
    The following checkpoint group was used: "No checkpoint group specified"
    If in the ASSERT statement the addition FIELDS was used, you can find
    the content of the first 8 specified fields in the following overview:
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "ASSERTION_FAILED" " "
    "CL_FPM========================CP" or "CL_FPM========================CM004"
    "ADD_EVENT_TO_QUEUE"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    |

  • Error while creating a web proxy service using wsdl

    Hi folks,
    In my use case I should create a web service proxy using the wsdl. While I am creating the
    web service proxy I am getting some error like the binding method does not have the SOAP extension.
    I am giving the error below for more clarity
    Caused by: oracle.j2ee.ws.common.tools.api.WsdlValidationException: input message of binding operation "createReference" does not have a SOAP body extensionCaused by: oracle.j2ee.ws.common.tools.api.WsdlValidationException: input message of binding operation "createReference" does not have a SOAP body extension
    What could be the problem? Kindly help me on this.
    Thanks,
    Phani

    Hi,
    I guess wsdl URL for Data source is not working as expected
    See
    http://blogs.oracle.com/middleware/entry/calling_web_services_using_adf_11g
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html

  • Error whilw creating a purchase order

    i am getting the error while creating a po like"you have no authorisation for a purchase order referencing a requisition".
    please help me to solve this issue
    Regards

    Hi bharat,
    It seems to be authorization issue.
    When you get the error message, in the same screen enter /nSU53 transaction code and press enter.
    You will get screen in which you have 'spread layout' tab. click on the same and you will get authorization object.
    you send the screenshot to basis people to give you the authorization.
    regards
    prasad

  • Error when creating a purchase requisition in reference to a contract.

    Hello All,
    My client have a requirement that , He wants to create a purchase requissition with Item catogery-B and account assignment-K
    with reference to a contract.
    when we are trying to create a purchase requisition with Item catogery-B and account assignment-K
    with reference to a contract the system is throwing an error: "Item categories in agreement and requisition incompatible".
    I had searched for the relating documents and tried all the conbinations but could not find the solution.
    Could any body help in this regard.
    thanks in advance.

    Hi Gayathri
    I thought so. So that means you are unable to create a contract with the combination of K and B which is why you are not able to adopt it in the PR with the same results.
    As far as entering the limit goes, you would be making a value contract in which you would have to enter the value of contract that you need to create for vendor. Also, for the second error, once you have created a contract with the particular account assignment, u cannot change it. You would have to create a new contract with the desired account assignment category and then try creating a PR. Hope this helps!

  • Error while creating a Purchase Order

    Hi Friends,
    I am new to SAP MM. I am getting a problem while creating a purchase order. I created Purchase Info Record, Source List, but while creating Purchase Order, price is not picking from the purchase order. I am getting an error i.e. Net Value must be greater than 0. I checked all the settings, but getting same error.
    Could you please solve this

    Hi,
    Give some price at the item level for the item in the PO.
    And check the Pricing procedure in PO
    Hope it helps you.
    Thanks.

  • Error while creating rough cut plannin profile using Info structure

    Hi,
    I got the following error while creating rough cut planning profile for Info structure,
    Capacity planning is not possible for this info structure S504
    Message no. MA489
    Diagnosis
    In the planning parameters for info structure S504, no key figure for capacity planning has been entered.
    Procedure
    If you want to capacity planning to be possible for this info structure, you need to enter a capacity key figure in the planning parameters for the info structure in the Implementation Guide.
    The info structure which i used here is created by me. Can any one help me to overcome this error
    Waiting for your replies
    G.Muthamil Murugan.

    Hi addy,
    Thanks for your reply. I have maintained the following Info structure which I created,
    Under characteristic I have maintained the following,
    1.Sales Organisation.
    2.Sales group
    3. Sales office
    4. Distribution channel
    5.Division
    6.Material
    Under Key figure I have maintain the following,
    1. Order items
    2. Production
    3.Sales
    4. Stock level
    5. Target stock level
    6. Day's Supply
    7. available capacity
    8.Target days supply
    I don t know where i did mistake. can you correct me.
    Regards,
    Muthamil Murugan.G

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • Budget Exceed Error during creating of Purchase order in reference to PR

    Hi,
    I am getting the subject error (Budget Exceed Error) every time when I want to create a purchase order related to purchase requisition of my project.
    Issue is that after release the project when the purchase requisition has created for non stock item under activity I found in transaction CJ31 the assign value has already updated.
    Let say my budget is 400 US$, and the purchase requisition has created for 380 US$. Now when I check with CJ31I found the assigned value is 380. Now If I create a purchase order it throws an error that budget exceed.
    The tolerance limits are following:
    SA     ZSA01     Budget Profile Overall AVAC     ++     1     90,00
    SA     ZSA01     Budget Profile Overall AVAC     ++     3     100,00
    SA     ZSA01     Budget Profile Overall AVAC     01     1     90,00
    SA     ZSA01     Budget Profile Overall AVAC     01     3     100,00
    Please advice what will be the proposed solution for the above issue.
    Thanks in advance.
    With Regards,

    Your budget is 400$ and PR value is 380$ but you have not mentiond what is the tax value ?
    when u r creating PO at that time system will check the budget against PO value considering taxes also.
    eg. 380$+tax value.
    after considering taxes your total PO value imay be getting updated more that 400$.
    Explre you error by clicking on error information you get the exact diffrence in budget and PO value.
    Hope this will sove your problem, reply after doing this.

  • Error while creating absence record in PA30 using 2001 infotype

    Hi all,
    iam getting an error while creating absence record for infotype 2001for LOP(unpaid)
    error : No quota available for att./abs. 6000 for pers. no. 61000052 between 31.12.2009 and 31.12.2009
    i have did
    Create a absence type LOP
    Determine Entry Screens and Time Constraint Classes
    Define Counting Rules
    Assign Counting Rules to Absence Types
    Payroll: India>>Absences>Describe Absence Valuation Rules 01 Unpaid Leave
    Group Absences for Absence Valuation>>Absence valuation rule>>F4 country grouping 40>> assign 01Unpaid Leave
    please solve this

    Actually I don't know how your system is configured.
    However, the error you're receiving seems you have assigned the absence type to a quota type.
    Please go to your counting rule and check whether Deduction rule - absence quotas - within entitlement field is filled.
    If yes, get the deduction rule value and go to
    SPRO Time man- Time data rec - Absences - Absence Cat - Abs counting - rules for counting (new) - deduction rules for abs quotas and check the quota type in here.
    If there is a quota assignment in place, before creating an IT2001 you need to create a IT2006 for that specific time period.
    Or, you need to delete the quota assignment via two config steps mentioned above.
    Regards,
    Dilek

  • How to Create AP Invoice from PO using SDK

    Hi,
    I want to create an A/P Invoice thru SDK for which already the Purchase Order has been entered thru the front-end. How to do it? Using SBO objects I am loading the particular PO. But after that how to transfer everything in the PO to AP Invoice.
    Thanx in advance.
    with regards,
    Ram.

    Hi Ram,
    Herewith an example:
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
            oPOrder.GetByKey(sOrder)
            oInvoice.CardCode = oPOrder.CardCode
            oInvoice.CardName = oPOrder.CardName
            oInvoice.Address = oPOrder.Address
            oInvoice.Address2 = oPOrder.Address2
            oInvoice.AgentCode = oPOrder.AgentCode
            oInvoice.Comments = oPOrder.Comments
            oInvoice.ContactPersonCode = oPOrder.ContactPersonCode
            oInvoice.DocDate = oPOrder.DocDate
            oInvoice.DocDueDate = oPOrder.DocDate
            oInvoice.FederalTaxID = oPOrder.FederalTaxID
            oInvoice.JournalMemo = "Based on Sales Order " & sOrder
            oInvoice.NumAtCard = oPOrder.NumAtCard
            oInvoice.Project = oPOrder.Project
            oInvoice.Reference1 = oPOrder.Reference1
            oInvoice.Reference2 = oPOrder.Reference2
            oInvoice.SalesPersonCode = oPOrder.SalesPersonCode
            oInvoice.SummeryType = oPOrder.SummeryType
            For i = 0 To oPOrder.Lines.Count - 1
                oPOrder.Lines.SetCurrentLine(i)
                If i > 0 Then
                    oInvoice.Lines.Add()
                End If
                oInvoice.Lines.BaseEntry = oPOrder.DocEntry
                oInvoice.Lines.BaseLine = oPOrder.Lines.LineNum
                oInvoice.Lines.BaseType = 22
            Next
            If oInvoice.Add() <> 0 Then
                oApplication.MessageBox("Error: " & oCompany.GetLastErrorDescription)
            End If
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oInvoice)
    Hope it helps,
    Adele

Maybe you are looking for

  • HP P6203W CPU fan error on startup windows 7 32bit system

    Hi there guys ! I got this HP computer for about a year now and since changing my broken CPU fan i got a CPU fan error on startup.  I have got a HP P6203W MOBO: Pegatron Narra5 Bios: phoenix technologies 5.55 12/08/2009 I wanted to reduce some noise

  • Ipad 2 connection

    did you know you can connect your ipad 2 to the internet even if its in airplane mode, NO neither did apple talked to 2 different people on apple support and then took a 2 1/2hr round trip to an apple store because i was told by support that i had to

  • Is there a lock screen command in OS X similar to Screen Lock in Windows?

    I want to lock screen for a brief period of time, and didnt want to log out or shut down the system. Is there a lock screen command for this, so that I can lock it and unlock whenever I need? Or I am wondering if I can log out without closing the app

  • Subscription Service is not working for KM; NW Portal 7.0

    Hi, I got some problems with the subscription service. I get a notifcation mail every time a new subscription is created or deleted. So this works fine for me. But I dont get a notification mail, if someone adds or deletes files in the corresponding

  • I want to make a title!!-published parameters

    I want to make a title, but many of the titles include more than one text sequence, title, subtitle, date, etc....how am i able to just use it one time for the title? like getting rid of the two other texts in that title