Help in User Exit MV45AFZB

Hi,
We have a User Exit for SO, MV45AFZB.
We want to insert a condition in it that when we change the plant, new pricing should be carried out..
Please let me know where i should check the condition, in Form  USEREXIT_CHECK_VBAP or Form  USEREXIT_NEW_PRICING_VBKD... because plant shows in VBAP table and pricing table have another...
what should be code for this...
Regards...

Duplicated post?
[Problem in User Exit MV45AFZB - USEREXIT_NEW_PRICING_VBKD;
Regards,
Andrea

Similar Messages

  • How to disable DELETE option in user exit MV45AFZB

    Hi All,
    Can u please suggest on this req,I  need to modify the user exit MV45AFZB form USEREXIT_CHECK_XVBAP_FOR_DELET   needs to be modified to not to allow an order item or an order for division (spart = 80) to be deleted.
    Thanks,

    Hi, malleshanthi.
    Please, refer to this link:
    [http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm]
    User-Exits in program MV45AFZB
    USEREXIT_CHECK_XVBAP_FOR_DELET
    In this user exit, you can enter additional data for deletion of an item. If the criteria are met, the item is not deleted (unlike in the standard system).
    You can also insert enhancement implementation:
    FORM USEREXIT_CHECK_XVBAP_FOR_DELET USING US_ERROR
                                              US_EXIT.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2) Form USEREXIT_CHECK_XVBAP_FOR_DELET, Start                                                                                A
    * Example
    * IF US_ERROR NE SPACE.
    *   MESSAGE ......
    * ENDIF.
    * IF .......
    *   US_EXIT = CHARX.
    * ENDIF.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_CHECK_XVBAP_FOR_DELET, End                                                                                A
    ENDFORM.
    Best regards,
    George Shlyahov.

  • Need help for user exit mereq001

    Hi,
    I need help for user exit mereq001. I think I messed up with include table CI_EBANDB and CI_EBANMEM. And When I tried to check the syntax . It gives me error like : <b>Class IF_PURCHASE_REQUISITION. Inconsistency in the dictionary for the structure mereq_item_s_cust_data.</b> Anyone had experience for this exit? I just need to extract costcenter information of the each item from the requisition and block the requisiton if the costcenter are differents from each other before the requisition is saved. Any one has idea about it?
    Thanks.

    biao,
    Have you checked this struture consistency from SE11. Also check the activation log.
    If there are any errors and you are not able to rectify the same use RSDDCHECK program, give your table name and run the report.
    This will list down the error structures releated this table and also prompts for you to activate it.
    Regds
    Manohar

  • Urgent Help in User-Exit for MM!

    Hi,
    1.  I am writing code in the Exit "EXIT_SAPLMGMU_001".
    2.  I have to pop-up error/warning messages for incorrect data entered in various fields/screens/views of MM01/MM02 transaction.
    3.  The Exit gets triggered when i press "SAVE" after modification.
    4.  When I create the Classification View, i enter the class type as "001" for material class.
    5.  Then i need to enter a value "Z_Product" in the class column(on the screen in classification view). This class is the "Product Class" (description).
          My problem is to find this value that i enter on screen before "Save" i.e. when i am creating material for the first time in MM01, i dont want the error message to pop-up if i am entering any value in the class column and  also entering values in the internal characteristics for that class.
          Basically i want to read the values (before "SAVe") entered in the class column as well as want to know the values for the internal characteristics of the class.
          For Class, the std. field is "RMCLF-Class" , but i have no buffer field available in my exit that contains the value for the Class. I have also tried using "Get parameter ID", but it doesnt work.
          For Internal Characteristic values (of the class) that are entered in the tab(that appears on pressing "Enter" after filling the Class value) below the Class tab, i am fetching data from std. table AUSP to check for corresponding entries for that particular material number....but this table will get updated only after "SAVE" and so i would be able to read the values only in MM02.
    Please help me in finding out a way for reading the class values & Characteristic values in my user-exit.
    Thanks & Regards,
    Tejas

    Hi Ronak.
    You can try with <b>'EXIT_SAPLCLFM_002'  (CLFM0002)</b>. This is the exit for the classification view. You can get this for the transaction CL22N / CL24N.
    This is also called in MM01 for classification values. This classification details are cross application components. So This is also called from other transaction.
    Regards
    Rusidar.

  • Help on User Exits with example needed

    Hello Experts,
    Need help/material on:
    1)Understanding Advanced Customization (VOFM, User Exits)
    2)Calculating Freight Charges
    3)Integrating Credit and Payment Cards
    4)Interfacing with Other Modules (MRP, AR)
    5)Using Batch Delivery Processing
    Regards
    Innova

    Hi,
    There are a number of techniques SAP have used over the years to implement user-exits.
    The most recent exits will be found in CMOD. Using CMOD (or SMOD), you can list all the enhancements available, that use this technique. As  usual in the SAP world, the later the version of SAP you are using, the more exits are available.
    Other exits do not use the enhancement technique. For example, in Sales Order Processing (SAPMV45A), SAP have provided empty forms, such as USEREXIT_SAVE_DOCUMENT_PREPARE that can be used to provide customer functionality. With one client, this was used to set the blocking indicator on a sales order, if a manual change had been made to pricing. The requiredscript is written in between form and end form.
    Another technique is the use of validation and substitution rules in the financial modules.
    The best way to find the user exits available is through the IMG. The relevant nodes will take you to where the customisation can be performed. Usually, the associated IMG note details the use of each exit, though there are gaps.
    Award points if helpful.
    Message edited by
    Mohan

  • ABAP help in user exit variables

    Hi,
    In the selection screen of a query, I have an optional variable CalenderMonth (SOMONTH). I have to calculate another user exit variable (CALMONTH) in ZXRSRU01 by using this SOMONTH. This is how. If the value SOMONTH is entered, then I need to assign SOMONTH to CALMONTH. If SOMONTH is not entered, then I need to set CLAMONTH to current calender month from system date.
    For that, I need to check if SOMONTH is entered or not in the program ZXRSRU01. This is what I am trying to do, and is not working.
    WHEN 'CALMONTH'.
        If I_step = 2.
          Loop at I_T_VAR_RANGE into LOC_VAR_RANGE
                 Where VNAM = 'SO_MONTH'.
           IF LOC_VAR_RANGE-LOW IS INITIAL.
            ELSE
           ENDIF.
    <b>PROBLEM:</b> The statement "IF LOC_VAR_RANGE-LOW IS INITIAL." is not working. When I try to debug the code, program aborts at that line. By this line of code, I mean to check if SOMONTH is initial or not.
    Any suggestions or ideas very much appreciated.
    Thanks alot
    John

    Hi
    When I have tried something similar to this (in BW v3.1), and the (optional) variable I am reading from is not populated by the user; in STEP 2 table I_T_VAR_RANGE does not contain a record for it. Hence, the logic I would use is:
    CASE I_VAM.
    WHEN 'CALMONTH'.
      IF I_STEP = 2.
        READ TABLE i_t_var_range INTO loc_var_range
        WITH KEY vnam = 'SOMONTH'.
        IF SY-SUBRC = 0.
          loc_range-low = loc_var_range-low.
        ELSE.
          loc_range-low = sy-datum+4(2).
        ENDIF.
        loc_range-sign  = 'I'.
        loc_range-opt   = 'EQ'.
        APPEND loc_range TO e_t_range.
       ENDIF.
    Hope this helps.

  • Help needed: user exit for CO02

    I have a problem with user exit. I need to display an error message when the quantity of a specific component of a material is changed in CO02 and user hits save button.
    I inserted my code in include program ZXCO1U01. Based on the material type if the user changes the quantity I will display a message. But the problem is the documentation shows that we can’t insert a error message in this exit. It’s giving a dump if I do that.
    I am calling a new screen to display a message but if I try to execute CO02 again for the same order its displaying error messages as that component will remain locked.
    Please help me regarding this.
    Thanks

    Hi Bobby,
    We had similar issue and we have added a code to send an e-mail message to the user is any error occurs.
    You can't insert an error meesage in this user exit.
    Lanka

  • Help in user exit and enhancement

    hi expects,
            can any body help me by providing me the enhancement and user-exist material.please help me

    Hi Santosh
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    Example:
    The program for transaction VA01 Create salesorder is SAPMV45A
    If you search for CALL CUSTOMER-FUNCTION i program
    SAPMV45A you will find ( Among other user exits):
    CALL CUSTOMER-FUNCTION '003'
    exporting
    xvbak = vbak
    xvbuk = vbuk
    xkomk = tkomk
    importing
    lvf_subrc = lvf_subrc
    tables
    xvbfa = xvbfa
    xvbap = xvbap
    xvbup = xvbup.
    The exit calls function module EXIT_SAPMV45A_003.
    *2. How to find user exits *
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    *3. Using Project management of SAP Enhancements *
    We want to create a project to enahance trasnaction VA01
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an enhancement can only be used i 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project.
    Goto transaction VA01 and craete a salesorder.
    Note that Sold-to-party now automatically is "2155"
    for more information.
    try out with this links:
    [http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm]
    Hope answered your question.
    Reward if helpful
    Thanks
    abdul

  • Help in user-exit

    Hi
    i use transaction vl10g - to create delivery
    i want when the delivery create to update table vbuk
    i didn't find any user-exit on create or save
    Can you help me
    Thanks
    have a nice day

    Hi Yossi,
    Check out the following if works:
    V50Q0001
    V50PSTAT
    Ashven

  • Require help on User Exit for t-code VA31

    Hi All,
    I have a requirement of updating one of the fields in the Customer Master for selected Sold-to-party while creating or modifying a scheduling agreement.
    Is there an user exit available for doing this?
    Please help on this as early as possible.
    Thanks,
    Hema

    Exits for the tcode VA31 are
    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
    Regards
    - Gopi

  • Help on user exit (credit limit blocking)

    Hi,
    Currently, my user exit checks the order value in va01, va02 against the remaining credit and puts a credit block on the customer/order if the order value is higher than the credit limit.
    However, it should only take confirmed order values. For example, if the user entered 10 qty, but only 1 qty exists, then only 1 of the values should be considered when it against the credit limit.
    Please help.
    Thanks,
    John

    Hello John,
    Use MV45AFZF Include
    here look at documentation top of the form routine
    FORM USEREXIT_AVAIL_CHECK_CREDIT USING    US_VBAK STRUCTURE VBAK
                                              US_VBUK STRUCTURE VBUKVB
                                              US_VBAP STRUCTURE VBAPVB
                                              US_RELEASE
                                              US_RECHECK
                                     CHANGING CH_CHECK.
      DATA: CON_CHECK_STANDARD LIKE SY-SUBRC VALUE 4,
            CON_CHECK_NO       LIKE SY-SUBRC VALUE 8,
            CON_CHECK_YES      LIKE SY-SUBRC VALUE 0.
      CH_CHECK = CON_CHECK_STANDARD.
    CH_CHECK = CON_CHECK_NO.
    CH_CHECK = CON_CHECK_YES.
    ENDFORM.
    Thanks
    Seshu

  • Help me user exit

    Hi,
    Please help me to do coding inside this..new to user exit.
    Guide me step by step
    EXIT_SAPLRSAP_001 for Transactional DATA.
    EXIT_SAPLRSAP_002 for Masterdata Attributes.
    EXIT_SAPLRSAP_004 for Masterdata Hierarchies.
    EXIT_SAPLRSAP_003 for Master data Texts.

    Hi,
    Specification-requiremnt.
    Right now i have only a brief idea about it.
    I need to get the information regarding the coding side.
    Thaks and regards

  • Help with User Exit

    Hello,
    I am and include within a user exit and what i am trying to do is:
    populating a field that shows up in a screen popup. transaction is iw32 for which the program name is different than that of the screenvalue that im trying to populate. in iw32, in components tab, i add a component and then i get a popup to populate the purchasing group field and this is the field that i am trying to put a default value into so that I do not get prompted. Please help.
    Thanks.

    Hey Jasmeet
    You can definitely get the values of RESBD in this exit. Please use the code below to get the resbd-ingrp value from the screen:
    DATA:l_field(60)         TYPE C        VALUE '(SAPLCOMK)RESBD',
              ls_resbd          TYPE resbd. 
    FIELD-SYMBOLS: <fs_resbd>          TYPE ANY.  
    *Fetching the Component Item from the Screen. This is for read-only
    *purpose and content should not be changed.
    ASSIGN (l_field) to <fs_resbd>.
    if sy-subrc eq 0.
        ls_resbd = <fs_resbd>.
    UNASSIGN <fs_resbd>.
    endif.
    Now you have all the values in the structure ls_resbd and you can easily set the value for ingrp according to your conditions.
    Hope this helps. Let me know if this is what you want.
    cheers
    shivika

  • Ugrent help. User exit- Read data from BW BPS layout and write to ODS

    Hi,
    I am new to BW BPS and have a req. where i need to read data from BPS layout (EXCEL) and write it to ODS.
    Is there any function module or user exit which read data from excel layout and upload it to ODS. Or can any one help me out how can i write a code for this.
    It is urgent and i need your help.
    Appreciate any kind of input.
    Thanks
    Mamatha

    Dear Mamatha,
    read following documents. i hope it will work for you.
    [http://www.geocities.com/cynarad/reference_for_bps_programming.pdf]
    [Accessing BW Master Data in BPS Functions using ABAP ( Exit Function )|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3dcc423-0b01-0010-4382-aa3e0784b61e]
    Regards,
    Malik
    Give me points if its helpful for you.

  • Need help in user exit !!!!!

    I have two requirements like
    1.When the SAP Sales Order is shipped a SAP iDoc “DESADV” will be triggered. – Note This idoc already exists.
    2. On the generation of a Shiping Document Reversal (Trans code VL09) – and Idoc will be created
    I want to get the user exits for both the cases.

    Hi Deb,
               What are U trying to achieve, are you sending a notitification to the customer of the shipment. If so you may not have to go through a user exit but will have to setup idoc processing for the same by the customer. Same will be true for credit memo. Look at WE20,SALE or under sap menu-> Tools->ALE.
    Thanks
    Deep

Maybe you are looking for

  • How to use ipod touch when I already own an iphone on one computer?

    I have a dilemma. when I try to setup my brand new ipod touch I got for xmas, it says i must setup it up as new device or restore from backup. the problem is I use this computer to sync to my iphone 3gs. itunes wont let me sync to an ipod touch and a

  • How can you create a screen width slide show?

    I have created screen width images that resize depending on the screen resolution using the fill option. However, when I use any of the slide show widgets and size them to the edge of the site, it doesn't fill the screen width on the live mode. It al

  • RAW import from Canon 40D to Elements 4.0

    I have a Canon 40D camera, and still use PE 4.0. I am unable to import my raw files - help! I have downloaded and installed the camera raw 3.7 plug-in. What am I missing? Any advice welcome. Many thanks...

  • F-20 Reverse Bill Liability

    Good Morning, When using T-code F-20 Reverse Bill Liability open items which were migrated from legacy system aren´t available. The bill of exchange open items that are available are those generated from the payments made at current system. Is it pos

  • Album to Book - only takes 1st pic in Album....

    Hi - i'm trying to create a book using the pics I've selected into an Album.  Everytime I hit "create book" it only includes the first picture within the Album.  Is there anyway to select the entire Album ?  I have iPhoto 08, so due for an upgrade, b