Outbound EDI Invoice IDOC

Hi ,
I have a requirement for Outbound EDI invoice where  I need to validate something at the control record level and if it fails i need to Error out the IDOC say status 51 or any status in RED with my custom status message.
I tried raising the exception in my user exit and it did'nt create the IDOC itself but i need the IDOC created with error status. Are there any other User exits in RSNAST00 or even in RSEOUT00 before  i write it to the file.? Basic idea is not to send the IDOC to sub system and reprocess it after correction.
Any ideas on how to do this is really appreciated!!
Thanks,
Naveed.
Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:22 PM

Hi ..
Am using the process code SD09..
Veni, The user exits you mentioned, there is no error table to fill with..all i was able to do is raise an exception which is not creating the IDOC itself..
There is a FM 'IDOC_STATUS_WRITE_TO_DATABASE' that i want to try .it needs the IDOC number but i dont have the IDOC no in any of the user exits in FM IDOC_OUTPUT_INVOIC...i need some user exit beyond that FM..
Any ideas??

Similar Messages

  • Outbound EDI Invoice

    Hi Guru,
    I have requirement for devloping interface for outbound invoice that is IDOC to be passed on to the middleware(here it is <b>Biztalk(EDI subsystem)</b>).
    Port configuration is given,
    RFC is done,
    1>Does I need to ask for partner profile bcoz in this case IDOC has to go to   Biztalk(EDI subsystem) then Biztalk will send this to the partner.
    2> Data mapping sheat is given by the onsite team.
    3> <u>Invoice creation and IDOC generation:</u>
                                                Whenever invoice is created by  VF01 then IDOC is created and sent to the Biztalk(EDI Subsystem).
    The invoice IDOC will contain only those fields which are given in the Data mapping sheet and all the fields are available in the INVOIC01 Idoc type.<b>so how to get the IDOC that will contain only those required fields?</b>
    And what are the other steps that are required to achieve the Outbound INOICE scenario? Does i need to ask for output types and message control configuration but there is no condition is given in FS for IDOC generation.
    Please help me out.Your input is highly valuable to me so please send me step by step procedure.
    Thnks
    Prince

    Hi ..
    Am using the process code SD09..
    Veni, The user exits you mentioned, there is no error table to fill with..all i was able to do is raise an exception which is not creating the IDOC itself..
    There is a FM 'IDOC_STATUS_WRITE_TO_DATABASE' that i want to try .it needs the IDOC number but i dont have the IDOC no in any of the user exits in FM IDOC_OUTPUT_INVOIC...i need some user exit beyond that FM..
    Any ideas??

  • EDI invoice idoc error "Enter a tax code in item 000001"

    Hello,
    I am trying ot post the EDI  invoice but the idoc getting failed by giving error "Enter a tax code in item 000001".
    Even i entered the tax code in my idoc, system not taking and also as i have maintained the table OBCD & OBCE but system not consider it.
    If i maintained the tax code in my PO then it is posting the invoice with PO tax code sucessfully.
    Please let me know, Is their any other setting needs tobe done for idoc to post the invoice without maintained TAX CODE  in PO ?
    Thanks in advance
    Regards,
    Satish

    No option available .you have to maintain tax code in PO.
    Try your luck with following option Still not sure as it works only if you call transaction MIRO
    OLMR -- incoming invoice -- maintain default value for tax codes

  • EDI Invoice with multiple banks

    Hi all,
           I have outbound EDI invoice 810 where there are several banks listed in the Idoc file.
    The bank info is listed in segment E1EDK28 in Idoc basic type  INVOIC02.
    I have 6 of the E1EDK28 segments and the first segment is not the correct bank for the payment.
    How would i get it to list the third  E1EDK28 segment as the first segment ?
    We send the invoice to our customers via EDI.
      Thanks
    Joyce
    Edited by: Joyce Chan on Aug 2, 2011 3:14 PM
    Edited by: Joyce Chan on Aug 2, 2011 3:15 PM

    Hi,
    In the delivery header table LIKP, the field EXNUM is the key between the foreign trade tables EIKP and EIPO, as the foreign trade
    information are not stored on the delivery itself.
    During the delivery creation, system checks the country of the shipping plant and the country of the ship-to party. If these two are
    not the same, the foreign trade routine kicks-in and an EXNUM is assigned.
    During the invoice creation, system checks your "Det. export segment" (EXPIM) setting in Copy Control.
    1. If it is blank, the system refers to the same EXNUM for the FT data in the invoice (similar scenario as the delivery, however, the
       EXNUM from LIKP is moved to VBRK but it points to the same entries).
    2. If the value 'A' is used, then the contents of fields to which EXNUM points are copied but given a new EXNUM stored in VBRK   (this is used to avoid an invoice split when combining deliveries).
    3. If the value 'B' is used, the the system knows that EXNUM from the source document is to be ignored and the systems runs the FT routine to read the values anew from customizing. This is the value which is ordinarily used for a order-related billing.
    In the standard system when the copy control is set to " " this usually causes an invoice split as EXNUM is a split criteria so Instead of one invoice created, seperate invoice would be created for each delivery based on the deliveries EXNUM.
    Your setting should be either "A" or "B" in order to avoid the split
    Please check with your consulants and decide which settings best suit your business enviornment.
    Can you please review your copy control settings in VTFL:
    VTFL Delivery <-> Invoice
    Alternatively, create your own data transfer routine where you can clear the value in the copy to avoid the invoice split.
    Unless you do either of these actions the invoices will always split because the exnum is determined for each delivery as they are created.
    Thanks,
    Alex

  • EDI INVOICE Function module IDOC_OUTPUT_INVOIC

    Hi,
      Please help me with a solution for the Specification.
    Requirements:
    1.     EDI Invoice requires populating bottle UPC number not case UPC in IDOC and also populates customer PO number when invoice billing type is a credit.  These changes need to be reflected on EDI invoice (Idoc INVOIC02).
    Investigation:
    Requirement 1. EDI invoices are populating segment E1EDP19 qualifier 003 based on the unit of measure in the line item.  If shipment unit is CSE then it populates CSE upc, if shipment unit is EA then it populates Bottle UPC. 
    a.     It was found that the UPC populated on the EDI invoice was being read from material master – Additional data tab.  (Field SMEINH-EAN11).  For the EDI invoice, the customers expect the bottle UPC on this column.
    Requirement 2.  Need to always populate Segment E1EDK02 Qualifier 001 (customer PO) on the INVOIC02 idoc.  Standard SAP populates this information only when the billing type is F2 (regular invoice) and if the customer PO was entered in the Sales Order.
                                a) Premier requires this information to be populated in the idoc if the billing type is G2, RE, L2 also.
    Solution:
    Requirement 1.
           IDOC_OUTPUT_INVOIC function module needs to be changed to always populate the UPC number for the bottle UPC in segment E1EDP19 qualifier 003, field IDTNR.  This number is found on the material master – Basic data 1 view.  Field name is MARA-EAN11.   Please see screenshot of where in the material master to find the bottle UPC. 
         a. This change applies to all billing types (F2, G2, L2, RE etc).
           Requirement 2.
                 Change IDOC_OUTPUT_INVOIC function module to always populate customer PO information in Segment E1EDK02 qualifier 001, field BELNR.
    If billing type is equal to G2, L2, RE and VBRK-XBLNR not equal blanks then make BELNR = VBRK-XBLNR.
    Segment:  E1EDK02
                                  Field:  QUAL = 001
                                  Field:  BELNR = VBRK-XBLNR
    Waiting for your reply,
    Please,Its urgent.
    Thanks,
    Chandra

    Hi,
    Neither EXIT_SAPLV56K_001 or EXIT_SAPLV56K_002 will be called when delivery is saved.
    You can use this user exits USEREXIT_SAVE_DOCUMENT in program MV50AFZ1 for saving delivery document.
    Also check this include progams which contains all user exits available for delivery processes.
    MV50AFZZ
    MV50AFZ1
    MV50AFZ2
    MV50AFZ3
    MV50AFZK
    MV50AFZL
    MV50AFZP
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • EDI Invoice Outbound

    I've done incoming EDI Sales orders, but now am going to build an out going EDI invoice to be sent to our customer. Can you please confirm my task below and answer the few questions.
    Here's what I will do.
    1. I need to create a message determination (output type) for that particular document type.
    2. Control the customer through UnderWEDI -> Administration -> WE20 (Partner Profile) Shall I choose LS or KU as partner profile? I'll also add partner detail together with inbound and outbound relationships.
    3. I'll create iDoc extension type - WE30
    4. Create segment - WE31
    5. Assign function module to logical message  and IDoc type - WE57 (what the standard function module I can use as a reference to extract invoice details?)
    Any further links or step by step will be appreciated too! Thanks guys.

    Hi Gautam,
    We are setting up outbound invoice functionality from SAP to EDI.
    We are having about 900 customers as Bill-to-party.
    Do I need to set up partner profiles for all these customer under 'Partner type KU'?
    If I am using INVOIC under logical system profile where i can use the same LS for other IDOC messtype like orders, ordrsp,
    when I created invoice and attach the output it's not able to determine correct partner profile since we can't give partner role as 'BP' to logical system.
    if your message below you mentioned...
    "(a) Use the same partner profile which was setup for inbound order (i.e. KU - if you want to go out this way. LS can also be used but depends on the setup you're intending to do. I wouldn't recommend this because I have seen its share of repercussions going into 5 years of support). "
    What does above means, in my case what is the best solution to handle 900 Bill-to-party customers for sending invoice.
    Thanks a lot.

  • Use IBAN number in outbound INVOIC IDOC

    Hi,
    I'm looking for a field to store the IBAN number in outbound INVOIC IDOC's. Apparently there is no separate field available for this. I would like to avoid extending the current IDOC structure and I would have expected the IBAN number to be part of the SAP standard outbound INVOIC idoc.
    Has anyone encountered the same requirement? I have looked at the standard INVOIC01 and INVOIC02 structure.
    Thanks
    Walter

    Hi Ken,
    Thanks for the response. I'm indeed looking at the international bank account number.
    I was hoping that SAP somewhere does have a solution to send the IBAN numbers and not that we have to overwrite the ACNUM field or create our own segment. I want to pass the regular bank account and the IBAN number in our IDOC so that we do not need to decide within SAP if a customer requires the IBAN number or any other number. We want to make that decision in our EDI mapping, not in SAP. I'm surprised SAP has not foreseen anything for this as the IBAN is widely used within Europe.
    We already have a problem that we have more than 20 house bank with more than 20 bank accounts, so the SAP limitation of 20 K28 segments is already creating a problem for us.
    I guess we will need to setup our own coding in the user exit. Thanks for your response anyway.
    Regards
    Walter

  • EDI Vendor outbound payment advice, idoc do not contain RE in the header

    Hi,
        I am facing a critical issue on EDI vendor outbound payment advice idoc. Actually the IDOCs which i created do not contain the “RE” in the header record. This mandatory qualifier is located just before the SAP ID. The IDOCs which i created got error out and not translate.
    Example -    LIRE0001000922
    Can anybody tell me that how can we get this RE mentioned in the above idoc no. I want this RE to be come when the idoc is created.
    Point will be awarded.

    Hi Rajesh,
    If everything is maintianed, i think the problem is with the file that your are uploading.  Please check the file.
    And also check whether the data record is maintained.  For Field Name "PARTNER_Q" youa have to assign the :QualPart" RE (biil-to-party) in the data record.
    Check these things and i hope it solves your problem.
    And you can contact me at [email protected]
    Thanks
    ~Rajesh

  • Outbound EDI IDOCs for G/L document posting

    Hi All,
    I'm trying to generate outbound IDOCs from G/L documents (FB70, FB75 transactions).
    Of course INVOIC IDOC type does not work for this.
    Does anybody know which is the IDOC type for G/L documents?
    Really appreciated any help.
    Thanks and regards!
    Beatriz Balones
    SD and MM Senior Consultant

    Hi
    it means you can use this document type only if you post the document by B.I (It's special usage).
    This characterist is setted in customizing (trx OBA7).
    You should choose another document type or change that configuration if you think it's wrong.
    In my system the flag "Batch Input Only" for SA is space.
    Max
    Message was edited by: max bianchi
    Message was edited by: max bianchi

  • IDoc segment to capture the freight cost (XML/EDI invoice)

    Folks,
    How to capture the freight cost on an EDI incoming invoice. Any idea which IDoc segment can be useful in this regard.
    Any thoughts/suggestions/comments would be deelply appreciated.

    Hope you have not read the Invoice Idoc type whcih is used for EDI invoice.
    The Invoice idoc type does not support the functionality of Planned delivery costs ( Freight )
    Please go through the link
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/f50abcea3b11d194dc0000e83dd751/content.htm

  • IDOC Invoices and EDI Invoices

    Hi Gurus,
    Please help me in understanding the flow of IDOC Invoices and EDI Invoices.
    What is the purpose of using IDOC and EDI? How it works?
    Please revert asap.
    Thank You

    HI Verma,
    You can post the invoices in SAP system through IDOCs.
    Mostly, this activity is performed/triggered, when the invoice data is with third party.
    Third party will have the invoice data base and sends a file to SAP.
    SAP XI will map/convert the file(sent by third party) to fields in SAP and posting of invoice happens.
    Please refer the below links for EDI Invoices
    EDI invoices
    Creating EDI Invoices
    Hope this will help you in understanding IDOC invoices and EDI Invoices.
    Regards,
    Praisty
    Edited by: Praisty on Dec 22, 2009 1:20 PM

  • 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

  • EDI invoice failed for Service- multiple tax code at service item level

    Hi Guys,
    Please understand below scenarios, it is very critical to our client.
    purchase order has 3 parent
    line item which having the 3 services with tax code (P1-P1-P1 and P2-P2-P2 and (P2-P1-C1)
    (P1=10%, P2=10% and C1=10%)
    PO Outbound Idoc -
    Similar tax codes(P1-P1-p1 and P2-P2-P2) - Carries total tax amount and
    tax rate at parent level also it carries indvidual service line item
    tax amount and tax rate at service item level
    Mulitple tax codes(P2-P1-C1)- Carries only total tax amount at parent
    level and no tax rate at parent level. It carries indvidual service
    line item tax amount and tax rate at service item level
    SES Outbound Idoc -
    Similar tax codes(P1-P1-p1 and P2-P2-P2) - Carries total tax amount at
    parent level segment and tax rate at parent item level also it carries
    indvidual service line item tax amount and tax rate at service item
    level
    Mulitple tax codes(P2-P1-C1)- Carries only total tax amount at parent
    level and no tax rate at parent level. It carries indvidual service
    line item tax amount and tax rate at service item level
    But while creating the invoice for parent line item which includes 3
    services, it carries correct tax amount(as per PO and SESR) but it is
    asking for tax rate at parent level not at service item level.
    It is working fine for similar tax code at service line item (e.g P1-P1-p1 for 3 services or P2-P2-P2 for all 3 services) but when we use the combination of tax code or multiple tax code at service line items (e.g. P2-P1-C1), the inbound Idoc gets failed.
    Expectation - How EDI invoice posted for mulitple Services under one parent line item which having multiple tax codes at service item level
    Thanks
    Sanjay
    9930851236

    This is an ongoing problem with lots of clients - did anyone solve it ?

  • 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

  • EDI Invoicing for Third Party orders

    I receive an invoice through EDI. the Idoc is posted using FM IDOC_INPUT_INVOIC_MRM to create the Invoice for the third party in SAP.
    Now the when the invoice price is different from standard price we need to use the standard price from SAP to post the invoice and the difference in the amount is to be booked on the price difference account.
    I have used user exit EXIT_SAPLMRMH_015 to use the standard price from SAP instead of the invioce price for posting. BUT I am not able to get how should I book the price on the price difference account. Which user exit is to be used and what values are to be passed.
    <b><REMOVED BY MODERATOR></b>
    Thanks.
    Message was edited by:
            Alvaro Tejada Galindo

    hi,
    this is to inform you that,
    this cannot be achieved with standard configuration i think so because if you keep in LOG of incompletion in sales order it will not stop creating PR.
    so this is pure development
    where you can write in user exit USER_EXIT_SAVE_DOCUMENT_PREPARE that if the sales order item category is VBAP-PSTYV =  TAS  & schedule line category is VBEP-ETTYP then check the LOG whether the document is completed or not and if not throw an error message & stop triggering PR stating that document is incomplete.
    this triggers while saving the document.
    hope this clears your issue
    balajia

Maybe you are looking for