Generates a SAP Invoice IDOC based on xCBL Invoice document

Hi Experts,
I am looking for code to generate invoice through XCBL to SAP Invoice IDOC.
Could anyone post where I can get this code in stylesheet..
Please help me.

svraju wrote:
Thnks for ur reply..But is there any stylesheet mapping avaibale for this because we want to do in XSLT.
>
> Please help me..
dont think there are any standard mappings available for this.
you might want to get the logic from your functional contact/business and build the mapping.
I think it will ideally fit within the graphical mapping itself

Similar Messages

  • Standard IDocs for Inbound Sales Invoice

    Hi All,
    Beginner in the forum.
    I have a requirement to develop an IDoc interface for Sales Invoice. I am not sure about the Basic IDoc Type, Message Type and Inbound Function Module to be used.
    I can see Basic Types INVOIC02/01 and Message Type INVOIC. And the Function Modules IDOC_INPUT_INVOIC_FI and IDOC_INPUT_INVOIC_MM assigned in WE57. As my requirement is in SD perspective, I am little confused which one to use.
    Any pointer would be helpful.
    Thanks in Advance,
    Khanshi

    Sales invoices are generated referencing existing orders and deliveries through VF01 or VF04. Most if not all data for creating the invoice comes from the existing order/delivery documents (except may be freight costs etc which are know only during invoice time). So there is no standard IDoc (as most data for creating sales invoice is already there in SAP in the form of reference delivery/order) to create a Sales invoices. Sales invoices created through VF01/VF04 are outbound and can trigger INVOIC message type IDoc through IDOC_OUTPUT_INVOIC which is sent from SAP to the customer for billing purposes.
    The IDOC_INPUT_INVOIC_FI and IDOC_INPUT_INVOIC_MM are for creating inbound vendor FI invoice (like that created by FB60) and MM vendor invoice (like that created by MIRO) respectively.
    If you want to create a sales invoice through BAPI the below modules are available but I am sure there isn't a standard IDoc function to post a inbound INVOIC IDoc to customer/sales invoice. These BAPIs will of course require you to input the reference document (delivery or order) to create the invoice.
    BAPI_BILLINGDOC_CREATE
    BAPI_BILLINGDOC_CREATEFROMDATA
    BAPI_BILLINGDOC_CREATEMULTIPLE
    Best regards,
    Vishnu Tallapragada

  • Create an intercompany(IV) based on commercial invoice(F2)

    Dear Experts,
    Understand intercompany invoice can be created againest delivery but Is there any transaction to create intercompany invoice (IV) based on comercial invoice (F2).
    Actulay i want to consolidate muliple invoice(f2) to one IV.
    Regards
    Viswanath.

    Hello Viswanath,
    that functionality does not exist in SAP.
    I'm sorry for the negative answer.
    Best regards,
    Ivano.

  • How to relate IDOC generated in sap through ALE from legacy system

    Hi all,
    can any one tell me how can relate an idoc generated in SAP with the new idoc generated in a legacy system. I mean how could I identify, which idoc is generated for a particular idoc in legacy system and vice versa.
    Thanks,
    Nilanjana

    Thanks Suhas but when i am getting error message related to partnr profile when pressing this 'TRACE IDOC' button even with idoc in status 53.
    Edited by: nilanjana sinha on Nov 11, 2011 8:20 AM

  • Creating  idocs based on invoice number ocurrences

    Hi ,
    I want  to create idocs based on invoice numbers .
    Lets say i have a file coming in from sender system
    Invoice1 material customer value
    Invoice1 materail1 ..........
    imvoice2 material2.....
    invoice2 material1.....
    invoice1 material3..
    Invoice3. material4....
    So for Invoice1 only one Idoc should be created  similarly for invoice 2 which is ocurring twice in the file
    only 1 idoc  should be created
    Let me know how to achieve this ..  by UDF , or by split by value
    please help
    thnx
    Chirdip

    Hi,
      Change the IDOC occurance to 0-unbounded.Export the xsd change the occurance and import it to external definition.
    Map Like below:
    invoice number--removecontext--sort--splitbyvalue(valuechange)--IDOC
    other fields you need to map like below.
    invoice number--removecontext--sortbykey--SplibyValue(Each)---IDOC fields
    source field----removecontext------
    Regards,
    Prakasu.M

  • Inbound Invoice idoc segment feilds mapping to SAP feilds

    Hi,
    Could you please help me to find out the tables and feilds in SAP for the inbound invoice idoc type INVOIC01. I need to map the idoc segment fields with SAP fields and respective tables.
    Thanks in Advance
    Satish

    Hi Satish,
    That's quite a big case to get such mapping - why would you need it really? You can process Idoc with std process codes and you will see the std mapping then happening.
    You can also go through logic of processing modules:
    Function Module Name          Short text for function module
    IDOC_INPUT_INVOIC_FI           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MM           EDI: Invoice Receipt (INVOICE)
    IDOC_INPUT_INVOIC_MRM
    For sure you will get RBKP for header, RSEG for items, RBTX for taxes and some more, depending on what you get in the invoice and what are your booking and matching processes.
    Best Regards,
    Tomek

  • How to generate an OUTBOUND INVOICE IDOC from the ABAP Program?

    How to generate an OUTBOUND INVOICE IDOC from the ABAP Program? Any Function Module that can be used for this?

    Hi
    This is more of configuration
    (1) Create a Output type with Medium 6 ( Check with your functional consultant)
    (2) Maintain Partner Profiles using WE20 transaction
           Idoc type - INVOIC02
           Message type - INVOIC
           Process Code - SD09
    Regards
    Madhan D

  • Inbound processing of INVOIC IDOC without PO number and item check

    Hi All,
    I'm processing an Inbound INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order but wish to do process this based on the delivery note number rather than the PO number. The INVOIC IDOC will not contain a reference to the Purchase order and thus the need to process it based on the delivery note number which will be referenced in the Purchase order Goods receipt.
    However, when processing the Inbound INVOIC IDOC it is validating that the number in IDOC segment E1EDP02 with QUALF 001 is the purchase order number. In this scenario it won't be and therefore it errors. The delivery note number is in IDOC segment E1EDP02 with QUALF 016.
    Could someone please tell me if there is a standard way that we can have this Inbound INVOIC IDOC processing using only the delivery note?. If I manual process in the MIRO transaction I can process an Invoice based on the dleivery note in the Goods receipt so would expect I should be able to do so also with the IDOC processing.
    I have noticed that IDOC segment E1EDP19 with QUALF 003 is not being populated and therefore according to the SAP help the IDOC segment E1EDP19 with QUALF 002 holding the Vendor material number is checked. Could this have something to do with it not being able to process the Invoice using only the delivery note number reference?.
    Thanks in advance,
    Michael

    Hi Karen,
    According to Note 103051 - EDI: Multiple reference to same purchase order item.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active. Please check the note.
    Thank you,
    Shyam

  • Sap Xml Idoc Inbound in Sap

    Hi all
    If I have to receive an Edi message from an external system (for example an Invoice from a vendor), could I get in Sap an Idoc from a flat file formatted as a Sap Xml format?
    As Sap Xml format I mean the same structure of an xml file generated in Sap to the Xml file port.
    (The sap r/3 system is a Sap Enterprise version)
    Thanks in advance
    Bye
    Carlo
    Message was edited by: carlo pergola

    Hi
    Thanks for the answer.
    Regarding the FM IDX_XML_TO_IDOC, I thing that I can't use it directly because I have to write a program, I have to read the Xml file (that is located in a special directory of the operative system) and then use the FM putting xml data in the XML_DATA import parameter.
    It's correct?
    Bye
    Carlo

  • Restrict INVOIC Idoc to certain company code

    Hi,
    I am generating INVOIC Idocs in SAP system and distributing using ALE ...I have successfully configured the ALE settings and could trigger the IDOCs for all the Invoices in the system.
    Now my requirement is to restrict the generation of IDOC's only to a certain company code ..how can I achieve it ?
    I have used filters on BD64 but it is only restricting some segments to be created in the IDOC...my requirement is to not at all create the IDOC if it belongs to different company code as the Invoicing for such companies will be manual.
    I am using output type created through NACE to trigger the IDOC..can we restrict the output type on a compnay code..I maintained condition records at NACE but still all the company codes are getting triggered.
    Please let me know if you have encountered such issue earlier.
    Regards
    Kumar

    If nothing works (BD64, NACE) then there are exits available.
    for example in function module mentioned below there is a user exit "EXIT_SAPLVEDF_004". If you want to restrict IDOC "only to a certain company code" raise exception "data_not_relevant_for_sending" in the exit
    Function module      IDOC_OUTPUT_INVOIC
    Function module      EXIT_SAPLVEDF_004
           EXCEPTIONS
                  error_message_received        = 1
                  data_not_relevant_for_sending = 2.

  • Working on FI Invoice Idoc sending from R/3 to XI

    Hi All,
    I need to send Invoice Idoc's to XI system. Can anyone please help me out how to start from the beginning. If you guy's can give me step by step that would be wonderful...

    Hi Sony,
    Please go to transaction <b>NACE</b> to setup condition for output control and <b>VV32</b> Condition Records for Billing.
    NACE -> V3 -> Procedures -> V10000 (Billing Output) -> Control -> Condition Type RD00 (Invoice) and Requirement 62 (BillDoc:ReleasePost) -> Save.
    NACE -> V3 -> Output Types -> RD00 -> Processing Routines -> Medium A (Distribution ALE), Program RSNASTED, Form Routines ALE_PROCESSING -> Partner Function -> Medium EDI, Function BP and Name Bill-to party -> Save.
    VV32 -> Output Type RD00 -> Key Combination -> i.e Sales Organization/Billing Type -> Enter -> Select your Sales Org. and Billing Type -> Execute -> Enter Condition Records -> i.e Bill Type F2, Partner Function BP, Partner 100001, Medium A (ALE), Dispatch 1 (Send with periodically scheduled job) and Language EN -> Save.
    When the billing document saved, it will automatically create an entry in table NAST so that we can generate the IDoc via program RSEOUT00.
    Final step you can schedule job to run program <b>RSEOUT00</b> to create and send IDoc data to SAP XI.
    Hope this will help and let me know if you need further assistant.
    Regards,
    Ferry Lianto

  • How to create IDoc once Sales Order Invoice (Billing) has been created

    Hi,
    How to create IDoc once Sales Order Invoice (Billing) has been created   ?
    I.e Once you click on save button of Invoice , IDoc Should genrate Automatically.
    Thanks.

    Hi,
    We need to do custom configuration for this scenario such that an output type will be attached when ever an INVOICE is created.
    Refer to application V3 in NACE. The Output type should contain an entry with transmission medium: Distribution (ALE).
    for example check the customization done for an output type in NACE.
    Goto NACE ---> Select an application V3 ---> Click on processing routines ---> select the output type (Eg: RD00) ---> Click on Details button  (CNTRL + SHFT + F2) which gives the configuration info.
    For example we can generate the IDOC based on the settings in partner profiles for the customer (Sold To)
    With Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Jan 29, 2009 8:16 AM

  • Book: SAP Exchange Infrastructure for Developers; Outgoing INVOIC

    Hi everybody,
    is in book SAP Exchange Infrastructure for Developers  written how to send/generate a INVOIC-IDOC in R/3 or ERP?
    Or do they just describe the steps in XI?
    Thanks
    Regards
    Mario

    Hi,
    >>>AFAIK you do not describe how to generate a IDOC in R/3.
    come on... what about the whole chapter - "Outbound Invoice" ?
    the whole R3 config is shown and how to generate the invoice IDOC
    with screens - what else would you need?
    you didn't read it - shame on you:)
    Regards,
    Michal Krawczyk

  • Error 'No tax code found for difference' in Posting Vendor Invoice IDOC

    Hi All,
    I am getting error message 'No tax code found for difference' while posting Vendor Invoice IDOC into SAP. IDOC type is INVOIC02. There is no difference in PO price, Invoice price and even Standard price. then why this  error message? Other Vendor EDI settings are done ( OBCA, OBCD, OBCE etc). Is there any thing specific to be done in the config for this error?
    IDOC has PO  as reference document.
    I looked into several threads in SDN forum but could not find proper solution
    Can any ine help me with this issue?
    Thanks in advance
    Hari

    Hi
    You might be  missing the tax code for uploding through IDOC
    so you can use the t.code we02 and give the doc and find the error
    go to the WE19 to edit the tax  code
    and USE the t.code  BD87  to select the doc and process it
    thanks
    Madhu

  • When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code".

    Hi Experts,
    When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code". As checked, we have configured OBCD and OBCA for the vendor and we are passing the Tax Jurisdiction code in E1EDP04 SAL segment. Can anybody give us some idea to resolve this issue.
    Regards,
    Sameek

    Hi Sameek,
    Please refer the below link. Hope it helps.
    http://scn.sap.com/thread/1435286
    Regards,
    Chandan.

Maybe you are looking for

  • Automatic indexing not starting - UCM/WCC 11g

    I have an instance where new content is added but the Indexer does not recognize them and index them as part of the Automatic cycle. But if I press the START button for the Automatic Cycle it does and proceeds to index them. The check box on the CONF

  • Installing a lens profile for a Samyang 14mm

    Installing a lens profile for a Samyang 14mm f2.8 ED AS IF UMC on a Canon EOS 5D Mark II I downloaded http://www.photo-worx.de/index.php?option=com_content&task=view&id=49 I edited the .lcp file and set <stCamera:CameraRawProfile>True</stCamera:Camer

  • API out of memory error

    Hi all, We are experiencing problems when running a report many times(20). They are basically notices that we need to send to customers, we end up getting out of memory error. I did a search on this forum an it seems there is a solution, but only for

  • ClassCastException in IntegerConverter with MySQL

    I've followed the instructions to setup up MySQL. The test connection works fine. When I bind a simple database to a simple dropdown list and deploy, I get the following stacktrace: javax.faces.convert.ConverterException: java.lang.ClassCastException

  • Goods receipt reversal - material valuation

    Friends can any one explain the goods receipt reversal scenario and how it will affect the material valuation. I am going through SAP HELP but i did not understood, the concept behind it and how it affect the material valuation once  the goods receip