URGENT - create FI invoice thru idoc  IDOC_INPUT_INVOIC_FI

Hi all,
I got a problem while creating a FI invoice thru the IDOC IDOC_INPUT_INVOIC_FI .
In the created FI invoice i need to populate some fields in the profitability segment ( like customer number... ) .
My problem is I don't know where in the idoc i have to set the value .
Can somebody help me ?
Best regards.
Bertrand.

Hi,
You can enter partner information in segment E1EDKA1
of IDoc type INVOIC02. 
Not sure how much of this you already know, but I figured it doesn't hurt to include the following example:
Run transaction WE60, enter your IDoc type, and execute (F8).  This will give you a list of all the segments and the segment fields.  Expand the segment E1EDKA1 and then expand the sement fields.  The first field is PARVW (you will see on the screen that there are various allowed values listed for this field, e.g. 'AG' = Sold-to party).  The next field is PARTN in which you can enter the partner number (e.g. the Sold-to number).
You can use the Find function (after expanding all the branches) to look for any other type of fields you need to populate.  Once you find the "business name" of a certain field within the segment documentation tree list, you will be able to see which IDoc segment the field belongs to.  This is the place in the IDoc that you will set the value. 
If INVOIC02 is not the IDoc type you are using, this same search technique will work for any IDoc type.
I hope this helps you out.
Best Regards,
James Gaddis

Similar Messages

  • Create outbound delivery thru Idoc

    I am working on a sales return scenario in SAP as below :--
    01. Creating Return sales Order in SAP thru inbound  Idoc ( ORDERS01)
    02. Triggering outbound Idoc ( ORDRSP/ORDERS05) from return sales order to our return plant.
    03. Customer will send  returned goods to our return plant. Plant will send us an Idoc to create delivery in SAP.
    04. Once delivery is created thru Idoc , our batch job will do PGR.
    05. Billing batch job will generate credit memo for return.
    I am looking for advise on following points :--
    01. Can we create outbound delivery thru DESADV Idoc ?We are also planning to update delivery Item text thru this Idoc.
    02. SAP standard provides ( SHP_OBDLV_CREATE_SLS) this Idoc to create delivery with reference to Sales Order but not able to update delivery text thru this ?
    03.Any other way-out to create delivery and update delivery text thru inbound Idoc?
    Thanks in advance!!
    Best Regards/Rajesh

    Create your own and assign as processing the BAPI or a wrapper for it.
    Enjoy

  • Inbound Idoc to create SD invoice thru VF01

    Hello All,
    I was looking for an Idoc that allow me to create an SD invoice (and automatically then an FI posting) based on an SD order (as VF01).
    I found some consultants talking about INVOIC, others about ACC_BILLING.
    But after somes tests, none of the above works as expected. (-may be I am using a worng process code...)
    Is there an Inbound  Idoc where I can mention the same data as I will do in  VF01 to generate an SD Invoice ?
    Thank you All

    There is no inbound IDoc, to my knowledge, and it'd be a very unusual scenario that would require invoicing through an IDoc interface. As soon as all the preceding transactions have been completed, not sure what sense it would make to wait for some kind of interface to give OK for the invoice creation...
    Anyways, there is an option to run billing through a background job, which could be scheduled at regular intervals or based on an event. It'd be a very short program to get a document # and to trigger an event for the job or just run SDBILLDL directly, whichever is preferable.

  • Park vendor invoice thru' IDOC

    Hello All,
    The requirement is our vendor sends EDI invoices and they get parked in SAP as IDOCs. IDOC gets posted if GRN exist for a PO.
    In purchase order it is GR based IV. If vendor parks invoice and there is no GRN for purchase order then IDOC fails and it goes in status 51 (Error).
    Our requirement is, IDOC should get posted even if there is no GRN for a purchase order and client do not want to remove GR based IV tick from PO. After through verification of the parked invoice it gets posted in the system.
    We have done the config change in MM>>LIV>>EDI>Enter program parameters, we have maintained value "1" for field "Processing". Inspite of this change system does not process inbound ICOCs and they go in error (51) status.
    Please provide solution for this. This is possible to achieve by configuration. Not able to make out where is the problem.
    Van you all please suggest a solution.
    Thanks & regards.
    Sanjay

    turn you process. instead of directly posting the idocs and wanting the failed ones go into the parked status, park all first and process then the parked invoices.
    check OSS Note 501524 - EDI: Parking incoming invoices by default

  • Create vendor invoice via IDOC INVOIC

    Hello,
    We are using IDOC with message type INVOIC for creation of vendor incoming invoices in Logistic Invoice Verification. Can You answer me, is it possible to save (park) correct documents (without price/quantity differences), which later could be posted manually?
    Thank You in advance!
    Natalija

    Hi Natalija,
    ok this need is covered.
    You can post the SD document and park the FI document (park).
    Therefore you have to customize the billing-type.
    Under: SPRO-> Sales and Dist. -> Billing Documents -> Define Billing Documents.
    ==> you will found on top the checkbox "Posting Block".
    To release them you can use VFX3.
    I hope it helps.
    BR,
    Burhan

  • Error while creating sales order thru IDoc

    Hi,
      While using FM IDOC_WRITE_AND_START_INBOUND, I am getting an error 'Customer not found with DUNS number from IDoc' and the application document is nor posted. I am passing valid customers in the ship to party and sold to party segments but still getting this error.
      Please advice.
    Regards,
    Rajesh

    Hi All,
    Can anybody give me some resolution for the above posted issue!
    Thanks in advance.
    Thanks,
    Deep.

  • How create an invoice from delivery using an idoc

    Hi expert,
    I'll like recive an help to know how implement the following solution: we would create an invoice from delivery sent into the idoc structure.
    In detail the process that we would implement is:
    To use an output type for outbound delivery and to assign a program to it in order to create an idoc when the output type is processed; when the idoc is created the program has to call the transaction VF01 to create the invoice from the idoc.
    Which type of idoc do we have to use?
    How the VF01 call transaction should be excuted?
    Many thanks in advance
    Regards
    Roberta

    Check with following standard basic IDoc types:
    INVOIC01- Invoice/Billing document
    INVOIC02 - Invoice/Billing document
    INV_ID01 - Invoice
    SISINV01- SIS - billing document
    And refer following link for understanding: [iDoc|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=HOME&title=StepbyStepprocedureforcreationof+IDOC&decorator=printable]
    I hope this can assist you.
    Thanks & Regards
    JP

  • How ca we create an INVOICE using a BAPI and triggring the same IDoc

    Hi Gurus,
    I have a senario where in I need to create an Invoice from a remote using BAPI and then the INVOICE IDOC has to be triggered for external purpose.
    How can be this achived??
    Help me as early as possible.
    Thanks in Advance...
    Suma

    Hi,
    Are you looking for BAPI <b>BAPI_ACC_INVOICE_RECEIPT_POST</b>?
    Hope this helps (please reward me if it does).
    Regards, Joerg

  • Creating an Invoice and generating and IDoc

    Hi All
    Can anyone let me know what are the prerequisites for creating an invoice, the transaction for creating an invoice and steps to create an Invoice using the transaction. I also want to know how to generate an Idoc from the Invoice related transaction screen.
    thanks in advance

    I mentioned very briefly about how to create outbound INVOIC. "Reward point if useful".
    Complete configuration information.
    1) In the Command field, enter transaction V/54 and choose Enter (or in
    the IMG, choose Sales and Distribution>Basic Functions>Output
    Control>Output Determination>Output Determination Using the
    Condition Technique-->Maintain Output Determination for Billing
    Documents-->Maintain access sequences).
    2) On the Change View “Access Sequence (Output Billing)”.
    3) Choose the desired access sequence (for example, YPCC, Sales
    organization).
    --> Choose Accesses.
    4) On the Change View “Accesses (Output Billing)”.
      a)Add the Sales Organization/Customer Number access above the
        existing Sales Org. access.
      b)In the Requirement column, enter a requirement.
      c) Select the Exclusive checkbox for the first access.
      d) Choose Save.
    5) EDI Specific configuration.
    Configuring for EDI involves the following two steps:
    -->Condition record (output determination)
    -->Outbound partner profile
    Condition record(Output determination)
    This section outlines the configuration steps required for each
    customer you wish to send an invoice via EDI.
    Creating a condition record for the specific customer sets up output
    determination to generate an EDI message whenever an invoice is
    created for that customer.
    1)-->To access the Create Output – Condition Records screen, in the Command
    field, enter transaction VV31 and choose Enter (or choose Logistics -->
    Sales and distribution --> Master data --> Output --> Billing document -->
    Create).
    2)--> On the Create Output – Condition Records: Billing screen:
         a) Enter RD00 in Output type.
         b)Choose Key combination.
    3) On the Key Combination popup window:
         a) Select Sales Organization/Customer Number.
         b) Choose Enter.
    4) On the Create Condition Records (Invoice): Fast Entry screen:
         a)Enter the customer number in Customer.
         b)Enter RE in PartF.
         c)Enter 6 in Medium.
         d)Enter 4 in Time.
         e)Enter EN in Language.
         f)Choose Save.
    5)Maintain partner profile.
    The setup of a partner profile for each specific EDI customer allows
    you to define the EDI-specific information the system needs when
    generating the outbound IDocs.
    Go to transaction WE20.
    a)Select the customer (partner) from the list.
    b)Choose outbound parameter.
    c) MG On the New Entries: Details of Added Entries screen:
    6)Enter RE in Partn.funct.
         a) Enter INVOIC in Message type.
         b)Enter the port name in Receiver port.
         c) Under Output mode, select Transfer IDoc immed.
         d) Enter INVOIC02 in Basic type.
         e)Enter US in Typ.
         f) Enter EN in Lang.
         h) Enter the user ID in ID.
    On the Change View “Partner profiles: message Control”: Overview
    screen, choose New entries.
    -->On the New Entries: Details of Added Entries screen:
         a)Enter V3 in Application.
         b) Enter RD00 in Message type.
         c) Enter SD09 in Process code.
         d)Choose Save.
    -->Choose the EDI standard tab.
    Thanks,
    Narayan

  • Parking Invoices Via IDOC

    Hi,
    I am using an inbound Purchase Invoices INVOICE02.
    Is it possible to park an invoice via idoc rather than creating it in MIR0.
    I do not want my IDOC to post the invoice and rather need to just park the invoice.
    Regards
    Krish

    Hi,
    There should be some reason for giving this FM inside the main FM
    This FM MRM_INVOICE_PARK will park the invoice while creating the invoice.
    The inbound function module uses IDOC_INPUT_INVOIC_MRM.
    I wanted to know if there is any indicator in the incoming idoc which will rout thru the MRM_INVOICE_PARK.
    Regards
    KRish

  • 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

  • Error in BAPI while creating incoming invoice

    Hi Experts,
    Im creating incoming invoice by using the BAPI,  'BAPI_INCOMINGINVOICE_CREATE'.
    when im going to posting my invoice it is showing the error like 'EDI: Error in customizing for differential invoicing'.it is a urgent requirement and need to solve this ASAP.Pls help me out with this error
    Im passing following parameters to BAPI:
    wa_header-invoice_ind = 'X'.
    wa_header-doc_date   =  sy-datum.   "Enter the document date
    wa_header-pstng_date = sy-datum .   "Enter the posting date
    * wa_header-ref_doc_no = '5000008590'.
    wa_header-comp_code = '1000'.
    *wa_header-gross_amount = '50.11'.  "Enter the gross amount(aft. tax) for the invoice
    *wa_header-calc_tax_ind = 'X'.
      wa_header-currency = 'INR'.
      wa_header-INV_TRAN = 'X'.
      wa_header-SIMULATION = 'X'.
    wa_item-invoice_doc_item = '000001'.
    wa_item-po_number = '3700000557'.    "Enter the PO number
    wa_item-po_item = '00010'.           "Enter the PO item number
    * wa_item-ref_doc = '5000008590'.      "Enter the GR number
    * wa_item-ref_doc_year = '2014'.       "Enter the GR fiscal year
    * wa_item-ref_doc_it = '0001'.         "Enter the GR item number
    * wa_item-tax_code = 'V0'.             "Enter the tax code applicable
    wa_item-item_amount = '50.60'.     "Enter the item amount
    * wa_item-quantity = '2380'.           "Enter the invoice quantity
    * wa_item-po_unit = 'EA'.              "Enter the UoM
    APPEND wa_item TO it_item.
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
       EXPORTING
         headerdata                = wa_header
    * *   ADDRESSDATA               =
      IMPORTING
        invoicedocnumber          = g_invno
        fiscalyear                = g_fyear
       TABLES
         itemdata                  = it_item
    * *   ACCOUNTINGDATA            =
    * *   GLACCOUNTDATA             =
    * *   MATERIALDATA              =
    * *   TAXDATA                   =
    * *   WITHTAXDATA               =
    * *   VENDORITEMSPLITDATA       =
         return                    = it_ret
    * *   EXTENSIONIN               =
    IF g_invno IS NOT INITIAL.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT          = 'X'
    * *   IMPORTING
    * *     RETURN        =

    Thanks every one for your valuable solutions.
    Issue is Solved by unchecking the flag.
    wa_header-INV_TRAN = 'X'.
    Thanks & Regards,
    Ramjee.

  • How to create an Invoice using a BAPI call from XI and trigger the sameIdoc

    Hi XI Gurus,
    I have a senario where in I need to create an Invoice from a XI using BAPI  and then I need to auto tigger the same INVOICE IDOC whcih has been created and this has to converted into EDI using Seebuger Adapter.
    1. How can be this achived??
    2. What is the BAPI that I need to use to create Invoive from XI
    3. What are all the configurations that I need to do to atuo tiggert an INVOICE Idoc when it is created.
    Please Help......
    Thanks in Advance...
    Suma

    Hi,
    Are you looking for BAPI <b>BAPI_ACC_INVOICE_RECEIPT_POST</b>?
    Hope this helps (please reward me if it does).
    Regards, Joerg

  • Cutom T-Code for seding customer details thru IDoc Debmas

    Hi Experts,
    I have a requirment where in.. I need to send customer details thru IDoc from a custom screen which has cutomer text box and a submit button. After entering cutomer and clicking on submit debmas06 Idoc has to be triggered.
    I am not an ABAP expert... please help me with process on devloping the above reqirment.
    This is a critical requirment please help ASAP.
    Thanks,
    Suma

    Hi,
    u have to use standalone program..iam giving one sample code..aong with u have define the RFC (SM59,WE21(Create port),WE20(create partner profile,BD64 distribute model view)...u have to do..
    when u press on submit button,,,
    *& Report ZZ_Program_To_Create_Idoc
    report zz_program_to_create_idoc .
    tables: ekko,ekpo.
    selection-screen skip 3.
    selection-screen begin of block b1 with frame title titl.
    selection-screen skip.
    select-options s_ebeln for ekko-ebeln.
    selection-screen skip.
    selection-screen end of block b1.
    data: header_segment_name like edidd-segnam value 'Z1EKKO',
    item_segment_name like edidd-segnam value 'Z1EKPO',
    idoc_name like edidc-idoctp value 'Z19838IDOC1'.
    data: header_segment_data like z1ekko,
    item_segment_data like z1ekpo.
    data: control_record like edidc.
    data: messagetyp like edmsg-msgtyp value 'ZZ9838MESG1'.
    data: i_communication like edidc occurs 0 with header line,
    i_data like edidd occurs 0 with header line.
    data: begin of i_ekko occurs 0,
    ebeln like ekko-ebeln,
    aedat like ekko-aedat,
    bukrs like ekko-bukrs,
    bsart like ekko-bsart,
    lifnr like ekko-lifnr,
    end of i_ekko.
    data: begin of i_ekpo occurs 0,
    ebelp like ekpo-ebelp,
    matnr like ekpo-matnr,
    menge like ekpo-menge,
    meins like ekpo-meins,
    netpr like ekpo-netpr,
    end of i_ekpo.
    start-of-selection.
    select ebeln aedat bukrs bsart lifnr from ekko
    into table i_ekko where ebeln in s_ebeln.
    select ebelp
    matnr
    menge
    meins
    netpr
    from ekpo
    into table i_ekpo
    where ebeln in s_ebeln.
    control_record-mestyp = messagetyp.
    control_record-rcvprt = 'LS'.
    control_record-idoctp = idoc_name.
    control_record-rcvprn = '0MART800'.
    loop at i_ekko.
    header_segment_data-ebeln = i_ekko-ebeln.
    header_segment_data-aedat = i_ekko-aedat.
    header_segment_data-bukrs = i_ekko-bukrs.
    header_segment_data-bsart = i_ekko-bsart.
    header_segment_data-lifnr = i_ekko-lifnr.
    i_data-segnam = header_segment_name.
    i_data-sdata = header_segment_data.
    append i_data.
    select ebelp
    matnr
    menge
    meins
    netpr
    from ekpo
    into table i_ekpo
    where ebeln = i_ekko-ebeln.
    loop at i_ekpo.
    item_segment_data-ebelp = i_ekpo-ebelp.
    item_segment_data-matnr = i_ekpo-matnr.
    item_segment_data-menge = i_ekpo-menge.
    item_segment_data-meins = i_ekpo-meins.
    item_segment_data-netpr = i_ekpo-netpr.
    i_data-segnam = item_segment_name.
    i_data-sdata = item_segment_data.
    append i_data.
    endloop.
    clear i_ekpo.
    refresh i_ekpo.
    endloop.
    call function 'MASTER_IDOC_DISTRIBUTE'
    exporting
    master_idoc_control = control_record
    OBJ_TYPE = ''
    CHNUM = ''
    tables
    communication_idoc_control = i_communication
    master_idoc_data = i_data
    exceptions
    error_in_idoc_control = 1
    error_writing_idoc_status = 2
    error_in_idoc_data = 3
    sending_logical_system_unknown = 4
    others = 5
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    else.
    loop at i_communication.
    write: 'IDOC GENERATED', i_communication-docnum.
    endloop.
    commit work.
    endif.
    initialization.
    titl = 'ENTER THE PURCHASE ORDER NUMBER'.
    Regards,
    Nagaraj

  • Sales order to be created from Invoice from other system.

    Hi All,
    We have a unusual requirement and would like to take your guidance in this.
    The requirement is as follows:-
    Non SAPsystem team will extract the Invoice information details from their system and put a Excel file on File system
    SAP team will fetch the data from file system
    Conversion from Excel to Idoc format will be a part of SAP system ( IDOC is one indication we can use BAPI etc also )
    SAP system will post the converted data and create a sales order in SAP database
    In short they want to send invoice related data in excel sheet and want us to :-
    Create an Invoice (Invoice print)
    Consume a material u2013 (consume stock including shipping although not actually shipping out)
    Booking the cost on Expenses and Labor u2013 (cost posting expenses and time)
    IMP - Itu2019s not a real time integration
    Now we want guidance as to how and what way should we accomodate this in sap. Should we use idoc or BAPI to create sales order or should we use service orders, etc.
    Plz guide. If you want more info let us know.
    Regards,
    Satish.

    Hi,
    I am not sure if this can be done in configuration..
    But you can the print program of the invoice to get the text and print them...
    Thanks,
    Naren

Maybe you are looking for

  • 30GB of space disappears on External Drive after failed DMG copy via USB

    I have a 298.1 GB external Western Digital hard drive connected to my iMac by a USB 2.0 cable. It is formatted in NTFS-3G so I can use it with both my PC and Mac. Yesterday in Disk Utility I created a 50GB 256-bit encrypted DMG and told Disk Utility

  • "There was a problem connecting to the server" in iTunes after migrating to new mac

    I have a problem that is driving me crazy with my brand new iMac. I see many other people posting similar issues, but none of the other solutions seem to work for me. I had a MacPro and bought a new iMac, on which I used Migration Assistant to set up

  • C++ source code of visa32.lib

    Have anybody c++ source code for visa32.lin functions. Using VC++ and ni488 functions but not use VISA function how to use virtual GPIB to communicate tek Scope via LAN.

  • Characters unrecognized

    How do I prevent an apostrophe or double quote copied from Word and pasted into a textbox on my webform from being converted to upside down question marks in my database? I set the content type of the page with <meta http-equiv="content-type" content

  • BA & cost center in asset posting

    HI all, i have 2 questions:- 1)  1 asset master - AA001, having BA as BA001 & CCTR as C001. then request to change as BA001 & C002. BUT C002 belongs to BA002. can we have this kind of setting other than changing the assignment of BA at cost center ma