Who created Invoice in AP , need user_id

Hi,
When Invoice is created in AP , record is inserted into AP_INVOICES_ALL table
How will i know who created this invoice , I'm looking for user_id of the person who
created this invoice.
Thanks.

Please use this script:
select inv.invoice_id, inv.invoice_num, us2.user_name
from ap_invoices_all inv,
fnd_user us2
where inv.created_by = us2.user_id
Edited by: Stag609 on Oct 11, 2011 10:58 AM

Similar Messages

  • BAPI needed to create invoice and creditmemo

    Hi all,
          Is there any BAPI available to create invoice and creditmemo when material no is not given.
          My requirement is to create credit memo and  invoice through FB75 or FB70 transaction. I am able to achieve the same through BDC. Is there any BAPI availabe for the same to create credit memo or invoice to avoid BDC.
          Input given to the program is a excel file in which i have the following fields
          Transaction -- which separates credit memo or
                         invoice
          Company code, purchase order number, GL account
          number, cost center, profit center, amount etc...
    Please let me know some pointers.
    Regards,
    Karthik.

    GN_INVOICE_CREATE or BAPI_BILLINGDOC_CREATEMULTIPLE
    Please find the sample code for Billing document BAPI.
    t_billing-salesorg = vbak-vkorg.
    t_billing-DISTR_CHAN = vbak-vtweg.
    t_billing-DIVISION = vbak-spart.
    t_billing-DOC_TYPE = vbak-auart.
    t_billing-ref_doc = vbak-vbeln.
    t_billing-ref_item = vbap-posnr.
    t_billing-doc_number = vbak-vbeln.
    t_billing-ITM_NUMBER = vbap-posnr.
    t_billing-ordbilltyp = 'BILLING TYPE'.
    t_billing-price_date = sy-datum.
    t_billing-ref_doc_ca = vbak-vbtyp.
    t_billing-sold_to = vbak-kunnr.
    t_billing-material = vbap-matnr.
    t_billing-plant = vbap-werks.
    APPEND t_billing.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    TABLES
    billingdatain = t_billing
    return = t_return
    success = t_success.
    commit work.
    Regards

  • How to create Invoice with ref to PO

    Dear sd gurus..
    i know we can create invoice with ref to sales order not with po
    But i want to create Invoice with ref to po only
    please guide me
    Thanks a lot

    Venu, thanks for your reply.
    So in this case your idea wont work but the main imp thing is we cant create invoice with ref to po
    Please read my post once again, i never said we can create customer invoice with ref  to Purchase order. I said very clearly, " you can follow the normal 3rd party sales process", which means we create customer invoice with ref to sales order only.
    Coming into another query,
    but some time PO Is generated 110 qth to vendor but vendor  may be  he will send  105 due to shortage ... and he will tell i will send the the remaining stock after next 10 days now Generally miro will happen only for 105 not 110 ( even we can do MIRO110 also ) but i am talking generally because he received the stock 105 only
    But company wants billing for 110 not for 105 because here customer accepted to pay full money
    and vendor gave promise to delivery 5 qty in next 10 days
    Why will the customer  agree to be billed the full qty, when he receive the partial qty?
    Let us assume as you said customer agree to pay for full qty, then there are two options.
    1. Do the MIRO for full qty since you would be invoicing the customer for full qty
    Or
    2. Do the MIRO for partial qty and customer should agree for partial invoice
    Please note in the normal case also if there is if condition then you don't have other option.
    Example:
    Order = 100 qty
    PO = 100 qty
    MIGO = 50 qty and remaining 50 qty Vendor delivery in next 10 days
    MIRO =50 qty
    But here also customer agreed to pay for full qty, then what will you do ? you don't have other option but to bill the partial qty in standard.
    And let me know if you need any more clarity?
    thanks,
    Srinu.

  • Error when creating Invoice via DI API

    Can you help me, I have a problem about DI
    When I create invoice with serial number and create transaction with 1 item in many serial number itu2019s no problem but
    If i create transaction with 2 diffrent item with many serial number has error the error code -5002([inv1.docentry][line:0],u2019item serial us not found in whseu2026.u2019)
    I using sap 2005 pl 40, I have debug my coding there is nothing wrong with it, than I suspec this is bug in DI is that rightu2026
    This is my code
      Dim oInvoices As SAPbobsCOM.Documents
            Dim iRetVal As Integer = -1
            Dim sErrMsg As String = ""
            Dim isAddHeader As Boolean = True
            Dim iRow As Integer = 0
            Dim sWhsCode As String = ""
            Dim iAddedQty As Integer
            Dim iCurrLine As Double = 0
            Dim iBasedDoc As Integer = 0
            Dim sNewDocNum As String = ""
            Dim sCardCode As String = ""
            Dim isdocnum As String = ""
            Dim CompleteOrder As DataRow
            Try
                oInvoices = myCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                For iRow = 0 To myOrderDetailsTable.Rows.Count - 1
                    Console.WriteLine(myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD))
                    If myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD) = 1 Then
                        Console.WriteLine(myOrderDetailsTable.Rows(iRow))
                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                        Console.WriteLine(sWhsCode & "   " & CompleteOrder(WHSCODE_FIELD))
                        sWhsCode = CompleteOrder(WHSCODE_FIELD)
                        With oInvoices
                            If isAddHeader Then
                                isdocnum = CompleteOrder(DOCNUM_FIELD)
                                iBasedDoc = CompleteOrder(DOCENTRY_FIELD)
                                sCardCode = CompleteOrder(CARDCODE_FIELD)
                                '.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
                                .Reference2 = CompleteOrder(DOCENTRY_FIELD)
                                .DocDate = Today.Date
                                .DocDueDate = Today.Date
                                .TaxDate = Today.Date
                                Console.WriteLine("cardcode : " & sCardCode)
                                .CardCode = sCardCode
                                Console.WriteLine("ibasedDoc :" & iBasedDoc)
                                .Reference1 = iBasedDoc
                                isAddHeader = False
                            ElseIf isAddHeader = False Then
                                ' .Lines.Delete()
                                .Lines.Add()
                            End If ' isAddHeader
                            iAddedQty = 0
                            iCurrLine = 0
                            Console.WriteLine("CompleteOrder(ITEMCODE_FIELD) : " & CompleteOrder(ITEMCODE_FIELD))
                            .Lines.ItemCode = CompleteOrder(ITEMCODE_FIELD)
                            Console.WriteLine(".Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD) : " & CompleteOrder(WHSCODE_FIELD))
                            .Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD)
                            Console.WriteLine("Lines.UnitPrice = CompleteOrder(PRICE_FIELD) " & CompleteOrder(PRICE_FIELD))
                            .Lines.UnitPrice = CompleteOrder(PRICE_FIELD)
                            Console.WriteLine("CompleteOrder(ISUSEBATCH_FIELD) : " & CompleteOrder(ISUSEBATCH_FIELD))
                            If CompleteOrder(ISUSEBATCH_FIELD) = 1 Then
                                For iCurrLine = 0 To CompleteOrder(QUANTITY_FIELD) - 1
                                    If iCurrLine > 0 Then .Lines.BatchNumbers.Add()
                                    .Lines.BatchNumbers.SetCurrentLine(iCurrLine)
                                    .Lines.BatchNumbers.Quantity = 1
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.BatchNumbers.BatchNumber = CompleteOrder(SCANNED_FIELD)
                                    '.Lines.BaseEntry = iBasedDoc
                                Next
                            ElseIf CompleteOrder(ISUSEBATCH_FIELD) = 0 Then
                                Console.WriteLine("CompleteOrder(WHSCODE_FIELD) :" & CompleteOrder(WHSCODE_FIELD))
                                While sWhsCode = CompleteOrder(WHSCODE_FIELD)
                                    If iCurrLine > 0 Then .Lines.SerialNumbers.Add()
                                    .Lines.SerialNumbers.SetCurrentLine(iCurrLine)
                                    Console.WriteLine("CompleteOrder(SYSSERIAL_FIELD)" & CompleteOrder(SYSSERIAL_FIELD))
                                    CompleteOrder(SYSSERIAL_FIELD) = IIf(IsDBNull(CompleteOrder(SYSSERIAL_FIELD)), 0, CompleteOrder(SYSSERIAL_FIELD))
                                    .Lines.SerialNumbers.SystemSerialNumber = CompleteOrder(SYSSERIAL_FIELD)
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.SerialNumbers.InternalSerialNumber = CompleteOrder(SCANNED_FIELD)
                                    ' .Lines.BaseEntry = iBasedDoc
                                    iCurrLine = iCurrLine + 1
                                    iRow = iRow + 1
                                    If iRow <= myOrderDetailsTable.Rows.Count - 1 Then
                                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                                    ElseIf iRow > myOrderDetailsTable.Rows.Count - 1 Then
                                        Exit While
                                    End If
                                End While
                                iRow = iRow - 1
                            End If
                            .Lines.Quantity = iCurrLine
                        End With ' oInvoices
                    End If ' CompleteOrder(ISSCANNED_FIELD) = 1
                Next iRow
                iRetVal = oInvoices.Add()
    thnx for your attention

    Hello tony,
    Please check the following:
    1.Make sure the item is managed by serials
    2.The serials number have been auto created in GRPO/AP invoice etc puchase document
    3.You need to set the system serial number for the lines. How do you know the system serial number of the serial number? refer to the Serial Number Details form
    Inventory=>Item management=>Serials Numbers=>Serial Number Details
    SystemSerialNumber Sets or returns the successive numerator starting from1 issued for each item with serial numbers management. This numerator progresses according to the creation of new units of the same sort (for the same item).
    This property is mandatory when using Serial Numbers for outgoing documents. Field name: SysSerial.This is a foreign key to the SerialNumbers object
    Sample code to add invoice with items managed by serials:
    Private Sub btnSerials_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSerials.Click
            ConnectViaDI()
            Dim oInvoice As SAPbobsCOM.Documents = Nothing
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oInvoice.CardCode = "C001"
            oInvoice.DocDueDate = Date.Now
            Dim oLines As SAPbobsCOM.Document_Lines = oInvoice.Lines
            oLines.ItemCode = "S00002"
            oLines.UnitPrice = 1500
            oLines.Quantity = 2
            oLines.TaxCode = "CA"
            'Set the system serial no. for the 1st item
            oLines.SerialNumbers.SystemSerialNumber = 3
            'Set the system serial no. for the 2nd item
            oLines.SerialNumbers.Add()
            oLines.SerialNumbers.SystemSerialNumber = 4
            lRetCode = oInvoice.Add
            If 0 <> lRetCode Then
                oCompany.GetLastError(lErrCode, errMsg)
                MsgBox(errMsg)
            Else
                MsgBox("AR Invoice with serials number added.")
            End If
        End Sub
    Kind Regards, yatsea

  • How to find out who created an order in MD11?

    Hello everyone!
    I have a very simple question for transaction code MD11.
    How can I find out who created an order via that transaction?
    I´ve already found table PLAF with the following fields PSTMP & PUSER for time and user of last modification, but I need to be 100% sure of who created it and when.
    Thank you in advance.
    Regards.

    Hi,
    Only who did the last change can be available, but not the chage history.
    The last change can be seen in the Table: PLAF, the fileds, USER and Time stamp.
    Once the planned order got converted fully, then these details will not be available.
    Regards,
    sankaran

  • Problems in creating Invoice using BAPI

    Hello Friends,
    I am using a BAPI BAPI_BILLINGDOC_CREATEMULTIPLE to create invoice from a sales order, but i am not able to change the payer value.
    The payer is by default taken from Sales-Order, even if i change it in Payer value passed to BAPI.
    Please suggest me a solution.
    Sandeep.

    To answer your question I would need to know what stack trace comes back with.
    I also need to know the set up.. Is the applet running on you personal machine and what operating system are you using.
    Lee

  • Way to check who created PO and input the Goods Receipt?

    SAP Experts
    A question to you all.  Is there a way/report/number of tables to validate which user ID create or changed a Purchase Order and if they also entered the Goods Receipt?  We want to be able to check this on a monthly basis as a management check.
    Thanks
    Denise

    If you need report for the same then you can check ME2N - dynamic selection - drop down Purchasing document header - select Created by field and enter User ID(or list of User ids) for which you want to see POs created.
    MIGO Display - Doc Info can give you the User who created.
    If you want other way round then you can use tables as suggested above:
    EKKO for PO
    MKPF for MIGO
    RBKP for MIRO
    Thanks,
    Praveen.

  • Create Invoice with RV_INVOICE_CREATE

    hi buddies, I want to create invoice with reference to sales orders and delivery notes, Can I use FM:RV_INVOICE_CREATE for both?
    I have tested this FM, and seems no errors, but  no documents created when check the invoice table vbrk...
    thanks!

    Hi,
    you can use RV_INVOICE_CREATE, you can do commit only after checking the XVBFS internal table , and look for Success message then only you need to use COMMIT.
    Note: XVBFS is the log internal table, here you can see success and error log.
    check this internal table after execution of the FM for log details(success/error).
    Regards
    vijay

  • Address number of the person who created the sales order.

    Hello Experts,
       I am currently making a report in which it has to send the output of the script as a email attachment to the person who created the sales order. For this i am using a standard include RVADOPFO but here we need to pass the address number and person number gor getting the rest of the details. So where i can find the address of the person who created the sales order. (I am able to get the name throuhg VBDKA-ERNAM, but i need address number of that person)
    Thanks & Regards,
    Uday S.

    Hi  Uday,
    check
    ADRC-NAME1 = VBAP-ERNAM
    in ADRC you will get the address of the SO created person in the field ADDRNUMBER  that you have to pass in the ADR6-ADDRNUMBER   you will get the mail address in the field ADR6-SMTP_ADDR
    hope it helps you
    Thanks!
    Edited by: Prasanth on Mar 12, 2009 3:15 PM

  • Warning when trying to launch application over mapped drive "We can't verify who created this file. Are you sure you want to run this file?"

    We have 2 load balanced application servers that map drives with programs on them for users from a central server that are giving the warning "We can't verify who created this file. Are you sure you want to run this file?". Basically how it works
    is a user logs in to one or the other application servers (for example, 10.0.0.1 or 10.0.0.2) and runs a log on script that maps an L:\ drive to the users folder on the central storage server (10.0.0.100). When the user goes to launch the .exe from the L:\
    drive it presents that warning.
    I've looked around and have seen recommendations that you need to add the site to the local intranet zone for IE, but when I try to add L:\ it tells me that I have entered an invalid sequence. It appears that you can only put network shares in that location,
    which is not how we're mapping the drive.
    Has anyone run in to this before and knows how to resolve it?
    Thanks!

    Hi,
    A mapped drive letter is not supported so please try to input \\server or \\server\folder to see if it will help. 
    If you have any feedback on our support, please send to [email protected]

  • Problem while creating INVOIC idoc

    Dear All,
    I am facing a error messege while creating INVOIC(using MIRO transaction) idoc through EDI for a partner(vendor).
    In MIRO transaction after selecting one Item I clicked GoTo>Messege>Item
    Then I selected output type (Z output type) , Medium EDI,  Function VN ,Partner number (say 123) language EN.
    After that when I presse enter I am geting a messege "Partner 123 does not exist for partner function LF".
    All the configuration is done including partner profile for 123(partner type is LI).
    Please let me know what is the reason for this error. Do i need to make any changes in configuration?
    Regards
    Arindam

    Go to BD54 and maintain table view for ur partner type  
    hope this helps u..
    Thanks,
    Anil
    Edited by: anil sasidharan on Apr 17, 2009 11:42 AM

  • Sales invoice seting for create invoice in new finacial year

    Wat are the sales invoice seting for open in new finacial year , that mean before createing invoice in new FY
    Edited by: Gopi Krishna Gutti on Apr 9, 2009 2:48 PM
    Edited by: Gopi Krishna Gutti on Apr 9, 2009 2:55 PM

    From the SD side no change wrt fiscal year..... u just need to maintain the RV number range for the new FY......

  • How to create invoice but accounting document is cleared already?

    Hi,
    I cannot able to create invoice for the return order, for this return order accounting document has been cleared
    but the invoice is not created.
    Here i need to create the invoice.
    Advice me to solve this issue.
    Thanks
    Raghu

    for this return order accounting document has been cleared
    For return order, accounting document will not be generated.  Not sure what do you mean by this.
    thanks
    G. Lakshmipathi

  • Err: Budget Exceeded(when int.order changed in asset) while creating invoic

    Hi All,
    Hope you are all doing wonderfull !
    We have created a statistical order type and wanted to assign them to assets as we don't wanna settle thoze expenses,but needed only for statistical purpose.
    It was okay, when we have changed them in asset master. However, we could not change them in already existing PO's, so when we are trying to create Invoices for the PO's having old internal order number, it is shooting us an error " item xxx order xxxxxx budget exceeded?
    Please let me know how to proceed further to clear this problem.
    Thanks
    Sri

    Hi Sri,
    Can you please elaborate a bit on your scenario. Have you assigned an internal order in asset master record.
    The internal order in asset master record has different purpose. It is used when you want to post depreciation of that asset to internal order.
    Regards
    Chetan.

  • Can it be possible to create invoice without billing plan date?

    Hi Gurus,
    I have made settings for billing plan in contracts. But, client wants billing plan at contract level only for the sake of reporting. Client doesnt want invoice to be created according to these billing plan.
    Now, consider this scenario,
    I have created contract A with billing plan values in it.
    I have created sales order B with reference to contract A. There are no billing plan values in sales order B.
    There is no delivery and PGI.
    Now, when I try to create invoice with reference to sales order B, system doesnt allow me to save the same and says "No billing plan date found".
    Will it be possible to create invoice irrespective of the billing plan in contract?
    Please guide.

    Hi,
    Then in that case i would advise not to use billing plan for your contract document type.
    If you intend to create a sales order in reference to your contract document which has billing plan type attached, then in that case you need to maintain billing plan for your sales order document too.
    Reward if helpful.
    Regards
    Ravi

Maybe you are looking for

  • Can I reimport photos into iPhoto Library?

    Hi, I unticked the Copy photos into the iPhoto Library so the photos are residing in an external folder now. Can I change my mind and reimport them into the iPhoto library and will this affect the albums, photobooks, and slideshows I've already creat

  • XBOX 360 Hardwired to iMac Wifi'd to a Belkin router

    I don't want to fork up the 80 bucks to buy the wireless card for my 360 because the signal in my house is poor due to all of the steel in our walls i'm guessing...and I was wondering if there was a way to hardwire my 360 to the back of my iMac and u

  • Android bitmaps have slightly transparent bounding box?

    Hi all, We have just released a game to iOS and Android markets today, compiled with AIR3.2. On the Android version, on all devices, we notice that all bitmaps (with transparency) have a slight alpha (estimate maybe 5%) white bounding box - this does

  • Can I safely open an optical drive to retrieve a CD?

    I have a dead MBP with a cd stuck in the optical drive.  I saw a few video tutorials on ifixit.com that show how to open the drive to retrieve the cd and it looks really simple.  It's just a matter of taking out the drive then taking out the 4 screws

  • Call function after AutoSuggest select

    Hello, Looking at the Auto-suggest Overview I'm wondering if any clever folks out there can tell me the best way to call a function after a user has selected an item from the list (preferably by either mouse or keyboard). The function takes the selec