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

Similar Messages

  • 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

  • Need Help for User Exit for Pricing

    Dear ABAPers
    I created a user exit for pricing where I am comparing a condition type (manually entered(ZD01)) to another condition type(YD01). If the entered value is more than the other condition type than pricing should not be updated.
    RATE = 0.
    IF KOMP-ZZVBTYP = 'C'.
    IF KOMP-PRSFD = 'X' OR
       KOMP-PRSFD = 'A'.
      IF KOMV-KSCHL = 'ZD01'.
            LOOP AT XKOMV WHERE  KSCHL EQ 'YD01'.
                  KOMP-KZWI2 = ( XKOMV-KBETR / 10 ).
            ENDLOOP.
            RATE = KOMV-KBETR / 10.
        IF ( RATE <> 0 ) AND ( RATE < KOMP-KZWI2 ).
            MESSAGE W991. "Maximum Allowed Discount Has Exceeded !!!!
            CLEAR KOMV-KBETR.
            CLEAR KOMV-KWERT.
            MODIFY SCREEN.
        ENDIF.
      ENDIF.
    ENDIF.
    ENDIF.
    It is giving me the message but it is also updating the pricing. I want not to be updated. So in place of modify screen i need to reset pricing procedure.
    I need a function module or a abap key word which can reset the pricing procedure.
    Thanks in Advance.
    regards,
    MAM

    as per i can understand you are coding in user-exits ,.. so if you are giving that
    message 'Maximum Allowed Discount Has Exceeded !!!!' type 'E'.
    i think it will work. I think there is no way to stop the processing without type e.
    regards
    shiba dutta

  • Need help in user exits

    Hi,
      I am working on purchase req. enhancement,i developed a subscreen at item level with 9 fields. the screen is coming properly.when i enter data, i have to store this data in eban table. for this i append a str with those fields.How can i update this screen data in eban table.Have to implement another exit or can i write in PBO and PAI.What's the code i have to write here.Pls waiting for your reply.
    Thanks in advance,
    Avinas M.

    Hello,
    If you are using MEREQ001 user exit.
      INCLUDE ZXM02U01                                                   *
                        Tables                                          *
    tables: eban.
    Reading current status of purchase requisition object and assigning to
    local structure
    data: s_mereq_item type mereq_item,
          s_temp type ref to if_purchase_requisition,
          s_trtyp type mepo_document.
    call method im_req_item->get_data receiving re_data = s_mereq_item.
    assiging data to the fileds on screen
    move-corresponding s_mereq_item to eban.
    *eban-zctarc = s_mereq_item-zctarc.
    *eban-zuscno = s_mereq_item-zuscno.
    *eban-zuscit = s_mereq_item-zuscit.
    *eban-z1eldsze = s_mereq_item-z1eldsze.
    *eban-z1especs = s_mereq_item-z1especs.
    *eban-zalstr = s_mereq_item-zalstr.
    *eban-znumcc = s_mereq_item-znumcc.
    *eban-znumch = s_mereq_item-znumch.
    *eban-znumsu = s_mereq_item-znumsu.
    *eban-zinco1 = s_mereq_item-zinco1.
    *eban-zinco2 = s_mereq_item-zinco2.
    *eban-zcrnam = s_mereq_item-zcrnam.
    *eban-zzterm = s_mereq_item-zzterm.
    *eban-z1ecrrep = s_mereq_item-z1ecrrep.
    *eban-z1etelfx = s_mereq_item-z1etelfx.
    *eban-zektel = s_mereq_item-zektel.
    *eban-matnr = s_mereq_item-matnr.
    call method im_req_item->get_requisition receiving
    re_requisition = s_temp.
    call method s_temp->get_transaction_state importing ex_document =
    s_trtyp.
    export s_trtyp-trtyp to memory id 'TRT'.
    and in
      INCLUDE ZXM02U03                                                   *
                          Tables
    tables : *eban.
    data:     ls_mereq_item type mereq_item.
    *get values if PReq item exists
    if not im_req_item is initial.
    *read item data from system
      ls_mereq_item = im_req_item->get_data( ).
    *if customer field changed
      if eban ne *eban.
    *fill field with new value
    move-corresponding eban to ls_mereq_item.
       ls_mereq_item-zflag = eban-zflag.
    *set new item data to system
        call method im_req_item->set_data( ls_mereq_item ).
    *tell the system that there has something changed on the customer tab
        EX_CHANGED = 'X'.
      endif.
    endif.
    Regards,
    Shekhar Kulkarni

  • HI I need help on USer EXits

    Please give me the soultions for this
    that how to solve this.....
    •<b>     Verify the payment terms at the company code level and sales organization level are the same before customer master changes are saved.
    •     If any changes are being made to the tax id on the vendor master, issue a warning if another vendor exits with the same TAX ID.</b>

    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    Execute the report, give the transaction you want to find user exit, and query.
    BADI
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    Please do reward if useful
    Regards
    Dinesh

  • Need Help on User exit

    Hi,
         this is my requirement: When  create a shipment (VT01N ) transaction code , i need to do some calucation and finally update into field (VTTK-EXTI1). but it is not updating: iam using FM exits :EXIT_SAPLV56U_004 and EXIT_SAPLV56U_005.
    data is coming into internal table , but not upating into field.
    please help me.

    Hi Chandra - you are not providing much info for someone to help you. Which tables are you populating? Are you populating the UPDKZ with a "U" in the I_XVTTK table?
    Andy

  • NEED VL02N VL09 USER-EXIT FOR DELIVERY COMPLETE INDICATOR IN PURCHASE ORDER

    I NEED VL02N VL09 USER-EXITS FOR DELIVERY COMPLETE INDICATOR IN PURCHASE ORDER POSITIONS.
    F.X: IF POST QUANTITY 10, BUT PURCHASE ORDER POSITION QUANTITY 30, I NEED AT ANY CASE TO SET DELIVERY COMPLETE INDICATOR FOR RELEVANT OUTBOUND DELIVERY AN P. ORDER POSITIONS.
    THANKS/

    Hi Malka,
    It's possible set the system to mark automatically the delivery completed indicator.
    First you need to set the under delivery and over delivery tolerances.You do this in customizing:
    Materials Management under Purchasing -> Material Master -> Define Purchasing Value Keys.
    Once you set this, you can insert this value keys on Material Master Record for the materials.
    When you create the PO with a material with this value keys set the system will check the under delivery and over delivery set on customizing.
    In customizing you also have the option to let the system mark automatically the delivery indicator based on delivery tolerances set.
    In Customizing for Inventory Management and Physical Inventory under Goods Receipt -> Set Delivery Completed Indicator, you can determine for each plant whether the system automatically sets the delivery completed indicator for delivery quantities within the underdelivery and overdelivery tolerances.
    You can test setting the under delivery for 0 (with a warning message) and see if the system will only mark delivery complete only for over delivery.
    You can also work with the following Badi: MB_GOODSMOVEMENT_DCI. This Badi also allows custom logic for setting the delivery completed indicator in a PO item.
    Message: M7 433 (The "delivery completed" indicator is set for the purchase order item)
    Regards,
    Rodrigo

  • Help needed in Substitution & User Exit.

    Hi Experts,
    I have a peculiar recuirement. In the <b>Vendor Invoide Creation</b> transaction (<b>FB60</b>), if you try to create a Invoice/Credit memo for a "<b>One Time Vend</b>or", a pop up window comes asking Bank and Address data.
    The user need to enter the bank key and acc no and  need to substitute the name, address fields in this pop up window screen, with some data fetched from custom DB tables according to the bank keys.
    Since the pop up screen fields are from structure BSEC, I cant really do the substitution them from OBBH (Since it only allows BSEG & BKPF fields to be substituted !! ).
    Also since the Only user exit (ZXCPDU01) avaliable in FB60 does not have any Export table, I can send the values back to the screen.
    <b>Can any one of you by any luck have a feasible solution for this ?</b>

    hi Saurav.
    there are 14 user exits in thsi transaction. these are as follows
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    check if anyone of them meets ur requiremnt
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Help needed in "V45A0003" User Exit

    Hello All,
    I have one problem doing Userexit "V45A0003" for VA01.
    I want to disable one field in VA01 Screen no. "4900" when order type is "RE". I try mentioned Exit for the same and i am able to disable that field for all order type but i am unable to get order type value and unable to disable field, so i want your valuable help to get the order type value given at very first screen (101) of VA01.
    So, Please i request all of you to help me in this.
    Thanks & Regards,

    Hi,
    If you want to get the Sales order no in your exit you can make use of below code.
    data:wa_vbak type vbak.
    field-symbol <FS> type any.
    ASSIGN (' (SAPMV45A)VBAK') to <FS>.
    If sy-subrc eq 0 and <FS> is assigned.
    wa_vbak = <fs>.
    endif.
    Now in wa_vbak-AUART you will get the sales order type given initial screen of sales order.
    You can also use below form in User exit include MV45AFZZ for your requirement.
    FORM userexit_field_modification.
    ENDFORM.
    Here you will all sales order data and no need to use above field symbol assignment to read vbak data.
    Regards,
    Pawan

  • 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

  • Needs R/3 User-exit help when PO/PR created in Backend system

    Hi SRM/MM Experts,
    We are using ERP2005 and SRM 5.0 with classic scenario. Shopping cart converts the Purchase Requisition and Purchase Order in the backend system.
    R/3 system had a custom logic to blank out the Account assignment category, cost center information when particular material group(ZZZZ0001), plant(Z0001) and storage location(Z01) used in the PO/PR that are created by SRM SC. The custom logic is used in user-exit- EXIT_SAPLMEWP_002- INCLUDE ZXMEWU06 and
    EXIT_SAPLMEWQ_001-INCLUDE ZXMEWU04 of R/3 system. But now this custom functionality is not working. And I found out that when PO/PR is created by SRM’s SC, include- ZXMEWU06 & ZXMEWU04 are not being called.
    In which user-exit we should put custom logic in the R/3 system, so that it will be called for blanking out the Account assignment information, when SC is converted into PO/PR in the backend system
    Thank you!
    MP

    Disha,
    I figured out that we have to use user-exit:EXIT_SAPL2012_003 in R/3 system. Now here is what I am doing... If it is at non-stock material and it uses account assignment category-K and Cost Center-Z1000001, then I am blanking out the POITEM-ACCTASSCAT and POACCOUNT-DELETE_IND = 'X', but still it is not blanking out or deleting the account assignment information from PO.
    Please let me know if this is the correct BADI to use to blank out the account assignment information in PO created by SC(SRM 5.0) in ECC 6.0. If yes, what should I need to do to blank out the account assignment information.
    Any help is appreciated!
    Thanks!
    MP

  • 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.

  • 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.

  • Need to find user exit for Auto TO creation

    Dear SAP WM experts
    I need to filter the TR getting converted into TO automatically
    I can see, in configuration, that an exit is suggested for the same:
    This configuration refers to OMKZ transaction, package LVSC
    When I search using the same in SMOD, I do not get any entries
    Any help would be appreciated!
    Thanks
    Yogesh.

    Hi Yogesh!
    For "Automatic TO creation (background processing)", the following user exits are available:
    MWMTOAU1 Selection of requirements for automatic creation of orders.
    MWMTOAU2 Reference number assignment.
    MWMTOAU3 Selection of posting change notices for automatic creation of transfer orders.
    See Develop User Exits for Warehouse Management - Warehouse Management - SAP Library
    My guess is, that the MWMTOAU1 user exit is the one you are looking for.
    The SAP documentation says:
    "With this user exit, you can select transfer requirements for the
    automatic TO creation according to your own criteria by means of report
    RLAUTA10."
    Best Regards!
    Tim Lutz

  • 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

Maybe you are looking for

  • SSAS Error

    Hi 1) Errors in the OLAP storage engine: A duplicate attribute key has been found when processing: Table: 'dbo_Dim_x0020_Document_x0020_Type', Column: 'Item_x0020_No_', Value: '1100'. The attribute is 'Item No'. How can I resolve this on package leve

  • I asked recently to find my lost songs and was helped to find them in iTunes Media. So ok how do I get them back onto my iPod

    I was  helped by the communty to fid my missing songs (marked with an ! in the iTunes music library) and I have now located them in iTunes Media, but how do I get them back onto my iPod 

  • Printer Profiles Help Please

    Hi all, hoping to get a bit of help understanding printer profiles, the benefit of using them, how I know which profile to use etc etc. Would obviously like to get the best prints I can and if changing these setting will help it makes sense to get to

  • Client Proxy Error in UAT System

    Hi, I am having a Client Proxy - PI - File Scenario. The Client proxy is working perfect in Development and Test system, but its raising exception "CX_AI_SYSTEM_FAULT" in UAT system. Please advice. Is there any setting/configuration missing. Thanks,

  • Pro Rate Monthly Values

    Worked on variations for a while and now seek some help. My Time Dimension Time --FY07 ----Qtr1-07 ------Jan-07 --------Wk1-07 ----------01/01/2007 ----------01/02/2007 --FY08 ----Qtr1-08 ------Jan-08 --------Wk1-08 ----------01/01/2008 etc. Forecast