Populating value in idoc segment E1EDP02 for INVOIC01- incoming invoice

Hi Friends,
I am working to get the incoming freight invoice posted to MIRO, using
IDOC : INVOIC01
message type: INVOIC
process code: INVL
function module : IDOC_INPUT_INVOIC_MRM
Vendor does not send the PO number only send the bill of lading number(shipment number). So i have customised the IDOC with one segment for getting bill of lading number. My requirement is get bill of lading number and then get PO no and populate into segment E1EDP02. I am not able to populate this field and hence each time the IDOC fails with message :
Required field BELNR(001) is missing in segment E1EDP02
Required field ZEILE(001) is missing in segment E1EDP02
Please tell me how to get this field populated and get the issue resolved. I have been trying to figure out for couple of days but no success OR My approach is incorrect for posting invoice to MIRO with populating field segment.
Please suggest.
Thanks
Deepak

Thanks everyone for getting the issue resolved. I have implemented implicit enhanencement and before the function module strarts procesing, I loop over segments and fill up the PO number to E1EDP02 for bill of lading number. There was also a case of error handling for IDOC. That is to check if the amount sent by vendor is correct as compared to the amount on the shipment cost docuemnt, if they dont match then I need to send an email to the business informing them for bill of lading number and amount. There is also another check to find out if the bill of lading number has already been invoiced, if invoiced I again need to inform the business user.
So keep all the requirements in mind I went with Implicit enhancement, thus populating the required segment and if the validations fail for amount or invoice document already generated, then I send the mail to business with bill of lading number and reason of failure. In such case IDOC is not executed and after sending the mail, the logic exits out of function module.
I

Similar Messages

  • BAPI for MIRO Incoming Invoice

    Hi All,
    I want BAPI for MIRO Posting ie for Incoming Invoice.
    .here MIRO is being done with Delivery Note number
    Following are the necessary entries for MIRO Posting
    Invoice date
    Reference
    Amount
    Calculate Tax
    Tax amount
    Delivery Note
    Vednor
    Business Area
    Please suggest me suitable BAPI for MIRO Incoming Invoice Posting with sample code.
    immediately.Please give some sample code for my reference.
    Rewards will be given.
    Regards.
    Ulhas

    Hi,
    BAPI for Invoice Verification: Post Invoice
    BAPI_INCOMINGINVOICE_CREATE
    The method can only carry out your function if no error messages were
    generated in the Return table. This is the case if the header data and
    all the items were processed successfully.
    Transaction control is not implemented. The calling program therefore
    has to execute the Commit Work itself after this method has been
    successfully called (in other words, if no errors were reported in the
    Return parameter).

  • Can we Use T Code MIRA instead of MIRO for posting incoming invoice?

    Hi All,
    Can we Use T Code MIRA instead of MIRO for posting incoming invoice?
    While trying to post a incoming invoice using MIRO, I am getting a error "HKONT is EMPTY". But when using MIRA i could get the invoice posted.
    And in which situations we use MIRA?
    Thanks in Advance
    Gopi Krishna

    Hello
    MIRA is for Invoice Verification in the Background
    Purpose
    This process is suitable for the following transactions:
    Posting invoices with mass amounts of data for which no item check is required
    Posting invoices referring to transactions not yet entered in the system
    Entering Invoices for Verification in the Background (Without Item List)
    When verifying invoices in the background, you enter only a small set of document header data, such as the invoice amount, the currency and the tax information. You also allocate the incoming invoice to a purchasing document or a vendor. The system saves the data and allocation criteria you enter.
    At a later point, the system verifies the invoice in the background. It uses the allocation criteria you entered to determine the item list. It then calculates the net total from the item list.
    If the net total = gross amount invoiced - tax amount (+/- tolerance), the system posts the invoice in the background.
    If the net total ¹ gross amount invoiced - tax amount (+/- tolerance), the system does not post the invoice in the background. It saves the document header data and the items determined in the background; the saved document then has to be processed manually in Invoice Verification.
    With Invoice Verification in the background, the system does not check for any quantity or price differences at item level. Since you do not enter any actual invoice item data, the system uses the default data for comparison.
    Regards
    Gregory Mathews

  • ERROR TRIGGERING DEFAULT METHOD FOR OBJECT (INCOMING INVOICE).

    When trying to open invoices in my ERP inbox to authorise I get the following message.
    ERROR TRIGGERING DEFAULT METHOD FOR OBJECT (INCOMING INVOICE).
    . There might be an authorisation issue. but i am not confirm.
    I have checked the authorisation in SU53 also.
    is it possible that there is some other reason for it.
    If so then what are they?
    please help.

    Hi Naval,
            Is it a custom business object....make sure that the status of all object components are set to Implemented or released..and  regenerate the Object...
    Thanks
    Srinivas

  • Zero Condition Value in IDOC segment

    Hello SAP Experts,
    I have a requirement that the zero value condition type should get populated in the pricing segment of idoc E1EDP05 under E1EDP01.
    When we try, this no condition type comes in this segment. Based on this , I have to map certain data in my Ztable.
    Request for the guidance to meet this requirement
    Thanks in advance,
    Casimer

    Hi Casimer,
    sorry, this won't work without a modification.
    The system outputs conditions and taxes in the INVOIC or ORDRSP IDoc       
    under the following conditions.                                                                               
    o  The print indicator in the pricing procedure must be set.           
           For example ('X' for item E1EDP04 and E1EDP05)                      
                  ('S' for header level E1EDK04 and E1EDK05)                                                                               
    o  The value of the condition must be <> 0.                                                                               
    o  The condition must not be flagged as statistical.                                                                               
    o  The accrual field should be empty.                                                                               
    o  The condition must be active.                                       
    Balazs

  • Extractor for RSEG incoming invoice table

    Does anyone know if there is a standard extractor that includes incoming invoices from table RSEG?  Also is there documentation somewhere on all of the standard extractors?

    Dorothy,
    I'm looking for the same extractor. Have you found the answer in the meantime?
    Thanks,
    Sigal.

  • Tax Jurisdiction code for EDI Incoming invoice

    Hi,
    We have implemented EDI incoming invoice using INVOIC02. The process code is INVL.The invoice is to be posted against a Purchase Order line item. It is noticed that the EDI invoice is not getting the Tax Jurisdiction code from the Purchase Order line . Instead the Tax Juridiction code is copied from the company code. However when we post the invoice manually using MIRO , then the Tax Juridiction code is copied from the Purchase Order. We understand that the system should take the Tax Jurisdiction code from the Purchase Order even for EDI invoices. Is it compulsory that we have to use the user exit EXIT_SAPLMRMH_014 in order to populate the Tax Jurisdiction code field TXJCD from the Purchase Order line? or is there any config required to enable the transfer of Tax Juridication code from the Purchase Order? In transaction OBCE there is a config to transfer the tax jurisdiction code supplied by the external vendor. If we do not check that box , then system is supposed to get the tax jurisdiction code from the Purchase Order.
    Thanks
    Sukumar

    The issue is resolved through OSS Note 506343. In the standard R/3 system, the tax jurisdiction code can't be written to invoice via EDI and only the Ship To Plant's Tax Jurisdiction Code is written to the invoice.
    Regards
    Sukumar

  • IDOC Segment missing for MATMASS Message type

    Through change pointer program for the message type YAUIHUBMATMAS IDOC is triggered.
    1) Change pointers are defined in system for the message type T Code u2013 BD52.
    2) If respective field is changed in material master , this data is stored in change pointers table BDCP.
    3) Background jobs are scheduled every day, which searches for the changes pointer table and triggers the idoc.
    In our case IDOC is getting generated but with one segment missing.
    We have analysed the succesful and failed IDOC and found desrepency is field updation of BDCP table.
    Succesful case contain material number in object value of ZZMDST field where as failed contain some other value.
    Can anyone please help us to guide how the BDCP table is updated and the values are mapped in it or any other suggestion to find why the segment is missing in it.
    Regards,
    Roshni.

    Jürgen L. wrote:
    > I have never seen a YAUIHUBMATMAS IDOC, nor a ZZMDST field .
    > This seems to be home made.
    >
    > You are expecting that standard SAP programs are generating change pointers for your z-fields?
    > Do you see a change history in material master for your z-field?
    >
    >
    > follow the slution from this thread:
    >
    Yes ,This is a Z -field.
    Change pointer is triggering the idoc fo this Z-field but in some cases one segment is missing .
    This is z-field in the basic data view of material master.
    Yes , we have checked the change history in material master for this field it is getting updated there in BDCP table as well but in BDCP table if this field is flagged then object value is not contain material number instead it contain some other number .
    But in case of succesful IDOC the object value is same as material number.
    Regards,
    Roshni

  • IDoc - Segment details for Confirmation Code in ME22N

    Hi Friends,
    I am doing Purchase Order Acknowledgement(855) - Inbound Scenario. I need the ConfirmationCode and Confirmation ControlKey fields in the segement of basic type ORDERS05. We couldnt find these two fields in the segments, can any one help me to find out the solution.
    Regards.
    Selva

    Hi Selva,
    add these 2 fields and create a segment in WE31. Add this segment to extension idoc in WE30.
    Link the Ext.idoc to msgtype in WE82.
    Try to fill the data at userexit level for added fields.
    Thanks
    Eswar

  • IDoc - Segment Details for Confirmation Code

    Hi Friends,
    I am doing Purchase Order Acknowledgement(855) - Inbound Scenario. I need the ConfirmationCode and Confirmation ControlKey fields in the segement of basic type ORDERS05. We couldnt find these two fields in the segments, can any one help me to find out the solution.
    Regards.
    Selva.

    Hi Selva,
    add these 2 fields and create a segment in WE31. Add this segment to extension idoc in WE30.
    Link the Ext.idoc to msgtype in WE82.
    Try to fill the data at userexit level for added fields.
    Thanks
    Eswar

  • Invoice Type not being Updated while Posting INVOIC01 - Incoming Invoice

    Hello,
                    I am trying to Post Incoming Vendor Invoice in to SAP using INVOIC01 and IDOC_INPUT_INVOIC_MRM Function Module. I am adding values INVO for Invoice, CRMO for Credit Memo in the Field E1EDK01-BSART to Post the Invoice with different Invoice Types. However, the Invoice for the PO gets Posted only as Invoice, no matter what I populate in the Segment Field E1EDK01-BSART. What could be the issue? Please let me know.
    Thank You,
    Venkata Phani Prasad K.

    This issue has been Resolved. A Sub routine MRM_DOCUMENT_COMPLETE is called in the  Function Module IDOC_INPUT_INVOIC_MRM in which the value of the USING Parameter MRM_RBKPV-TCODE is being hard coded to MR1M. Since I am using a Z-Version of this Function Module, I've changed the value of the above field to MIRO after the Subroutine call which solved the issue.
    MRM_RBKPV-TCODE = 'MIRO'.
    The Values to be Passed to the Field BSART in the Segment E1EDK01 are
    E1EDK01-BSART = 'INVL' - For Invoice
    E1EDK01-BSART = 'CRME' - For Credit Memo
    Thanks,
    Venkata Phani Prasad K

  • No error for imbalance incoming invoice

    Dear Guru,
    This issue in IR (MIRO)
    GR amount is 1.48
    Tax amount : No tax (V0-Input tax - 0%)
    Amount : 1.55 entered in basic data
    Balance : 0.07 MYR
    As per my understanding, error (red button) will prompt if the balance is not 0.00 in balance field. In this case green button prompt & no error prompt. The balance shows is correct (1.55-1.48=0.07) & it suppose show error if it's not balance but it doesn't happen. This issue found in test system. Appreciate if you assist me to resolve this issue. Thank you.
    rgds,
    nantha

    Hi
    If tolerance group for company code is 0001 then maintain the same group in Vendor master record payment transaction tab (for IV). Then if the payment difference (between invoice line item and invoice amount in header) is not with in limits specified for that tolerance group system issues an error message (message number M8/534).
    Please see the help note:
    *1. The system determines the difference between the net invoice amount (= gross invoice amount less taxes and unplanned delivery costs) and the net total of the items.
    If the net invoice amount is the greater, the difference is positive; if the net invoice amount is the smaller, the difference is negative.
    2. Negative differences:
    a) If the negative difference is smaller than the absolute negative small difference limit defined, the system generates a posting to a small differences account for this difference.
    b) If the negative difference is greater than the absolute small difference limit defined, the system checks if the absolute difference is smaller than the lower of the absolute and percentage lower limits.
    If this is the case, the system creates a posting to a small differences account.
    If this is not the case, the system cannot post the invoice*
    It the difference is more than the tolerance value (either negative or positive - if it is more than the absolute limit or % value - * in local currency*) then system issues an error message. Just try to enter an invoice with difference value more and see the difference. Before that maintain tolerance key in VM otherwise system will not propose any debit/credit message.
    Thanks

  • Find accounting document for deleted incoming invoice document

    Hi all,
    I have few ncoming invoice documents which were deleted. those documents i can see in RBKP table.
    I want to trace the accounting documents for those deleted documents.
    Can any one help me to find the accounting documents for deleted documents.
    thanks in advance.

    Hi,
    this might give you an idea:
    data: l_belnr like bkpf-belnr, l_gjahr like bkpf-gjahr.
    clear: l_belnr, l_gjahr.
    data: l_string(20) type c.
    clear l_string.
    data: l_belnr_2 like bkpf-belnr, l_gjahr_2 like bkpf-gjahr.
    clear: l_belnr_2, l_gjahr_2.
    select belnr gjahr from rbkp into (l_belnr, l_gjahr)
    where rbstat = '2'. "Status = deleted
    concatenate l_belnr l_gjahr into l_string.
    select single belnr gjahr from bkpf into (l_belnr_2, l_gjahr_2)
    where awkey = l_string.
    write: /'FI', l_belnr_2, l_gjahr_2, 'MM', l_belnr, l_gjahr.
    endselect.
    Note that the key here is AWKEY.
    Best regards.
    Edited by: Pablo Casamayor on Apr 13, 2009 3:03 PM

  • FIeld selection for MIRO Incoming Invoice

    HI,
    Iam creating invoice entry (MIRO). After entring purchase order number i will get all the GRN against that PO.
    But iam getting all the fields with  not necessary. pls tell what is the path in SPRO setting to select filed selection.
    Regards
    Sunil

    Hi
    Please check the Tcode OLMRLIST  . Here you can make fields mandatory/display/optional. You need to select transaction MIRO with appropriate screen variant and have to search for juridiction code , make it optinal.
    Else check the GL code used for the particular line item and check if tax data is made mandatory for that.
    Cheers
    Mukta

  • HTTPS for posting incoming Invoices

    Currently our vendors are using HTTP to post XML invoices to our XI server. But one of our vendor cannot use HTTP, they have to use HTTPS. So what should we do in our system so our vendor can post invoices to XI server by using HTTPS? do we need do extra settings in XI?
    Thanks in advance!
    Mrudula

    Hi Mrudula
    Check this thread
    HTTP Adapter with SSL/HTTPS
    cheers
    Sameer

Maybe you are looking for