Want to cretae Purchase Invoice automatically

Hi Everybody,
Is there any way to create PI automatically when
i click on the save button after completing GRC?
Please help...
Thanks in advance.
Regards
AK

Hi,
Call BAPI_PO_GETDETAIL1 with your purchase order number.
TABLES parameter POHISTORY returns you the purchase order history.
These records have a field HIST_TYPE ( PO history category ) with the following values (value table T163B):
1     AAf     Down Payment Req.
2     AAfV     DP Request Clearing
3     AnzV     Down Payt Clearing
A     Anz     Down payment
B     NAbr     Subseq. settlement
C     NeuR     Miscell. provision
D     Lerf     Service entry
E     WE     Goods receipt
F     BzWE     Delivery costs
G     BzRE     Delivery costs
I     BzKP     Del.costs acct.maint
J     RLfs     Return delivery
K     KtoP     Account maintenance
L     Lfs     Delivery note
M     BzRe     Del. costs log. inv.
N     NB-L     Subs. deb. log. IV
O     LB     Subcontracting
P     NB-B     Subs. deb. dl. costs
Q     RE-L     Invoice receipt                    " <<<
R     RE     Invoice receipt                    " <<<
S     Sped     Subs.deb.: forwarder
T     VRe     Parked invoice
U     WA     Goods issue
W     NeuB     Revaluation log. IV
X     NB     Subs.deb.: general
Z     Zahl     Payment
Presumably you are interested in categories 'Q' and 'R'.
Thanks&Regards,
Naresh

Similar Messages

  • Report to show all purchase invoices in B1

    Is it possible via a standard report in B1 to pull a list of all purchase invoices in the system (open and closed)??
    Purchase analysis will only show open invoices as far as i know.

    Hello Casserly David ,
    Please try the following query:
    SELECT SUM(T0.DocTotal), T0.DocDate, T0.DocNum,
    T0.DocStatus FROM OPCH T0 GROUP BY T0.DocDate,
    T0.DocNum, T0.DocStatus
    If you want to generate total value of all purchase
    invoices automatically, please hold Ctrl button
    on keyboard and Click on the header of Document total
    column. The total value will appear on the
    bottom of report.
    Regards,
    Wilma Wang
    SAP Business One Forums Team

  • I want to have full invoice for the order I online purchased in Apple store.

    Hi Apple Support,
    I want to have full invoice for the order (W290638416) I online purchased in Apple store it is necessary support document for the corporate.
    Could you issue the full invoice and then send it as attachment to email address
    <Edited By Host>
    Please support ASAP.
    Regards,
    Train1
    <Edited By Host>

    Apple support is not here. These are user-to-user forums. You will need to call the Apple Store from which you made the purchase and ask them for assistance.
    Regards.

  • I dont want my newly purchased songs from itunes automatically sync to my iphone 4S. How do i unsync ?

    i dont want my newly purchased songs from itunes to automattically sync to my iphones 4S.
    How do you unsync?
    Thank you

    thank you very much for the quick reply.
    I did every step you mentionned but i still see all my recently purchased songs.
    i closed my phone off completely and re-opened it and they are still there.
    Is there any other way ?
    thanks again

  • Goods receipt number and purchase invoice nubember info objects

    hi experts
    i have the requirement to build the report with the  info objects of goods receipt number(document) , purchase invoice numbers and purchase document numbers from standard cubes or ods.i have checked in inventory management and purchasing cubes&ods i am not success got the purchase document number it is from ods   (0PUR_O02)  the InfoObject  is 0OI_EBELN(purchasing document number),like this i want InfoObject  for Goods receipt number and purchase invoices from where can i get these fields.
    if u need any more information i will provide.
    thanks and regards
    Sreenivas.

    Hi Ahamed,
    thanks for your reply,do u have any information about purchase invoice number.
    i need one more help from you, how to find out Debtors turnover ratio from Acceount Receivables(AR) (or)G/L (General ledger account).is there any standard queries from Business content,i was checked and i was failed,if you have any solution for this please let me know.
    thanks and regards
    Sreenivas.

  • Creation of  purchase order automatically  by taking  purchase requesition

    Hello Gurus
    Is it possible to create purchase order  automatically  by taking purchase  requesition  no from  sales order?
    i checked in all the  forms  couldn't find  any answer .
    thank you  in advance
    regards
    venkat

    Hi Venkat,
    When you save a sales order that contains one or more third-party items, the system automatically creates a purchase requisition in Purchasing. Each third-party item in a sales order automatically generates a corresponding purchase requisition item. During creation of the requisition, the system automatically determines a vendor for each requisition item. If a sales order item has more than one schedule line, the system creates a purchase requisition item for each schedule line.
    Purchase orders are created from purchase requisitions in the usual way. But If you want the Purchase orders to be created automatically, then you should automate the creation of purchase order by creating a job or using workflow. Other wise to create a PO from PR use ME57. A third-party order is usually created referencing a third-party item in a purchase requisition. You can create purchase orders in this way individually or collectively. For Configuring Automatic PO kINDLY PLEASE LOOK into this.
    "http://help.sap.com/saphelp_47x200/helpdata/en/94/da2e3b2bdab96be10000000a114084/frameset.htm"
    Kindly please let me know If you need any more information on this.
    Regards,
    Ram Pedarla

  • Purchase Invoice

    Hi all,
    how to handle Purchase Invoice Including or Excluding Tax.
    For eg.
    Client is having Export Business in Foreign countries and for that they are making Export Invoice and with in country they are using normal invoice system.
    If they made A/P Invoice including freight charges and landed Cost,JE posted is.
    Credit 
    Vendor Account----724
    Debit
    Tax Account--14
    Purchase price gain--10
    Goods Invoiced Acct ---700 .
    But in case of export invoice they are having JE
    Credit
    Vendor Account---- 700
    Let Abc Acct----
    14
    Let Xyz Acct----
    10
    Debit
    Tax Account--14
    Purchase price gain--10
    Goods Invoiced Acct ---700 .
    how to do this in SAP B1.
    Thanks,
    Neetu

    Hi
    For export AP invoice create manual correction journal entry adjusting the automatic journal entry.
    Another method if only specific items are used for export purchase would be to try "set G/L accounts by Item group" in Item master with the required GL postings set in "Purchase acct" of Item group in Administration setup.
    But if u insist on automatic journal entry, create separate series for export AP invoice and use stored procedure for the journal postings, but for this please consult experts in technical forum.
    Hope this will help you.
    Edited by: Rui Pereira on Dec 9, 2008 4:58 PM

  • Purchase invoice tables

    Dear all,
    We're trying to find out purchase order invoice tables. We have found RBKP as header and RSEG is material detail. However we cannot match any of them with MSEG material transactiond because any of them does not contain MSEG document number as a reference document or something. Also we've tried BSEG bur it is the same story. Can anyone tell us that if there is a table which links MSEG (material transactions) and RSEG (purchase invoice items) ? Thanks in advance.
    Levent Arslan

    Hi there,
    I am not sure if there's anything that matches your need. You might want to link a PO table like EKPO inbetween via a query -SQVI
    Other wise you should have referenced or mentioned the Gr # in teh invoice.. which is the only way you can link them
    You can also link it via GR/IR account, however not sure if this fits your need.

  • Purchase invoice plan and PS

    Hi all,
    PS allows to manage sales invoice plan using milestone. Is there any object I can use to manage in the same way a purchase invoice plan directly in PS?
    Thanks a lot.

    Hi,
    In SPRO>PS>Costs->Planned cost->Automatic costing in network and activities--->Maintian settings for invoicing plan.
    In CJ20N,
    Select the externally procured material, Then
    Edit->Component--->Invoicing Plan
    Hope its useful.
    Reward points if useful.
    Thanks..

  • Purchase Invoice Quantity link with Sales Invoice Quantity

    Hello All Experts,
    My client to link Purchase Document with Sales Documents.
    1.I create a Sales invoice and it is to be linked with Purchase Invoice means we want to find out that How much quantity sold from the Purchase Invoice quantity ,Because they manage the stock based on Purchase Invoice.
    How can be manage it in SAP  ?
    Thanks & Regards
    Krishna

    Hai Krishna Gopal
                           If u manage item by batches u can take your report easily
    for example u can take report like this
    GRPO NO Itemcode qty Batchno ,Invoice no itemcode qty Batchno
    If am wrong please correct me

  • Transform an object draft (purchase invoice) to one final with SDK.

    Some body help me.
              I need transform an object draft (purchase invoice) to one final with SDK.  
    I want make a massive approving puchase invoice in draf mode.
    How can i do that???
    CGM

    Hi,
    Different DI API Versions handles different XML versions.
    see ocompany documentation or you can use the following to reach version 2.
           oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
           oCompany.XMLAsString = False
    You can define in the xml file the version. Even if you have an older version it can work also.
    I have put here a stocktransfer, but i have found a Purchase Invoice
    Here is version 1/2 from 2004ABC versions up to 2007AB ... I had a full function for you.input is the draft absentry.
        Private Function saveDraftAsPurchaseInvoice(ByVal AbsEntry As String) As Boolean
            'oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
            'oCompany.XMLAsString = False
            Dim oPI As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseInvoices)
            If oPI.GetByKey(1) Then
                oPI.SaveXML(My.Application.Info.DirectoryPath & "\sample_Purchase_invoice.xml")
            End If
            Dim oDraft As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oDrafts)
            If oDraft.GetByKey(AbsEntry) = False Then
                Return False
            End If
            Dim FileName As String = My.Application.Info.DirectoryPath & "\18_" & CStr(DateDiff(DateInterval.Second, CDate("2007/01/01"), Now)) & ".xml"
            Dim xmlString As String
            Dim oXmlDoc As New Xml.XmlDocument
            xmlString = oDraft.GetAsXML()
            ' event this is not set you have version 1 using table names!
            'oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode -> version 2 of XML DI API, using DOCUMENT instead
            ' of table name !
            xmlString = xmlString.Replace("<Object>112</Object>", "<Object>18</Object>")
            xmlString = xmlString.Replace("<ODRF>", "<OPCH>")
            xmlString = xmlString.Replace("</ODRF>", "</OPCH>")
            xmlString = xmlString.Replace("<DRF1>", "<PCH1>")
            xmlString = xmlString.Replace("</DRF1>", "</PCH1>")
            xmlString = xmlString.Replace("<DRF3>", "<PCH3>")
            xmlString = xmlString.Replace("</DRF3>", "</PCH3>")
            xmlString = xmlString.Replace("<DRF6>", "<PCH6>")
            xmlString = xmlString.Replace("</DRF6>", "</PCH6>")
            oXmlDoc.LoadXml(xmlString)
            oXmlDoc.Save(FileName)
            Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oPurchaseInvoices)
            Try
                oDoc = oCompany.GetBusinessObjectFromXML(FileName, 0)
                oDoc.Comments = oDraft.Comments & " DI API ADDED FROM DRAFT"
                oDoc.DocNum = 0
                oDoc.DocDate = Date.Today
                oDoc.DocDueDate = Date.Today
                oDoc.TaxDate = Date.Today
                lRetCode = oDoc.Add()
                'Kill(FileName)
                If lRetCode = 0 Then
                    Dim NewEntry As String = String.Empty
                    Call oCompany.GetNewObjectCode(NewEntry)
                    sbo_application.StatusBar.SetText(NewEntry)
                Else
                    sbo_application.StatusBar.SetText(oCompany.GetLastErrorCode.ToString & " - " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                sbo_application.StatusBar.SetText(ex.Message)
            End Try
        End Function
    Regards
    J.
    Edited by: Janos  Nagy on Aug 12, 2008 1:13 PM

  • Cnfigaration of purchase invoice (form)

    hi,
    In my requirement I have created a form  that  form gives the invoice details. that invoice is purchase invoice document. so I want to configure this purchas invoice form. how can I achieve it.
    Moderator message: please do more research before asking, show what you have done when posting.
    Edited by: Thomas Zloch on Feb 28, 2012

    Subrata,
    it is possible to reuse the system forms by activating their menu id. for example, when you will make a seperate module, you will create an xml file where you will give some unique id for each menu.
    on menu click event of each form, you will load the respective form. in case of sales order or invoice , you simply activate the resepective form's menu. like:
    Private Sub sbo_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles sbo_Application.MenuEvent
            If pVal.MenuUID = "xxx" And pVal.BeforeAction = False Then
                sbo_Application.Menus.Item("2050").Activate()
            End If
        End Sub
    '2050' is sales order form's menu id.
    and 'xxx' is the menu id that you have specified in your xml through which you are making user defined menu.
    HTH,
    Binita Joshi

  • Add BatchNumbers Purchase Invoice

    Hi
    How is it possible to include data from the Purchase Invoice lot before the user saves it?
    I Need fulfill the batch data automatically while the user is still entering the Purchase Invoice

    Hi Carlos.
    Many ways you can do it,
    One is you catch the Item event of user clicking the add button on Before Action  = false.
    Then you have to manipulate the UI to do this.
    Like opening the Batch Form, Creating the batch, so on.
    Through DI, you cannot do the above scenario, But you can do below....
    When the user choose the PO Document in the choose from list,
    You catch the event, create a draft Purchase Invoice for them through DI based from the PO chosen, and while doing so, creating the Batch.
    And the show the draft for the user to edit all the other field....
    Regards
    Edy

  • About creating pre-filled purchase invoices

    Hello guys,
    Would you have any idea of how I can create some generic purchase invoices? The point is to have a set of pre-filled direct invoices (no need for GR) with reference, text, VAT, supplier, quantity = 1, accounts and imputation fields already filled and accessible via MIRO, so that the users just have to enter the amount and date. I should add that I haven't parametered the material master data in this system.
    I have seen that in FB60, there is a possibility to create an invoice with reference, accnt assignement template and variants but I need to pass through the logistic transaction MIRO because there is a specific WorkFlow plugged on the invoice validation.
    I've thought of creating pre-filled PO but there is no possibility to have multi imputation (with differents account types). What do u think?
    Thx
    Guillaume

    Thank you for Your quick reply,
    I didn't know this SHD0 transaction and it is pretty useful! halas it doesn't work for my need since it doesn't work for tabs or for screens that are directly generated by the transaction (in the case of MIRO, the lower screen is generated only after u enter the PO). It seems also that you can't imput some amount in the variant created (since it depends on the user parameter, i think because of the . or , thing in the user amounts definition).
    Maybe I could use the master data but I don't want to set it just for this. Anyway, I'll see that my customer rethink about it
    Regards,
    Guillaume

  • WANTED  NEW PRICE  IN INVOICE

    Dear Friends,I have one requirement.
    Price has changed from order time to billing time.system is picking old condition record instead of new one at the time of billing.
    When i go for pricing analysis,the condition record value is showing as new price but not picking in invoice automatically.If i go for carry out new pricing option ,its taking new value but i want it done automatically.Please suggest me.

    Hi,
    By changing the copy control at item level for billing documents, this can be managed. Transaction - VTFL
    Check for copy control at item level - for billing doument type and delivery document (or sales order type) combination , and for the item category see the details of copy control. Check the enties in "pricing type". Make the entry "B', then every time you do billing, it will automatically redetermine prices.
    If useful, pl acknowledge
    Muraleedharan.R
    091 9880028904

Maybe you are looking for