cancel
Showing results for 
Search instead for 
Did you mean: 

Validation of vendor material number in IDOC_INPUT_INVOIC_MRM

Former Member
0 Kudos
788

Hi folks,

Scenario: Inbound EDI vendor invoices received as IDOCs.

I'm using Logistics Invoice Verification process code INVL to receive and post vendor invoices on to the ERP2004 release of R/3.

I have purchasing info records setup with the vendor material number.

When I process an inbound vendor invoice, I can put in a customer material number i.e. a material number existing in material master in E1EDP19-IDTNR with qualifier E1EDP19-QUALF = 001. When I do this, R/3 checks that the material number is valid and refuses to post an invoice if the material number is invalid - this is good.

This means that the EDI program parameters with the 'Check Material Number' enabled is working as expected.

Now when I only have a vendor material number i.e. E1EDP19-QUALF = 002 an E1EDP19-IDTNR = vendor part number, R/3 posts the invoice even if the vendor part number is invalid - IDOC_INPUT_INVOIC_MRM does not seem to be validating the vendor part number. The document posts whether I use a valid vendor part number or an invalid one - what am I missing?

Satish

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Satish,

Did you find out a solution for this? I am having difficulties with the same issue. I need to compare the Vendor Material Number and the Manufacturer's Part Number but the IDOC is not looking at these fields at all...

Would appreciate your response.

Thanks,

Aps

Former Member
0 Kudos

Hi!

To include your self-defined check logic use one of then exits from enhancement MRMH0002 - "Logistics Invoice Verification: EDI inbound".

Regards,

Maxim.

Former Member
0 Kudos

Hi Maxim,

Thanks for the suggestion. It is quite unfortunate that we need to write custom logic for something so straightforward like validating a vendor material number, which is present in the PO/line item, against the incoming IDOC. Ideally, there should be an R/3 configuration setting to turn on this check. But the only check available to check material numbers is in EDI program parameters. And this only works for customer material numbers, not for vendor material numbers.

Regards,

Satish

former_member188685
Active Contributor
0 Kudos

for vendor material also you can skip the material check

using NO_MARA check.

vijay

Former Member
0 Kudos

I can answer by words of Axel Angeli - top level SAP R/3 consultant and R/3 cross-application development coach, the author of classic book "SAP R/3 Guide to EDI, ALE and Interfaces":

"SAP R/3 delivers a serious of predefined EDI programs. Many project administrators see them as standards which should not be manipulated or modified. The truth is, that these IDoc processing functions are recommendations and example routines, which can be replaced by own routines in customizing."

and

"SAP R/3 is delivered with a series of predefined IDoc types and corresponding handler function modules.

Some of the handler programs have been designed with user-exits where a developer can implement some data post-processing or add additional information to an IDoc.

You must always see those programs as examples for IDoc handling. If the programs already do what you want, it is just fine. But you should never stick to those programs too long, if you need different data to be sent."

So now you can feel free to customize

Regards,

Maxim.

former_member188685
Active Contributor
0 Kudos

Hi satish,

May be there are no checks on on vendor partnumber.

did you checked it in the FM.

vijay

Former Member
0 Kudos

Hello Vijay,

Thanks for the prompt response, I did not see anything in the code - but my ABAP days are behind me now - so I could be missing something.

Satish

former_member188685
Active Contributor
0 Kudos

Hi

I found one thing for you , it will check only for materias(qualifier 001)

it will not check for qualifier(002).

if you want to perform that may be you have to look for some customer function(user-exit).

vijay