Skip to Content
avatar image
Former Member

Using INVOIC01, IDOC posts invoices against POs that weren't sent to vendor

Does anyone have any suggestions on how to prevent the IDOC INVOIC01 invoices from posting against POs that were not originally sent to the vendor?? (BSART = INVO)

For example, vendor (1521) sends an electronic invoice file processed as an IDOC. Vendor 1521 includes an invoice against a PO that was sent to vendor 7549. Since the PO exists, the IDOC posts against it. I want to make this a hard error (a 51 status).

Please help,

Cindy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 14, 2008 at 07:02 AM

    Hello,

    Use the Customer Function EXIT_SAPLIEDI_101 to check if a PO exists for an Invoice. If it doesn't have an Invoice, then use the Same Customer Function to Error out the IDoc with Status 51.

    Thanks and Regards,

    Venkat Phani Prasad Konduri

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 15, 2008 at 06:10 AM

    Hi Cindy,

    Use IDOC FILTERS ( BD64 ).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 14, 2008 at 11:39 AM

    Thanks for the suggestion. We'll give it a try and see it if solves our issue!!

    I appreciate your help!

    Cindy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 05:56 AM

    Hi Cindy,

    If you are using a standard process code for this interface, you will not have this sort of problem as the combination of Vendor and PO number are validated before that is posted. If you are using a custom stuff then you need to check the table EKKO by passing the vendor number and PO number as input to that, if that combination exists go ahead otherwise throw the idoc into 51 status.

    Thanks,

    Mahesh.

    Add comment
    10|10000 characters needed characters exceeded