Creating AP drafts

Hello,
We are trying to create a AP draft and when pressing the Add button the following message is appearing:
"No matching records found 'Payment Terms' (OCTG) (ODBC-2028)"
However, the draft is created.
Do you know why that message is appearing if the draft has been creating?
More info: if we try to create an purchase invoice that message is not appearing.
version: 2005ASP01PL36
Thank you in advance!

I had a similar problem, and as it turned out, I had GL Account Determination set to Item Group but was missing some account numbers in my item group associated with the Part on the invoice. I would double check to see what your GL Account Determination is, and to ensure all accounts are entered.
Mike

Similar Messages

  • Price during creating of Draft/Purchase Order fails in SP01 PL04

    Hi,
    we try to port an add-on of us to B1 2005 SP01 PL04. The Add-On create a Draft/Purchase Order by DI Api. Doing so works fine in 2005A SP00 PL08 and PL11.
    Now we try to run it at SP01 and we got wrong prices in the DB.
    Here some sample code in C#:
    SAPbobsCOM.Documents document;
    if(createAsDraftDocument == true)
      document = (SAPbobsCOM.Documents)MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts));
    else
      document = (SAPbobsCOM.Documents)(MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders));
    document.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseOrders;
    filling the documents head data
    // adding a document line
    document.Lines.Add();
    // filling line
    document.Lines.ItemCode = 1;
    document.Lines.SupplierCatNum = otherValue;
    document.Lines.Quantity = 1;
    document.Lines.Price = 1;
    // adding the document
    if(document.Add() != 0)
      throw(new DocumentCreationException(MainClass.Company.GetLastErrorDescription());
      // everything OK now
      // fetch last docentry as docentry and save as xml
      SAPbobsCOM.Documents d = (SAPbobsCOM.Documents)(MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts));
      d.GetByKey(Convert.ToInt32(docEntry));
      string fn = @"E:\draft.xml";
      d.SaveXML(ref fn);
    In the XML I found:
    <?xml version="1.0" encoding="UTF-16"?>
    <BOM>
         <BO>
              <AdmInfo>
                   <Object>112</Object>
              </AdmInfo>
              <ODRF>
                   <row>
                        <DocEntry>6</DocEntry>
                        <DocNum>4</DocNum>
                        <DocType>I</DocType>
                        <CANCELED>N</CANCELED>
                        <Handwrtten>N</Handwrtten>
                        <Printed>N</Printed>
                        <DocStatus>O</DocStatus>
                        <InvntSttus>O</InvntSttus>
                        <Transfered>N</Transfered>
                        <ObjType>22</ObjType>
                        <DocDate>20060615</DocDate>
              <DRF1>
                   <row>
                        <DocEntry>6</DocEntry>
                        <LineNum>0</LineNum>
                        <TargetType>-1</TargetType>
                        <TrgetEntry>0</TrgetEntry>
                        <BaseRef/>
              <TaxOnExpFc>0.000000</TaxOnExpFc>
                        <TaxOnExpSc>0.000000</TaxOnExpSc>
                                  <DRF1>
                   <row>
                        <DocEntry>6</DocEntry>
                        <LineNum>0</LineNum>
                        <TargetType>-1</TargetType>
                        <TrgetEntry>0</TrgetEntry>
                        <BaseRef/>
              <TaxOnExpFc>0.000000</TaxOnExpFc>
                        <TaxOnExpSc>0.000000</TaxOnExpSc>
                        <TaxOnExAp>0.000000</TaxOnExAp>
                        <TaxOnExApF>0.000000</TaxOnExApF>
                        <TaxOnExApS>0.000000</TaxOnExApS>
                        <LastPmnTyp/>
                        <LndCstNum>0</LndCstNum>
                        <UseCorrVat>N</UseCorrVat>
                        <BaseType>-1</BaseType>
                        <BaseEntry>0</BaseEntry>
                        <BaseLine>0</BaseLine>
                        <LineStatus>O</LineStatus>
                        <ItemCode>1</ItemCode>
                        <Dscription>1</Dscription>
                        <Quantity>1.000000</Quantity>
                        <ShipDate>20060615</ShipDate>
                        <OpenQty>1.000000</OpenQty>
                        <Price>5.000000</Price>
                        <TaxOnExAp>0.000000</TaxOnExAp>
                        <TaxOnExApF>0.000000</TaxOnExApF>
                        <TaxOnExApS>0.000000</TaxOnExApS>
                        <LastPmnTyp/>
                        <LndCstNum>0</LndCstNum>
                        <UseCorrVat>N</UseCorrVat>
                        <BaseType>-1</BaseType>
                        <BaseEntry>0</BaseEntry>
                        <BaseLine>0</BaseLine>
                        <LineStatus>O</LineStatus>
                        <ItemCode>1</ItemCode>
                        <Dscription>1</Dscription>
                        <Quantity>1.000000</Quantity>
                        <ShipDate>20060615</ShipDate>
                        <OpenQty>1.000000</OpenQty>
                        <Price>5.000000</Price>
    which isn't as we expected and as it worked on PL00.
    This is the same the draft-form of the last draft we created shows:
    Price is 5 instead of the expected price of 1 we assigned through the DI-Api.
    Note: The Article-price in the item master data is set to 5.00.
    Is anyone out there who could help us as our add-on didn#t work any more on the new SP.
    Thanks
    Gerd

    Hi all,
    we found the problem our self. It seems that the handling of 'Price' and 'UnitPrice' differs a little bit between SP00 and SP01.
    Setting the 'UnitPrice' in the document lines instead of of the 'Price' solves the problem.
    A little bit ugly that the functionallity changes and there is no documentation found.
    Greetings
    Gerd

  • Contribute Creates a Draft instead of Replacing Document

    This email came from a client who's purchased two Contribute
    site licenses, and is having the following problem:
    "Every time I go to update our rate sheet on the website from
    my computer, Contribute creates a draft instead of replacing the
    existing document that's already posted. I try to save it as
    "document.pdf" but it converts it to draft and renames it something
    like "document_001.pdf."
    Could there be some sort of "lockout" generated from the
    other user's computer?
    I'd like to help this client answer this question, as it's
    inconvenient for him to work from his colleague's computer, and
    since they paid for the software, they should be able to use it,
    right? ;-)
    Thanks,
    Richard

    Hello Dave,
    The document was splitting because of Incoterms.
    Thanks for your help.
    Regards,
    Chandrashekar

  • I have an ipad2 and was using yahoo mail.  I pressed send and it didn't work however it created a draft.  I then opened the draft and now I can not cancel or send it or close the window.  It just remains in the mail screen.  Any suggestions?

    I have an ipad2 and was using yahoo mail.  I pressed send and it didn't work however it created a draft.  I then opened the draft and now I can not cancel or send it or close the window.  It just remains in the mail screen.  Any suggestions?

    I tried that but it is still stuck in Draft. Cancel button does not work but Send button does.

  • How to create a draft to a stocktransfer

    Hi,
    i want to creat a draf to a stock transfer.
    I know how to create do a sales/purchase document. But i can i do it to a stock trasnfer.
    Thanks in advance

    Below is a sample showing how to create a draft stock transfer using the DI.  (You can create this and other types of drafts using the SDK V2004).
    Private Sub CreateDraftTransfer()
        On Error GoTo ErrorHandler
        Dim sboTransfer     As SAPbobsCOM.Documents
        Dim lngRetVal       As Long
        Dim lngErrCode      As Long
        Dim strErrmsg       As String
        Dim strTransfer     As String
        Set sboTransfer = sboCompany.GetBusinessObject(oDrafts)
        sboTransfer.DocObjectCodeEx = "67"
        sboTransfer.DocDate = Date
        sboTransfer.DocDueDate = Date
        sboTransfer.Lines.SetCurrentLine 0
        sboTransfer.Lines.ItemCode = "BEETLE S"
        sboTransfer.Lines.Quantity = 2
        sboTransfer.Lines.Price = 10
        sboTransfer.Lines.WarehouseCode = "OT"
        lngRetVal = sboTransfer.Add
        If lngRetVal <> 0 Then
            sboCompany.GetLastError lngErrCode, strErrmsg
            MsgBox "Error: " & strErrmsg
        Else
            Call sboCompany.GetNewObjectCode(strTransfer)
            MsgBox "Draft Transfer Created"
        End If
        Exit Sub
    ErrorHandler:
        MsgBox "Error has occured. " & Err.Number & " " & Err.Description
    End Sub
    John.

  • Identify the source of Creating a Draft Document

    Hi Everybody,
                        Anybody know how to identify a Draft generated by the wizard than other generated by the user (creating a document as a Draft) in the ODRF table, property DATASOURCE???
    Thanks!!

    Datasource field only identifies whether an  entry made through user interface or by some add on etc, since you are using the user interface, i dont' think any field exactly identifies, if the record was created by user or through some wizard.
    Though in some particular transactions, it does stores that the record was created by a wizard. For example, in production order, it does identifies that the record was created by MRP wizard.
    If you can be more elaborate regarding which documents you're trying to check, perhaps some exact way could be find out.
    Rahul

  • Query for Transaction number in Create Accounting = Draft Mode

    Hi al!!
    I run the Create Accounting program concurrent in my R12 instance in DRAFT MODE, and when the concurrent program finish i want to obtain the TRANSACTION number of the transactions in the XLA_AE_LINES table, how can i do that ???... it's for AP_INVOICES, AP_PAYMENTS, RECEIPT and CE Tables...
    Thanks in advance..
    Pablo.-

    1 row in ap_invoice_distributions_all ------> 1 row in xla_ae_lines.xla_ae_lines will have more than one row. dr and cr has to be there for each journal entry.
    I want to do a query that get lines from XLA_AE_LINES and then obtain the transaction number (AP_INVOICES_ALL.INVOICE_NUM) that was generated this line in the table.Check the link http://www.orafaq.com/node/2242
    I know that this is possible to do using the XLA_ENTITY_TRANSACTIONS table... but when the concurrent is run in DRAFT mode no line are created in this table.The rows in xla_transaction_entities table will get created when the invoice is created. NOT after running accounting, which is much earlier.
    Check the link http://www.orafaq.com/node/2243
    Also some more details on draft, final accounting are available at http://www.orafaq.com/node/2240
    By
    Vamsi

  • Mail creates unwanted Drafts folders

    Every time i open Mail (V. 10.5.5) a drafts file has been created in the "On My Mac" and "Mac.com" sections. I delete them. I go into preferences and uncheck the "store drafts on the server" box. Next time, the draft folders are there again and the "store drafts" box is again checked. I turned off the sync function in System Preferences. That did not help. Finding folders that i do not want or need is very annoying. What is causing Mail to reset my preferences?

    All my accounts are disabled from storing draft emails on the server. It's possible your system has a corrupt .plist file.
    Create a new user account for testing. Add your email account there and see if it works correctly there.

  • Creating a DRAFT Watermark in Pages '09

    Hi:
    I am attempting to find out how to place a washed-out "DRAFT" in grey text diagonally across my document (as a watermark), but I can't seem to figure it out.
    Could someone please walk me through this? I wish it was as easy as MS Word.
    Thank you!

    JM,
    Begin by Command-clicking in the margin. That takes the focus off the Text Layer and assures that the text box you are about to add will be a Floating objecct.
    Then, Insert > Text Box.
    Go to the Wrap Inspector and deselect the Object Causes Wrap feature.
    Type the word Draft into the Text Box.
    Select the word Draft and set the Font Size to something on the order of 200 points. Resize the text box to reveal the entire word, if necessary
    In the Format Bar, click the black color block to the right of the font size selection box and select a gray color of your choice.
    Select the text box and place the pointer over one of the corners. Hold down the Command key and the double-arrow cursor will change from straight to curved. Drag the corner to change the angle of the box. Reposition the box if necessary.
    With the Text Box still Selected, choose: Arrange > Send Objects to Background.
    If you only want the word Draft to appear on that one page, you're done. If you want it to appear on every page, continue...
    Move your pointer to the margin. Hold down the Command key and Drag diagonally across the page to select the background text box.
    Choose: Format > Advanced > Move Object to Section Master.
    You'll get something like this:
    Regards,
    Jerry

  • Mac Mail creating additional Drafts

    When I generate a message in Mac Mail, or when I reply to a message I have received, I often discover (after the reply/message has gone) that another version of the message is sitting in my drafts folder. Normally it is only a draft until it is sent, then it disappears from the draft folder. But not always. Initially I thought the message had not gone, so I clicked on send again and it then disappeared from the drafts folder, but the recipeint then told me they had received the same message twice.
    Anyone any idea why the application is generating a second draft?

    It may be account-related. From Mail Help:
    Drafts mailbox
    The Drafts mailbox contains messages you’ve saved but haven’t sent yet. The Drafts mailbox remains displayed until there are no drafts and you quit Mail.
    If you have an Exchange or Internet Message Access Protocol (IMAP) account that is set to save drafts on the server, then as soon as Mail syncs with the server, any drafts you save are shown on your other computers that use that account. To see the drafts immediately, choose Mailbox > Synchronize for the account.

  • 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?.

  • Every time I save a draft it creates a new draft rather than updating thr dradt I am working on

    While writing an E-Mail I may receive a call so I need to save the E-Mail. I click save and it creates a draft which is fine. I go back to add to the draft and must save again and it creates a new draft. Every time I save it creates a new draft rather than updating the old draft as it does on my other computer

    Chris, my guess is you may be confused by one or more tilde files inside the project, a project file with a tilde (~) in its name.
    If the project was begun in iMovie 4, the project resides in an iMovie 4 type-folder, not an iMovie 6 package. The folder lets you see the tilde file. For projects begun in iMovie 5 or 6, the project is a package instead of a folder. And you never see the tilde file, for the package looks like a file instead of a folder.
    The problem is discussed here:
    http://discussions.apple.com/thread.jspa?messageID=1971832&#1971832
    My guess is you're opening the wrong project file to re-open the project. So when you save, it's saving a new tilde file.
    The whole issue is rather confusing. Check out the topic, and if you can't get it straightened out say more about what's going on there.
    Karl
    PS: If you haven't yet, create a new iMovie 6 project, add something to it and save. To look inside the package, Control-click on the project (in the Finder) and choose "Show Package Contents" from the popUp menu. You will see one tilde project file and one project file without a tilde. That's ALL the project files you should ever see.

  • Create draft incoming payments

    Hi all,
    i am having great difficulty in creating draft incoming payments through the DI, whatever I seem to do I cannot see the sort of properties that the help files say are there e.g. .cashsum .transferaccount etc. The only propoerties that are shown are the ones for marketing documents. I have tried all combinations of the two sets of code below but nothing seems to work,
      Dim DraftPay As SAPbobsCOM.Documents = GetDIConnection.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
      DraftPay.DocObjectCode = SAPbobsCOM.BoObjectTypes.oIncomingPayments
    Dim DraftPay As SAPbobsCOM.Documents = GetDIConnection.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPaymentsDrafts)
      DraftPay.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPaymentsDrafts
    In trying to fix this issue i have given up on the idea of creating a draft and tried to create a simple incoming payment but i hit the same issue. Whatever I seem to do I only get the option to use marketing document properties.
    Am I missing something obvious or has someone else hit this issue (I am using V2007 by the way)
    Any help would be appreciated as we begin training on this system in two weeks!
    Gordon

    Hi,
    you create payments like
    vb6 samples:
    Dim oPay As SAPbobsCOM.Payments
    Set oPay = vCompany.GetBusinessObject(oIncomingPayments)
    Set oPay = vCompany.GetBusinessObject(oVendorPayments)
    Set oPay = vCompany.GetBusinessObject(oPaymentsDrafts)
    for drafts you also have to set:
    oPay.DocObjectCode = bopot_IncomingPayments
    or
    oPay.DocObjectCode = bopot_OutgoingPayments 
    i hope it helps
    lg David

  • HT5928 I0S 7 draft folder in email exhcange is gone...anyone else have an issue with this "upgrade".  Draft folder is essential for my work as I create on my laptop and need the draft available on my iPad when I travel...UGH!

    I0S 7 draft folder in email exchange is gone...anyone else have an issue with thie "upgrade"?  Draft folder is essential for my work as I create in draft folder on laptop/desktop and need that information available on the iPad when I travel.

    I0S 7 draft folder in email exchange is gone...anyone else have an issue with thie "upgrade"?  Draft folder is essential for my work as I create in draft folder on laptop/desktop and need that information available on the iPad when I travel.

  • Create a A/P Invoice Draft for approval

    Hello Experts,
    I want to create a A/P Invoice-Draft via Purchasing module,when clicking The Add Button the invoice is directly posted to the G\L without create a draft that other user who have permissions can view and approval via the Approval Decision Report.
    Please Tell me what is wrong...
    Thanks.
    Ben

    Hi
    I am not sure about your  problem.It looks to me that your approval query is not triggered .
    There could be th reason:
    1.If you are using user defined query ,and you are not meeting the condition to trigger.
    2. For example : If you said  Trigger approval procedures if sales order total is greater than 200.
         It won't trigger approval procedures if sales Order total is less than 200. And User can add the document .
    When Approval Procedures triggers, then the document that triggers  stays as a draft  until it is approved .
    One quick way to check if it not your query , on the condition  specify always .(Approval template >> term >> always . See if it creates the same situation .
    Hope this helps to narrow down your problems .
    Thank you
    Bishal
    Edited by: BIshal Adhikari on Dec 10, 2008 4:18 PM
    Edited by: BIshal Adhikari on Dec 10, 2008 4:39 PM

Maybe you are looking for

  • VS2013 - I cannot deploy and debug windows phone 8.1 store app to windows phone device

    Hello, I create a project from C#-> Store Apps -> Windows Phone Apps, but  I cannot deploy my apps to my blue device. There was a error message show "Element not found". I can run the app from Blend, and found Blend package the app to Appx file. Is a

  • Is it possible to put some data, such as numeric and string, on the pront panel

    Hi guys,,, Is it possible to put some data,such as numeric or string as input data on the front panel? In general, I only know how to create text file by using notepad, for example, after that open and read that text file to show on the table control

  • Restore problem with mac os x

    Hi, I am trying to restore my macbook air to factory settings. I put my mac into a recovery mode, and then used mac utilities disk utility to erase everything from my mac. When i then tried to reinstall mac os x, i got a massage that said : This item

  • Launching Transaction in through wizard in IC Web client

    Hi Guys,               I would like to know about the configuration of transaction launcher through the wizard in IC webclient. Can someone guide me ............ Regards Neeraj Krishna

  • Creating form that submits content to email

    Hi- I am making my first attempt to create a form in flash that will submit the viewers input in the text fields to an email address. I have created the form itself with four text fields, txt_first, txt_last, txt_email, txt_message are the names I ha