Validation of vendor material number in IDOC_INPUT_INVOIC_MRM

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

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.

Similar Messages

  • Stock analysis based on vendor material number

    Hi
    Is there any report which can show the total stock of a material with split on vendor material number (I am entering different vendor material numbers upon goods receipt) or any query I can write to get the above result?
    The requirement is as follows: I will order an item with name say X and vendor supplies the item with different name say Y. So I am maintaining vendor specific name in vendor material number. Now I want to see the stock X with what quantity of it is Y.
    Thanks

    Dear Praveen
    You could use the following;
    Input and Output Conversion of Material Numbers  
    Use
    Like every other part in the SAP system, an inventory-managed manufacturer part has an SAP-specific material number that uniquely identifies it. If this material number is uncommon or unknown to the vendor, you should consider the following (especially in the purchasing process):
    ·        You can enter a part with its Manufacturer Part Number (MPN) and its External Manufacturer, and not just with its material number. This is possible because of the input conversion of material numbers.
    ·        The system displays this part with its Manufacturer Part Number and the External Manufacturer in lists and screens. This is possible because of the output conversion of material numbers.
    You have to increase the maximum field length for input and output values in the Output Length for Material Numbers field to enter and display the MPN and the manufacturer code in one field
    Prerequisites
    You have made the following settings in Customizing:
    ·        You have activated the conversion exit for material numbers.
    ·        You have maintained a delimiter. The delimiter separates the MPN and the external manufacturer when they are entered or displayed in one field.
    ·        You have specified a maximum output length for material numbers. This means that the fields for the long material number are scrollable, and the output columns for lists are wider.
    You configure and activate the conversion exit for material numbers in Customizing by choosing Logistics - General ® Interchangeability of Parts ® Set Up Conversion Exit for Material Numbers.
    Features
    Input Conversion
    If you have activated the conversion exit, you can enter the relevant MPN instead of the material number in the relevant input fields.
    If the MPN is not unique, you enter the external manufacturer in the same field, separating the MPN and the external manufacturer by the delimiter defined in Customizing.
    You have defined: as the delimiter.
    Enter 45L700W:36121 (Manufacturer Part Number, Delimiter,and External Manufacturer) for the part, instead of material number 1011. If the MPN is unique, you only have to enter 45L700W (the Manufacturer Part Number).
    You can now scroll the input field for the material number. This allows you to enter the maximum output length for material numbers, which has also been defined in Customizing.
    Input conversion gives you an alternate and additional input option. You can still enter the ERP material number to identify a part.
    The system determines the correct material number from your input, and passes it to the program logic. The system handles your input as follows:
    ·        If your entry contains the delimiter, the system splits the entry at the delimiter, interprets both parts of the entry as the Manufacturer Part Number and the External Manufacturer respectively, and searches for a part corresponding to these entries
    ·        If your entry does not contain a delimiter, the system interprets your entry as an (ERP) material number, and searches for the corresponding part in the material master. If this is unsuccessful, the system interprets your entry as an MPN, and searches for the corresponding part.
    If the system cannot determine a part clearly, or the search is unsuccessful, it issues an error message.
    Value Range for MPN on the Selection Screen
    The system converts the MPN into a material number internally.
    To ensure that the system correctly interprets the value range for an MPN that is entered as selection criteria, when the conversion exit is activated, the system provides both the material number and the MPN as selection criteria in the selection screen.
    Output Conversion
    If the conversion exit is activated, the output conversion ensures that the system displays the MPN and the external manufacturer on screens and in lists, separated by the delimiter in the field or column that usually displays the ERP material number.
    If the Output Length for Material Numbers field in Customizing is not long enough to display both the MPN and the external manufacturer, the system displays the MPN, if it is unique.
    If the MPN is not unique or the output length too short, the system displays the ERP material number.
    The system displays parts with the output length defined in Customizing. In addition:
    ·        You can scroll the output field for the material number on screens.
    ·        The system adjusts the layout of lists to the output length.
    List Formatting
    If you use the inventory-managed MPN, you have to change the list formatting as follows:
    ·        Variable length of the material number in reports
    In cases of the automatic conversion of the material number into an MPN and external manufacturer, the system takes account of the Output Length for Material Numbers field (defined in Customizing) when it structures the lists for selected reports. This ensures that columns are aligned, line breaks are correct, and the lists can be read.
    ·        Adding a field for the external manufacturer
    The external manufacturer should also be displayed in lists because the MPN, into which the material number is automatically converted, is not always unique.
    In Customizing, you have defined whether the external manufacturer should be displayed with the MPN. The system adds the field for the external manufacturer immediately after the field for the MPN in lists and on the screen.
    You can display the external manufacturer with or without an active conversion exit.
    ·        Sorting by MPN, not by material number
    You can sort some lists by material number.
    You can sort by MPN in cases where the MPN is displayed instead of the material number.
    with kind regards
    Sundar

  • PO report which includes Vendor Material number

    I am looking for a report similar to ME2K but including the Vendor Material Number.  Customer wants to run by Cost Centre and Material group.  However, I cannot find a way to include the Vendor Material number on this report, is there a way to do that thorugh config?
    Thanks for any info.

    Hi,
    You can find the vendor material number in the material data tab of purchase order.
    Goto EKPO table enter the PO numebr and look for the field name with vendor material number. Select that with all other fields . for cost center and account assignment chekc table EKAN.
    Write the program to fetch data from all these tables with feild names.
    Hope thsi helps.
    Regards,
    Smitha

  • Closed tick and vendor material number in PR

    Dear Gurus,
    I have three questions.
    1. I have created a PR with vendor material number, but initially vendor material number did not copy to the PO. Then I assigned a desired vendor along with vendor material number. It got copied to the PO. After that I created another PR with vendor material number and without vendor code. That vendor material number copied to the PO. Why is this?
    2. I have created a PO for full quantity given in the PR, but why closed tick in the PR is not set automatically.
    3. Can set this close tick in the PR when creating the PO.
    Thanks,
    Chameendri

    Hi,
    3. Can set this close tick in the PR when creating the PO.
    NO,when you create Po for fully qty of PR then in PR itself Po creation status will  be thereon status tab at item level and you can not create another Po if PR qty is fulled
    2. I have created a PO for full quantity given in the PR, but why closed tick in the PR is not set automatically.
    sap stander
    Regards
    Kailas ugale

  • Vendor material number

    Hi Gurus,
    For ROH materials, we have our own material numbers and if we take printout of po's our material code is being printed.  But our vendor requires their material number reference to be printed.
    is it possible? if yes where to do that.
    Regards,
    naras

    you can configure Manufacturer Part Number (MPN) functionality.
    Step 1 -
    In customisng under Lo General - Material Master - You have to create a MPN profile.
    Step 2 -
    Create normal material under material type ROH or Traded as required. Under purchasing tab , maintain MPN Profile,Manufacturer's part number(Vendor material number) and Manufacturer's code.(Vendor Code)
    This is a material in which you will maintain stock, use in BOM etc. This is your internal material number. This number  will not be used in the PO.
    Step 3
    Create a new material each for your alternative materials under Material type HERS. Under this you will create material which is supplied by your vendor.In this material you will link the internal material number as created in step 2 above.
    Step 4
    Create a PO by using material number created under material type HERS. 
    Step 5 - Do a GRN
    MPN process works like this :
    Order is created for HERS material but whenever you will do GR against this PO, stock and other reports will get updated under material code created in step 2 i.e normal material created under material type ROH or traded. Thus HERS material is used only for ordering purpose.

  • How to use Vendor Material Number in Purchase Order Creation - ECS Scenario

    Hi SRM Gurus,
    We are in Extended Classic Scenrio - SRM 5.0.
    We want Vendor Material Number to be printed in the Purchase Order Layout. I remember in R/3 we have inforecord, wherein we have vendor Material number. Where do we maintain vendor material number in SRM. Suggest a suitable solution.
    Thanks & Regards,
    Ramkumar

    Hi
    Please refer to BBP_PD transaction to get the SRM Shopping cart (use Object type - BUS2121) / Local PO details (Use Object Type - BUS2201).
    <u>Please use the following useful links to refer in this case.</u>
    <b>Re: PO Display
    Vendor material no is not replicated in R/3
    Re: PO Display
    Re: SRM PO SMARTFORM
    Re: SRM PO Print
    Re: SRM PO SMARTFORMS
    You need to copy the standard SAP smartform BBP_PO to a custom smartform say - ZBBP_PO.
    SRM SPRO Configuartion Settings ->
    In SPRO -> SRM-SRM server-Cross Application basic Settings ->Set output Actions and output format->Define Action for output document.
    Select Action profile as BBP_PD_PO, click on processing type, choose smart form print or fax or e-mail as per your requirement and
    change PO name as ZBBP_PO, in this case.
    Incase you need any assitance, let me know.
    Hope this will help.
    Regards
    - Atul

  • Vendor material number in purchase order

    Hello,
    I have the following problem :
    When i create a purchase order (transaction ME21N), the vendor material number (field IDNLF) will be suggested from the purchasing info record.
    It isn't the case, the vendor material number is empty.
    I don't understand why.
    Do you have an idea ?
    Thank you

    Hello,
    Vendor Material Number;  Material number used by the vendor, Usually we saw this field in Info records.
    We can see the same field in ME21N in Material data tab ( Item level of the PO), If Vendor and Material combination have correct info record and if suppose user has maintained  Vendor Material number field,  then while creation of PO for the combination of particular material and vendor system will get Inforecord price in PO and  system will populated Vendor Material number in Material data tab of the PO in item level.
    Thanks and Regards
    Mahesh Naik

  • BADI / USER-EXIT to change Vendor Material Number in ME21n

    Dear Sir,
    We are looking for a BADI/USER-EXIT  in Tcode ME21n , which can change the Value of  "Vendor Material Number" (Vendor Material Number is available under Item Detail in "Material" Tab . The value which need to be populated in the Field "Vendor Matreial Number" is  equal to first 4 character of the Item Code .
    I request the SAP Experts to kindly guide me with a sample Code please .
    I will be highly grateful for the kind help pl .
    Regards
    B Mittal

    Hello B.V.,
    User-Exit:
    First open the relevant Module Pools for ME21n via SE38. Then search for all CUSTOMER_FUNCTION 'xxx' where xxx is a 3 digit number. This number is linked to a User-Exit EXIT_<Module Pool>_xxx. Then investigate this function for it IMPORT parameters. In your case there has to be an interface for "Vendor Material Number".
    For to implement the required changes use the by SAP delivered include ZX<something> inside this function.
    BAdI:
    1. Search in IMG
    2. Find Enhancement Point in the relevant Module Pool.
    Hope this helps,
    Heinz

  • ME11 : Vendor Material Number Unique for Vendor

    Dear.
    When I create or change the vendor material number of an info-record I need that system check that donu2019t exist another material of same vendor with same vendor material number.
    How can I do that ?
    Thanks.

    you would need a user exit to check this directly, I dont any for info record.
    Alternative you can write  a small ABAP that searches duplicates and runs once or more often a day and sends a spool file to a dedicated user.

  • Purchasing info record for vendor's material number ONLY?

    Hello gurus,
    we have materials that must be ordered with refernce to a contract. We purchase these materials only from one vendor and exclusively using that contract (only one source of supply). We do need purchasing info records to store the vendor's material number.
    Now, the problem is that if we have one contract and a purchasing info record, the system interprets the PIR as a second dource of supply. So, when I create a new PO, the price is automatically taken from the PIR and not from the contract.
    Is it possible to create PIR's for the vendor's material number without creating a second soucre of supply?
    Thanks in advance
    Alicia
    PS: I do know that i can use order lists but that does not solve the problem when manually creating a new PO...

    why dont you maintain the vendors material number already in the contract item?
    why do you create an info record that has a different price than the contract?
    Edited by: Jürgen L. on Jan 5, 2009 2:21 PM

  • Vendor Article Number in report format

    Hey,
    I am looking for Report in SAP MM which will give me Vendor Article or Vendor Part number. This information is in Purchasing Info Record but when i am using T-code ME1M for PIR report this field is not comming. If you know any other report or by any other way i can get this information with reference to article and Vendor that will be a great help.
    Thanks

    I just checked ME1M and I'm able to see Vendor Material number there in the selection criteria (IDNLF).

  • Vendor Material No in Inbound Delviery

    Hi ..
    I am trying to Capture Vendor Material NO field from Inbound Delivery , which is the table to look at ...When i press f1 it shows the structure....
    What are the Tables related to Inbound Delivery....?
    Thanks
    Balaji

    Hello Balaji,
    Vendor Material Number in Inbound Delivery is in Delivery Line Item table LIPS. The field is LIPS-KDMAT.
    The Inbound delivery tables are LIKP/LIPS.
    Thanks,
    Venu

  • How to include vendor catalog number on purchase order?

    Is there a way to have the vendor catalog number print on the purchase order? Or does it have to be manually typed in each time in "Vendor mat. no." under the "Material Data" tab? Thank you!

    Hello Vanessa,
    If you are using ME21N to create a PO, the vendor material number (EKPO-IDNLF) will be determined in include LMEPOF5W:
        IF rekpo-ebelp NE space AND rekpo-idnlf NE space AND
           rekko-lifnr EQ ekko-lifnr.                           "530554
          lf_idnlf = rekpo-idnlf.
        ELSEIF aekpo-ebeln NE space AND aekpo-idnlf NE space AND
          aekko-lifnr EQ ekko-lifnr.                            "530554
          lf_idnlf = aekpo-idnlf.
        ELSEIF reban-banfn NE space AND reban-idnlf NE space AND
             ( reban-flief EQ ekko-lifnr OR                     "548217
               ( reban-flief EQ space AND
                 reban-lifnr EQ ekko-lifnr ) ).
          lf_idnlf = reban-idnlf.
        ELSEIF kekpo-ebeln NE space AND kekpo-idnlf NE space AND
          kekko-lifnr EQ ekko-lifnr.                            "530554
          LF_IDNLF = KEKPO-IDNLF.
        ELSEIF FEKPO-INFNR EQ *EINA-INFNR.
          LF_IDNLF = *EINA-IDNLF.
        ENDIF.
        CH_IDNLF = LF_IDNLF.
      ENDIF.
    As above, the vendor material number will be firstly taken from the reference doc. If there is no vendor material number found in the referece doc. system will take the data from the vendor master. Otherwise, you have to enter it manually in the PO item.
    For the question that if it can be printed,  can check whether it is defined in print form MEDRUCK ( by using transaction code SE71).
    Regards,
    Diana

  • Vendor material locked (ME42)

    Hello Gurus,
    i am facing a problem with vendor material number (ME42->Purchasing->additional EANs) for a given material & vendor, i cannot add a vedor material (the field is locked). Can anyone tell me why ??
    Thanks in advance,
    Stratos

    Anyone who knows ?

  • Modifying Vendor materal Number.

    Hi All,
    I am running a tool to get the out put in an excel file, the out put fields are as follows:
    New Record, Vendor,Material, Material description, Vendor material Number, Amount etc
    Now I am using another tool to upload this file into SAP, while doing so if i put Amount as 8 it is properly reflected in ME13 how ever if i modify the Vendor Material Number(IDNLF), the change is not reflected,
    Is it possible to change the Vendor materal Number in this manner??? or  Vendor materal Number(IDNLF) has some other dependencies?
    Thanks,
    Debrup.

    The info record data is stored for a given combination of vendor no,matnr,pur org,plant and info record.Hence if you try to change matnr it would create a new info record.

Maybe you are looking for

  • Photoshop CS4 keeps crashing on opening

    Any solutions?

  • Picking up JAR files from JSP's

    I have a web application with some JAR files that live under the WEB-INF/lib directory. My understanding of webservers (Tomcat, Weblogic, Dynamo, Orion, Resin) is that files under WEB-INF/lib will be picked up on the servlet CLASSPATH. Using iAS 6 SP

  • ATG Search vs Endeca Search

    Why ATG is integrating with Endeca Search in ATG10.1.1? Is there any issues with ATG Search? Why cant we use ATG Search itself for indexing and Search in Commerce applications. Any specific advantages of Endeca Search over ATG Search. Please share yo

  • Folio Producer not pushing folio to my ipad?

    I have been trying all morning to get my folio in folio producer to appear in my adobe content viewer. Is something down? Any ideas on why it's not showing up? Was working fine yesterday.

  • SAP script question

    Hi all, I have changed footer page window in the form. But apparantly, the address page window is also changed. I dont know how, though I have not touched the address page window. As a result the whole output report layout is changed. Is there anyway