Material validation

Hi,
I have written a user exit prgram for material validation. I.e we maniatin a seprate "z" table, where the 'z' table contains filed like material code, wbs element & material price. when i create a P.O then it should check whether that material exit in table. if that material exits then P.O should be saved or else it should display a message that material not mainatined in table.
Our Scenerio as follows
  "z" is will be like
WBS element                  MAterial                           Price
cbb.009                               ABC                                11
cbb.009                               DEF                                  12
Now if i create a P.O with material ABC And WBS element cbb.009 P.O should be saved. And when i create a P.O with WBS cbb.009 with material GHI (which is not in table for WBS cbb.009) an error msg a 'material not mainatined' should come.
For this i have used a user exit MM06E005 and Function exit EXIT_SAPMM06E_017.
And now the issue is when i create a P.O with material whcih exist in the table  it is allowing me to Save the P.O. And when i delete the material code and enter a material code which is not in the 'z' table it's not displaying the error msg but when i change any other field than material code its showing the error message. When i set the break point in pgm and check the material field is not getting changed when i change the material in P.O but when i chnage either Qty,plant or price it getting updated.
But for me when i change the material code itself it should be changed in the material code field.
EVEN I TREID WITH CLEAR,REFERESH COMMANDS. BUT STILL ITS NOT SOLVEING MY PROBLEM
And Regarding this issue i have posted many threads in SDN but i have not got any correct solution.
Pls guide me to this issue and help
Thanks
Regards
Dinesh

Hello Dinesh,
It seems you are in wrong forum. Try to post in Technical forums to get the appropriate solution
Umakanth

Similar Messages

  • BOM material validity

    Hi,
    If in equipment BOM material validity is 3, then system should not allow to raise PR or reservation of 4 or more qty, only allow to 3 or less than 3 quantity from the maintenance order. System should give the error message when qty. exceeds.
    Is it possible ? how , please guide me........
    Because end users are increasing the qty. of the material while creating PR or reservation, i have to avoide this.

    Dear Shahanawaz,
    I think we have one option that is you can select in equipment BOM Fixed quantity or you can also select in general tab of order component tab,if you fixed there is no withdran more quantity
    but here one back drop is you canot change quantity in PREQ and also you have restrict to do PREQ to Purchase Order other wise possiblity to change in PO.
    I described what i know if it is useful ok, otherwise......dont mind
    Hope this may helps you
    Prem.

  • Material validation in Workflow

    Dear Friends,
    We have use material work flow for creating material master,Now we required validation like,
    when we released material at last stage of workflow required condition to check material batch managment (MARA-XCHPF) active or not.after depended on material type we decided to active it or not.
    Please give me your answer  ASAP.
    Regards,
    Dishant Mistry

    make the batch management screen i.e purchase view or MRP view mandatory at the last stage approval process

  • Different Campaign - Same keys / material / validity period is it possible?

    Hello All,
    We want to run two campaigns for different customers with same material / same validity and same discount condition.
    Web UI - Cannot create different campaigns for the same product with the same condition type in the same validity date.
    This is the error we are getting...
    Diagnosis
    The validity periods of records with the same semantic key (e.g. same price type, same organizational data, same product, and same customer) may not overlap. However, the system has found two records with overlapping validity periods.
    System Response
    Both records have a red status on the user interface, indicating that anerror exists. As these records are inactive, they will not be taken into account by any application (for example, sales order pricing).
    Procedure
    Change the validity periods of the records concerned such that they no longer overlap.
    Logically it makes business sense to have two different campaigns for same material and validity at the same time.
    We do not intend to introduce a customer key - as it becomes too cumbersome to maintain the records for n number of customers.
    Is there a setting in campaign management or somewhere else XCM etc etc to over-ride this some how.
    Please let me know if you need to see screen shots - I can provide them ... on request
    Good answers will be rewarded with points.....
    Thanks,

    Hello,
    Yes it will be possible, But you condition record should be based on customer/material.
    Regards
    Raja Pamireddy
    CRM Marketing forum Moderator

  • Validity and non-validity material

    hi frnds
    what is validity material and non-validity material ?
    regards

    Hi Santosh,
    Please go through this SAP help it may not give you Exact answer for your quiery but you can get some idea on Material validity.
    http://help.sap.com/saphelp_47x200/helpdata/en/f3/7c8fe6a39411d19daf0000e8323350/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • What is the standard transaction code to see price for a material

    can anyone tell me what is the stadard t code to display price of a material for different customers the input contains sales organization distribution channel material valid on and end date
    Urgent
    thanks

    Use condition maintenance function (VK31) to meet your needs.
    Go to VK33 to display pricing reports, choose conditions > by customer, narrow down results by specifying org units, validity periods, customer and material range, condition type etc.
    Or at SE43, display area menu cond_av, where you can find out what pricing reports constitute this menu i.e your condition maintenance screen. If it is a routine task, creating an area menu may be needed.
    At V/LA, pricing reports can be easily created to suit specific requirements. Then newly created reports can be added to area menu via SE43.

  • Selecting material based on date

    Hello Experts,
    I have requirement where i want to give material and date.
    i have to select materia, condition record number based on date.
    In database table field is stored like material , validity from date and validity to date.
    Same material number is there but validity date and condtion record number is different.
    Matno        from date                 to date                      Condition record no
    1234       01.01.2009                31.12.2009                       23456
    1234       01.01.2008                31.12.2008                       12367
    if user enter date 12.09.2009 it should fetch me first record. ( because date is between 01.01.2009 to 31.12.2009)
    if user enter date 20.08.2008 it should fetch me first record. ( because date is between 01.01.2008 to 31.12.2008)
    field for input date is fkdate.
    So how i have to query in select statement to get this requirement.
    Thanks in advance.
    Best regards,
    Sai

    select * "or the fields you need
           from abcd
            into table itab
            where matnr in s_matnr "if you have it in sel screen or remove it..
                 and dat_fr GE p_fkdat
                 and dat_to LE p_fkdat.
    but if the dates are not keys...
    better not use them in select...
    delete the unnecessary items after the select using DELETE ITAB where...

  • Needed  selection screen validation for all entries in the range

    Hi all,
    I'm using the below code for Material validation in selection-screen.
    SELECT SINGLE MATNR FROM MARC INTO MARC-MATNR
      WHERE MATNR IN S_MATNR.
      IF sy-subrc NE 0.
        MESSAGE e000(su) WITH text-035.     "Invalid Material Number
      ENDIF.
    This validation is working only for one record in the range.
    If I give multiple material numbers in the range having a record which doesn't exist in MARC, its not throwing the error.
    Seems like loop should be placed at s_matnr. Is that correct procedure or any pointers on the same would be of great help.
    Regards,
    Vamsee Priya.

    Hi priya
    Use this way,
    REFRESH IT_LIPS. CLEAR IT_LIPS.
      SELECT VBELN
             POSNR
             MATNR
             WERKS
             LFIMG
             ARKTX
             VGBEL
             VGPOS
             BWART
             FROM LIPS INTO TABLE IT_LIPS
             WHERE PSTYV IN
       ('ZZTC', 'ZTAD', 'ZMVN', 'ZCVA', 'ZCVB', 'ZCVC') AND "ASR 18721
                   WERKS IN ('1140', '1143', '1149').
      IF IT_LIPS[] IS INITIAL.
        MESSAGE E000 WITH TEXT-005.
    endif.
    revert back if you need any help..
    Help us to help you, Manas

  • T.code: expiration date for a material

    Hi,
    I would like to know the expiration date for a material.
    Do you know the T.code?
    Thanks
    Dede

    As per my knowldge there is T.code to show expiry date of material.
    If material has maintained as abatches those batches has only expiry date.
    Only you can view in  material validity start.
    Edited by: Sridhar Jayavarapu on Mar 24, 2009 4:18 PM

  • MB1B: Transfer posting from material to material

    hello,
    I would like to add material validation mechanism in MB1B for transfer posting from material to material, that is we can define only particular materials can be transfer to receiving material and validate in MB1B with specified movement type, how to do this?
    Is there any thing available in standard?
    we can do this using user exit but I couldn't find any exit relevant for this scenario?
    I appreciate your earliest responses.
    regards,
    Jawed Ali

    well I have checked all these exits but none was called during the process:
                                                                                    MBCF0002            Customer function exit: Segment text in material doc. item               
    MBCF0005            Material document item for goods receipt/issue slip                      
    MBCF0006            Customer function for WBS element                                        
    MBCF0007            Customer function exit: Updating a reservation                           
    MBCF0009            Filling the storage location field                                       
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1               
    MBCF0011            Read From RESB and RKPF For Print List in  MB26                          
    MBCFC003            Maintenance of batch master data for goods movements                     
    MBCFC004            Maintenance of batch specifications for goods movements                  
    regards,
    Jawed Ali

  • Planned order not getting generated for FG

    Dear Experts,
    Planned orders not getting generated for the Finished Goods - X which is having MRP Type M0 - MPS fixing type strategy group 20 which is copied fron another FG - Y , its a new product and production plan has been updated through MC88 - Rough cut planning but the planned orders are not getting generated.
    And for the material valid production version exists with selection method 3 and individullcollective as 1.
    Please let me know what might be the possibalities and what all the key fields i need to check.
    Thanks & Regards,
    Sampath
    Edited by: sampath s on Jul 13, 2011 11:31 AM

    Dear,
    In general MPS is run for High value items ( if you use like Gold , Platimum or A class items. ).
    Always only single level is used for Explosion and planning. then only you can analyse the requirements at each stage before procurement.
    Otherwise if you run MPS to multi level, Bottom most high value will be procured without any notice to authorities. Even you may cancel the process in mid way. At that time what will happen to the procured high value material.
    So for that purpose only single item single level MPS concept is evolved.
    Fo that you run MPS at single level so that only for the first level MPS will be carried out.
    Check and revert back.\
    Regards,
    Alok Tiwari

  • Pricing condtion value of sales order is not reflects in Delivery doc !!

    Hi SAPients,
    I have an issue like my client is maintained condition record for a certain material valid from eg: 01.06.08 to 03.06.08.
    Now he has done a sales order on 03.06.08 and required delivery date is 04.06.08 but pricing date is 03.06.08. In conditions tab pricing is picking from condition record maintained for PR00.
    While doing delivery on 04.06.08, the system throws a an error like pricing error mandatory PR00 is missing and in analysis we found like condition record is missing or field overflow and displays message no:V1801.
    And Delivery document is saved after PGI.
    In Invoice the system is picking the price as on 03.06.08 as per the client requirement.
    Note: In Copycontrols VTFL we have used pricing type 'C" and Pricing Source as "E"
    Kindly suggest genuine reason to get PR00 from sales order to delivery with effect to previous pricing condition record.
    Thanks & Regards,
    kodalisreedhar
    9866033269

    Dear Jyoti
    If you want the pricing procedure to be flown into your delivery, then you have to assign in IMG where you have indicated.  Other than this, there is no other place to define.
    Of course, in billing, based on sale order, it will flow.
    thanks
    G. Lakshmipathi

  • Some key figures are not being correctly reversed in the Change Log

    Hi Experts,
    I'm working with the BI 7 (SP 15) and I have created an ODS with Overwrite option (Record Mode equal to ' ') and a Cube receiving data from this ODS.
    Whenever I have a change in one existing record in R/3 side (already previously loaded to BW), it comes perfectly to the ODS and overwrite the record in the Active Data. However, in the change log table, the before image record is not reversing all the key figures, there is one (Quant type) which is not working and it is being doubled in the cube. All the other key figures are Amount type and are working fine. PLease see below some examples of the Change Log behavior:
    First time the record comes - Change log content:
    Material   Valid Dt   Cost Value      Quantity Rec. Mode      Req. ID
    1234     May/01   $  100.00       10          'N'     1
    Second time when the record changes the Date:
    Material     Date      Cost Value      Quantity Rec. Mode      Req. 1234     May/29   $  100.00       10          '  '     2
    1234     May/01   $  -100.00       10          'X'     2
    Then the final result in the cube, after it is compressed, is:
    Material     Date      Cost Value      Quantity
    1234     May/29   $  100.00       20      
    Also, I have a Counter in the transformation to the Cube which is a constant equal to 1, it is also being aggregated erroneously. I could create a routine to check the record mode coming, but I'm not sure it is the best solution.
    Can anybody help me to figure this out, please?
    Thanks in advance.

    Hi Rajkumar,
    Actually it is a generic extractor (customized) and the ODS active data is getting the delta records correctly. After I extract from R/3 and activate the ODS, the active table has correct results, but the change log table has the problem described before. All the fields comes from one single extractor.
    The 0RECORDMODE that I mentioned is about the setting in the transformation to the ODS. You have the Technical rule group where you can set the 0RECORDMODE, in my case it is set to ' ' (blank) which means it will receive After-Images from the extractor (which I think is correct in my case). The most curious is that it is working for almost all key figures (all amount type), except for the Price Unit which is Quantity type.
    Any other ideas?
    Thanks.

  • Duplicate check for Contracts

    Dear Gurus,
    While creating Contracts, we would like to put a duplicate check for the Contracts. Currently, the system allows us to create a duplicate Contract for the same Vendor, Material, Validity period, etc.
    Please suggest if there is a way to handle this critical requirement.
    Awaiting your speedy response.
    Regards
    Ramu

    Hi
    As per SAP standard there is no check for duplicate contracts,
    But you can implement the check using the BAdi
    ME_PROCESS_OUT_CUST
    Typical applications for this BAdI include:
    Processing of own objects
    Processing of additional data on standard objects
    Implementation of additional validations and derivations
    Data changes in standard fields
    Change in field selection (also relevant to BAPIs)
    In the standard system, the BAdI is not active.
    The BAdI is filter-independent and can be used multiple times.
    The BAdI is released internally only
    In the implementation process, use the Methods
    PROCESS_HEADER
    PROCESS_ITEM
    Thanks & Regards
    Kishore

  • Mass download of gross prices

    Hi Fox,
    I am looking for a report or a transaction with which help I can download gross prices to a local file. The search criteria  should be:
    validity date
    vendor
    material
    Thanks for your feedback
    Kami

    Thanks Jeyakanthan A.
    Still I need to include the "Condition type" in the search criteria it means the input should be:
    Condition type
    Vendor
    Material
    Valid date
    and the output should be at least the prices
    /Kami

Maybe you are looking for

  • Site to site VPN - cisco asa 5505

    having VPN connection problem between 69.x.x.54 VPN 208.x.x.165. Please help. This is 69.x.x.54/172.16.0.0/16 - - A site - ASDM:6.2(1)  ASA: 8.2(1) ASA Version 8.2(1) interface Vlan1 nameif inside security-level 100 ip address 172.16.0.1 255.255.0.0

  • Error while processing Payroll

    Hi Experts, Please help... While processing Payroll getting an error. Please lower the loan repayment in IT0045. His gross pay is 13974 and there is a deduction of Rs.8120/- (including PF ESI and other loans deduction with interest amount) and Nett p

  • Sporadic no internet access in Safari, Skype works

    Hey guys, First - sorry for my poor english. I switched to Mac some months ago, i have the newest type of a Macbook pro. It is connected by Wireless Lan (100Mbit) to the internet. I have following problem: Often i cannot load a page (google.com or eb

  • AP not joining WLC via l3 network DTLS problem

    Dear All, i have a problem which is annoying me so bad! I have the scenario you can see in the attached file. The problem i have is that during the CAPWAP registration the public AP contact as I expect (option 43 dhcp) via the public interface 1.1.1.

  • Why after downloading IOS 7.0.2  One of my Apps opens magnified and I only see 1/3 of App. Whats my problem

    Why after downloading IOS 7.0.2 One of my Apps opens magnified and I only see 1/3 of the App. What have I done wrong?