Need a user exit before material substitution executes in VA01, 02

My client has a unique need in SAP AFS.  When entering an order, they have material substituion turned on and they want it to always execute.  The problem is that we have a custom FM that must execute prior to material substitution - it will determine the material first and then material substitiion should use THAT material to detemine if it needs to substitue a material/grid.  I have put break points in every exit I could find in the SAPMV45A exits.  The one I would normally use is in MV45AFZZ for changes for VBAP, VBEP, etc. - but no matter what exit I put a break in for debugging (to see when it is called during order entry) - material substituion always executes first.  yes, the exit for VBAK executes prior to material substition but that is at the header - I need the order lines.  Also note that we are talking about the UPC/EAN tab - we are entering a UPC code and that gets the material/grids we need - this is not on the normal order line screen.
Does anyone have any ideas?
As always - points for helpful answers.
Thanks.
Scott

Only solution was a repair to SAP, so we found way for standard SAP to handle it.

Similar Messages

  • User exit before TO creation to chage MAKTX field or FM to change it after

    Hi all,
         I need some WM Expertise help.
         When I create a Sales Order from program (with bapicreatefromdata2) , the system automatically create a delivery, and then, a transfer order with no immediate confirmation. The TO is manual confirmed. In bapicreatefromdata2 I completed on each item line the field ARKTX with a description (Example: red - material description ). This field is automatically completed in delivery( same field ARKTX). But I need this description also in transfer order for each line (field MAKTX). The TO is created automatically and  the field MAKTX is completed with the description from the material master.
         So, I need an user exit before TO creation to change the field MAKTX. I have tried user exit: MWMTO001 and is not working I think because the TO is created with no immediate confirmation. Also I putted break-point everywhere in program SAPML03T (standard program for TO creation)  and  I changed the settings in debugger mode. I checked System Debugging and Update Debugging. Nothing happened. I cannot find the place before TO is created.
         An alternative to this is to update LTAP (item table for TO) after TO immediate creation in include MV45AF0B_BELEG_SICHERN but I can't find a function module to update the table before TO manual confirmation. I tried L_TO_UPDATE_PREPARE but this I think is for confirmed TO.
         Any one who worked on this kind of things, Please help.
         Thanks in advice,
         Bogdan

    check these exits....                  
    EXIT_SAPMM06E_012 
    <b>EXIT_SAPMM06E_013</b>
    EXIT_SAPMM06E_014 
    EXIT_SAPMM06E_006 
    EXIT_SAPMM06E_007 
    EXIT_SAPMM06E_018 
    EXIT_SAPMM06E_016 
    EXIT_SAPMM06E_017 
    vijay

  • Need User Exit before the Purchase Order saved!!!

    Hai All,
        I am in search for User Exit before the Purchase Order gets saved.This User Exit should capture this generated Purchase Order and post it to the Destination System for further processing.
        Can anyone help me to find this User Exit.
    Thanks,
    Ugandhar.<b></b><b></b>
    Message was edited by: Ugandhar Domathoti

    Check out this enchancement in smod <b>MM06E001</b>
    in that EXIT_SAPLEINM_001
            EXIT_SAPLEINM_002
    may help you ....
    regards
    vijay

  • Needed a User Exit to cross-check the mtrll master at the time of making PR

    Hello Experts,
                          As per the requirement from my client I need a USER Exit in PR where before saving the PR the system should check the Material Master of every line item for the Material Type and MRP controller fields.
    for the particular combination of material Type and MRP controller, the system should propose an account assignment which could be achieved but User Exit is required.
    Please help.
    Thanks in advance
    and Regards
    Yawar Khan

    Hi Ravi,
                Thanks for the reply, I will check back.
    Regards,
    yawar Khan

  • I need a user-exit or similar to SAPMV45A (VA02).

    Hi ABAP, an older question cleared while a new one showed up.
    I have to capture a text after hitting SAVE on the TA VA02.
    The captured Text has to be stored, and somewhat later when the text has been replaced by the new materials text i have to replace it again with the original text it had before changing the material of the position.
    probabaly i even need two user-exits, one straight after hitting save, and another short before code ends.

    Hi,
    Please check this link perhaps it may help.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Regards,
    Ferry Lianto

  • PC-WQS: User exit for material valuation

    Hello,
    Currently we use data from the purchase info records to carry out material valuation of raw materials in the cost estimate. The client would like to get this data from the contracts instead of the info records since all purchase orders get information from the contracts. The second reason is that maintenance of the info record is very cumbersome and prone to errors when creating or updating the cost/ quantity.
    My question is, has anyone used the user exit COPCP005 - User exit for material valuation (strategy U) in the valuation variant and has anyone gone after the contracts to get the purchase price?
    If yes, I would like to know how you did it.
    Thanks,
    dinesh

    Can you explain a little more where you encountered the problem?
    1. Is there a Val Strategy before the Val Strat U that is probably able to find a price for costing?
    2. Is the User Exit being triggered?
    3. Can you run CK11N in the debug mode (/h) and check if the User Exit is triggered?
    4. If all of these occur, the problem probably lies in the ABAP code... check for changes in the material number range or plant codes, or the plant-specific material status - the system does not valuate if the status does not permit it to.
    If nothing works, come back with confirmation of the above and we'll go forward from there.
    Cheers.

  • User Exit for Material Plan Costs

    I have an escenario where the client needs another option to calculate the material plan costs, but need to identify the correct user exit.
    In transaction OKYF exist the option "U Valuation Price with User Exit" but need the user exit to use.
    Hope to receive information soon...
    Best Regards...

    Hi
    you can use unit costing for material option for this...
    Automatic netowrk costing for material component
    you need to maintain proper costing variant for material component in config.
    in projects assign material then select material -edit - cost - unit costing.
    which will get reflected in network cost in CJ40.
    Venkatesh

  • I need a user exit to restrict total qantity of yeild, scrap and rework on

    Hi friends
    I need a user exit to restrict total qantity of yeild, scrap and rework on CO14 (Confirmation of Production Order Detail) not more then total qantity field in CO03 (Production Order Display). Please also mention if what I am asking is theoratically right and if possible please explain a bit from the functional point of view.
    Regards,
    Anurag Jain

    I resolved it

  • User exit before the call of FM CCARD_AUTH_SIMULATION

    HI Gurus
    I wanna know if there is any user-exit before the call of FM CCARD_AUTH_SIMULATION, for the structure XVBAK.
    I want to manipulate with  the document category for that particular order before the order is saved.
    If anyone can provide me the user exit for the structure XVBAK then it will be helpful to me.
    Thanks
    Swarn

    go for implicit enhancement option.
    Reddy

  • ME51N / ME52N - need special user-exit

    Hi there,
    I'm looking for an user-exit oder BAdI in transactions for creating and changing purchase requisitions. I have to write the data of an item into the ABAP-memory EVERY TIME a new position is selected. The BAdI I found is only processed when a position has changed some data.
    But I really need the user-exit every time a position/item is displayed, also in starting the transaction directly with a purchase requisition.
    Thanks a lot.
    I DON'T NEED A BIS LIST OF ALL EXITS IN THIS AREA - THX
    Kind regards
    John

    Hi,
    Try these...
    Enhancement/ Business Add-in            Description
    Enhancement
    MEREQ001                                Customers' Own Data in Purchase Requisition
    Business Add-in
    ME_COMMITMNT_PARKING                    BAdI for Redefining Commitment Interface When Parking
    ME_MEREQ_PARKING                        BAdI Purchase Requisition: "Hold"
    ME_REQ_HEADER_TEXT                      Copy Header Text: Enjoy Purchase Requisition
    No.of Exits:          1
    No.of BADis:          3
    Arunima

  • Need a user exit to add custom partner function in sales order @ item level

    Hi,
    Need a user exit to add custom partner function in sales order at item level. Goto --> Item --> Partner.
    Thanks,
    Thiyagi

    HI Leo
      To add a condition price for a condition type, this has to be assigned in the <b>pricing procedure</b>. For each condition type in a pricing procedure, we will have <b>access sequences</b>. If we follow this approch, the price is automatically extracted basing on the access sequences when condition records are maintained. For this, no coding is required and everything can be done by configuration by Functional consultant.
       Naren is right to point out on the same.
      If you need to change the price for a particular condition which already exists, you can go by <b>pricing routines</b>. Go through transaction <b>VOFM</b> for the same. 
       I advice you to discuss with your functional consultant and understand the requirement and then go for modifying accordingly.
    Kind Regards
    Eswar

  • To differentiate in the user-exits what transaction has executed first

    Hi,
    I have a problem,
    For transactions Iw32 y iw34 EXIT_SAPLCOIH_006 user-exit  are called up  when a maintenance order is updated
    from any of two transactions.
    I want to differentiate in the user-exits what transaction has executed first (origin) because sy-tcode in both cases contains  iw32 ' because IW38 transaction calls UP always to the transaction iw32 for update of a maintenance order.
    thank´s
    Regards.

    If that is the case, and the IW32 is begin called from IW38 via some batch input mechanism, then maybe this code will work.  You can wrap your code in this IF statement.  Here we are saying that we only want to do this when the tcode is IW32 and it is not being called in batch input(call transaction) or called by another program.
    if sy-tcode = 'IW32'
      and sy-binpt = space
      and sy-calld = space.
    endif.
    Regard,
    Rich Heilman

  • User Exit BEFORE Login

    Hi experts,
    I have a problem:
    We use differerent solutions for Web Access for externals - Web Dynpro and a normal GUI, shown via WEBGUI.
    So we create a new user (SU01) for the external and he can access the system
    But this problem may appear:
    The external tries to login via OPERATOR, DDIC, SAP*,... and lock this user - system will hang up!
    Solution can be a user exit BEFORE login, so we can check the user name (OPERATOR...) and don't authorize for login.
    Is there a user exit? I know the exit EXIT_SAPLSUSF_001 - bt this one is too late (after login).
    Also it would be important to know if the login is via SAPGUI oder via WEBGUI/Webdynpro (in EXIT_SAPLSUSF_001)
    Any ideas on this?

    Hi,
    why don't you unlock the User?
    Try this:
    data: wa_return type table of BAPIRET2.
    If sy-uname = 'OPERATOR'
    CALL FUNCTION 'BAPI_USER_UNLOCK'
      EXPORTING
        USERNAME       = sy-uname
      TABLES
        RETURN         = WA_return.
         CALL 'SYST_LOGOFF'
    endif.
    Hmmm...I will try this. But I'm not sure if I will reach this point if I try to login with the wrong password?!
    Edit: I tried to logon with a wrong password (before i created a hardcoded Breakpoint in the user exit). But I won't reach this point.
    So the question is not solved. If someone tries to logon as Operator several times, user Operater will be locked. How to prevent to log on via specific users (like Operator, DDIC...) in the Webgui?

  • Need a user exit to modify the quantity schedules in a sales contract

    Hi,
      I am using ECC 6.0 with IS OIL. Need a user-exit to update the quantity schedule(table OIA05) in the sales contract VA42.
    I have a new field called timestamp in the table OIA05 which needs to be updated with the timestamp value.
    I tried the user exit MV45AFZZ in USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_SAVE_DOCUMENT to update the values. But the new values are not being reflected. Can you please help me in this regard.
    Thanks,
    Best regards,
    Ajith

    that will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
    Yep, that is exactly it.    So after the APPEND statement, simply fill the fields of the <accit>.
    append initial line to im_document-item ASSIGNING <accit>.
    <accit>-field1 = 'Blah'.
    <accit>-field2 = 'Blah'.
    Regards,
    Rich Heilman

  • Need a user exit for Export Control check in Sales Order fro VA01/VA02

    Hi ,
         I need a user exit for Export Legal Control process in Sales Order.since Ship-to country in the Sales Order is not always the ‘ultimate destination country’ User Exit needs to be built in with following logic
    1.     Check to see if ‘ultimate destination country’ field is maintained in Sales Order
    2.     If a value is maintained then for the Export control checks use ‘ultimate destination country’ instead of the Ship-To country (step 1)
    3.     If no value is maintained then use Ship-To country as default
    The user exit is called when the user creates or changes a Sales Order.
    Can anybody help ?
    Thanks

    Hi,
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    <b>Reward points</b>
    Regarsd

Maybe you are looking for

  • Loading of a JAR into Oracle 9i Database

    Development Environment for Java: JDK 1.4.2, Eclipse 3.2, JAWIN Java-COM Bridge, Windows XP. Database Environment: Oracle 9i on Windows XP. Tools - MapPoint 2006 As seen from the above environment, we make use of certain native libraries of JAWIN Jav

  • Select in SQL based on parameter

    I have a user parameter coming in that can be one of three values: REAL, PERS, REPP. If it is REAL, I need to select TOT07, if it is PERS, I need to select TOT21, if it is REPP, I need to select both fields. I also need to combine the values for thes

  • Send a link via email that will start a workflow on a sharepoint online list

    I am trying to send a hyperlink in an email that will start a workflow on a sharepoint online list. I am unable to use javascript because the end-user will be clicking this link on their mobile device. I have found many articles that get me almost th

  • Switcheasy Capsule Rebel Case

    I have been looking for a good case for my new 3GS and on the in net I keep seeing this Switcheasy case coming up. Does anyone have any personal experience with this case? It looks nice but I want to know if it provides good protection. I have also h

  • Logs to check if one webi server is down

    Hi,    We have set up 3 webi report servers in our environment. We wanted to know if one of the servers goes down, while the other two are still running, which logs do I need to check that says the server is down. Is that the webi logs or tomcat logs