User exit called many times

Hello Friends,
I am writing a particular code in a user exit of the FM  IDOC_INPUT_MATMAS01 , the problem is that the user exit is called some 4 times in the program and my logic gets repeated 4 times . Is there any way to over come this ?
Comradely ,
K.Sibi

Hi Sibi,
You can put a check based on sales/purchasing organization (VKORG) for which  IDOCs are processed.
Or, you can put a validation check  on
1) partner type & partner number,
2) message type,
3) idoc basic type & extension,
before executing your user exit code.
Also Check the link below:
Creating Idoc filter for MATMAS
Regards,
Nisha Vengal.

Similar Messages

  • User Exit at the time of saving Prod Order.

    Hi All,
              I need to know whether there is any exit which gets called when I save the Production Order.
    In our project Serial No as well as Production Order gets created when we save the Production Order.
    I have to pass "Basic Start Date" to a FM which generates Serial No.I can hit some DB table if i know
    Planned Order no at the time of saving of Production Order.So i want the user exit at the time of saving Prod Order
    I have also tried one program which gives all the User exits for a certain Transaction.But the user exit mentioned in that is not getting called.
    Thanks in Advance,
    Saket.

    hi,
    check this exit for production order by placing a break point in it.it will work .
    PPCO0007                         Exit when saving production order
    exit name : EXIT_SAPLCOZV_001

  • In ST03 , how can i see the Query name, user id,how many times executed the

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    EX:-if there is one report name X,I want to know how many users had executed X report today,weekly,monthly.
    ex:-query userid total number of execution
    sales order 0000555 5 times
    custmer 05855 2 times
    fast reply will be appreciated,

    Hi,
    Look here:
    http://help.sap.com/saphelp_nw04/helpdata/en/3b/54df4204892a78e10000000a155106/frameset.htm
    Also check these:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b8be3befaefc75e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/25/ece73a39e74d27e10000000a114084/frameset.htm
    Hope this helps..
    Bye
    Dinesh

  • In ST03 , how can i see the Query name, user id,how many times .

    HI Experts,
    In ST03 , how can i see the Query name, user id,how many times executed the query.
    these details how do i get from the above transaction.
    Points will be awarded.
    BR
    sivs

    Hi Siva,
    Reporting statistics data is only written to the database table if BW statistics have been manually activated for the corresponding InfoProvider first. If this has not been done, it is therefore not possible to display any reporting statistics in transaction ST03.
    Therefore activate the reporting statistics for all relevant InfoProviders. To do this, set the OLAP flag in the BW Administrator Workbench (transaction RSA1) in the area Tools ® BW Statistics for InfoProvider.
                    Check here...........
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/86df4254d81e1fe10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    Hope this will help you shiva.........
    Regrads,
    Vijay

  • User Exit at the time of activity saving

    Dear all,
    I want to update activity constarints & date based on some logic & want to ensure that at the time of activity saving logic should triggered. I want to use user exit for this.Validation/ substitution is also one option but does not seem feasible. if you know any user exit at the time of activity saving, please share with me.
    Regards,
    Ashok Sangal

    You requirement is to check the constrain based on scheduling . THere  is not user exist I believe that may exaclty address your requirement.  THan also check below two user exit.
    CNEX0028  Check activity release
    CNEX0029  Check network release
    Ideally yhou should chekc for hte some BAPI for hte network save will help you .
    Regards
    Nitin P.

  • User exit call customer function 002 is not getting trigerred

    Hi
    I am using the user exit call customer function 002 in the function module idoc_input_proact to trigger and idoc.my problem is that the user exit is not geting triggered.
    please help me gurus as this the last day for finishing thw work.
    regards,
    Asish dash

    it means tthat, u are applying a wrong exit in the pgm.
    try to once again search for the suitable exits for your program.
    try this:
    how to find the customer exits for a particular transaction
    check out the pgm in this thread:
    Re: Find User Exits
    regards,
    padma

  • My creative cloud window is blank i have called many times to get ti fixed it works for a week then comes up blank again

    my creative cloud window is blank i have called many times to get ti fixed it works for a week then goes blank i need help

    Chuck Palmer what steps have you utilized to resolve the issue previously?  You mentioned you were in contact with our support team.  Do you have a case number which I can reference to review the notes?

  • How to find the user exits called at the time of posting the IDOC?

    Hi,
        Could anyone please how to find the user exits while posting a idoc?

    Hi,
    One way to ahive this is by, be ready with IDOC postiong,
    then go to ST05 transaction and activate the trace after checking Table Buffer Trace.
    Now post the IDOC then deactivate the trace.
    Now come back to ST05 and display trace and search for calls starts with EXIT_.
    Regards,
    Manoj Kumar P

  • Packing data at delivery user exit or BADI time

    I create a delivery and enter associated packing data (handling units HU), then save the delivery.  At user exit time, the delivery header is available via XLIKP and the delivery items are available via XLIPS tables, but the packing data is not! 
    Now, program SAPMV50A has a table called CVEKP, whose structure is VEKPVB, the handling unit header, but this table is always empty.
    I thought I had a solution: instead of putting my custom logic in user exit MV50AFZ1, I tested putting my logic in the "Delivery Publish" BADI.  Supposedly, this one is executed after the commit work, and so I could then read table VEKP directly and get the handling units. No such luck!  Unfortunately, at the time the BADI is executed, the VEKP table may or may not be updated.  Even adding the WAIT option wasn't 100% effective.
    But these attempted workarounds still leaves the big question unanswered: "Where are the handling units data stored during execution of transaction VL01 or VL02"? 
    Anybody know?

    which BADI u have seen ?
    what abt ur requirement ?
    Regards
    Prabhu

  • User Exit called when online ATP check with GATP

    Hi Guys,
    I got requirement as below,
    Manipulate the GR time defined in the unloading point when the ATP confirmation of sales order is done with GATP online.
    I noticed that the online GATP check from R/3 to APO is not going via normal CIF way of communication or at least even i de-registered CIF queue monitoring, the data transfer can still go through properly.
    There are two questions popped up:
    1. Any body knows the background routine how the data are transferred between R/3 and APO when online GATP is done, and how to debug this process?
    2. Which functional module or exit user is called when online GATP check is done from R/3 sales order?
    If anyone knows something you are also welcome to share your expertise!
    Thanks!
    Tony

    hi! Tony
    These are the Exits in online GATP
    EXIT_/SAPAPO/SAPLATPT_001      APO ATP: Set ATP Segment                           
    EXIT_/SAPAPO/SAPLATPT_002      APO ATP: Select Substitutions                      
    EXIT_/SAPAPO/SAPLATPT_003      APO ATP: Initialize ATP Controller                 
    EXIT_/SAPAPO/SAPLATPT_004      APO ATP: Check for the Existence of a Location Alias
    EXIT_/SAPAPO/SAPLATPT_005      APO-ATP: Handling of Data at End of Check          
    Regards
    Vaibhav Sareen

  • BADI OR USER EXIT AT THE TIME OF SAVING THE TCODE MIGO TO UPDAT FIELD LSMNG

    Hello Guru,
    I am using BAPI  BAPI_GOODSMVT_CREATE for GRN creation it is working fine. But i want to update DELIVERY NOTE QUANTITY (LSMNG) at the time of GRN Creation . This field is not provided in the BAPI .
    What i had done i had applied BADI MB_MIGO_BADI to update this field but this badi does not call at the time of saving ( THIS BADI ONLY CALL WHEN WE ARE USING MIGO TCODE AND ON THE SCREEN WE ARE PRESSING ENTER) . so i am not able to update the field (LSMNG).
    So i need a badi of user exit which can updates this field at the time of saving.
    there are exit which are updating other fields at the time of saving but not this one .
    Why i need the badi or userexit which will update the field at the time of saving because when we are using bapi only those badi or user exit are called which are
    used at the time of Saving.
    Kindly suggest any solution.
    Thankyou
    With Regards
    Shantanu Modi

    Hi
    <b>Here is the sample code...</b>
    method if_ex_mb_migo_badi~post_document .
      data: ls_migo_badi_example type migo_badi_exampl,
            lt_migo_badi_example type table of migo_badi_exampl,
            ls_extdata type migo_badi_example_screen_field,
            ls_xmseg   type mseg.
      field-symbols: <gt_extdata> type migo_badi_example_screen_field.
    * Transaction MIGO will now post a material document.
    * Any errors here MUST be issued as A-message (better: X-message)
    * Copy data from material document into internal table
      loop at gt_extdata into ls_extdata.
        if g_cancel is initial.
          read table it_mseg into ls_xmseg
             with key line_id = ls_extdata-line_id.
        else.
          read table it_mseg into ls_xmseg
             with key smbln = ls_extdata-mblnr
                      smblp = ls_extdata-zeile
                      sjahr = ls_extdata-mjahr.
        endif.
        if sy-subrc is initial.
          move-corresponding ls_extdata to ls_migo_badi_example.
          move-corresponding ls_xmseg   to ls_migo_badi_example.
          append ls_migo_badi_example to lt_migo_badi_example.
        endif.
      endloop.
    * The data from external detail screen can be saved now:
      check gt_extdata is not initial.
      call function 'MIGO_BADI_EXAMPLE_UPATE_DATA' in update task
        tables
          it_migo_badi_example = lt_migo_badi_example.
    * The data from external header screen can be saved now:
      move-corresponding is_mkpf to gs_exdata_header.
      call function 'MIGO_BADI_EXAMPLE_UPDATE_HEAD' in update task
        exporting
          is_migo_badi_header_fields = gs_exdata_header.
    endmethod.                    "IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Dumb question about E messages generated in user exits called from dialogs

    After a user enters goods receipt info in MIGO and hits POST, there is a user exit (EXIT_SAPLIE01_007) which receives a copy of the goods receipt table (xmseg) from MIGO and lets you do whatever you want before the MIGO update task is called.  In other words, you're still in the MIGO dialog process.
    I have successfully used this exit before to pop an editable ALV that lets the user enter custom data per line item, and then store this data in memory so it can be accessed in MB_DOCUMENT_BADI or in the equivalent XMBC exit (enhancement MB_CF001).
    But here's my question.
    Suppose I generate an "E" message in EXIT_SAPLIE01_007. 
    Will this stop the MIGO "POST" so that the update task isn't called?
    And will the text of the "E" message be displayed at the bottom of the main MIGO screen (the one you hit "POST" from) ????
    Edited by: David Halitsky on Feb 21, 2008 9:03 PM
    Edited by: David Halitsky on Feb 21, 2008 9:04 PM

    Hi David,
    it seems that you will get it:
    E in Status bar
    +behaviour:     +
    PAI processing is terminated, and control returns to the current screen. All of the screen fields for which there is a FIELD or CHAIN statement are ready for input. The user must enter a new value. The system then restarts PAI processing for the screen using the new values. Error messages are not possible in POH or POV processing. Instead, a runtime error occurs.
    according to help [http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm]
    best regards,
    Wojciech

  • Is there a user exit called when a module pool program is launch ?

    Hello,
    I know the exit 'EXIT_SAPLSABE_010' and it's very usefull for adding code before a report is launch.
    But this exit is not called when a program is a "Module pool" type.
    Is there a way to add my own code before this kind of program is launch ?
    Thanks in advance,
    Simon
    Edited by: Simon Desbonnets on Mar 9, 2010 2:23 PM

    Thanks for your answer.
    No it's not for initializing values. It's for logging statistics into a specific table (program name, date ...).
    The event "load-of-program" can be use for one program, it's not what I'm looking for.
    I would like to know if there is an exit that is called each time a module pool program is executed.

  • R/3 User Exit Call from ITS

    Hi ,
    In an user exit i want to find out if a call has been made from ITS ..
    is there any FM or system variable set.. based on which I could find out ?

    call function 'ITS_PING'
           exceptions
                its_not_available = 1
                others            = 2.
      if sy-subrc eq 0 .
    ******* called from ITS
    else .
    **** not called from ITS
    endif .
    Raja

  • User exit at the time of saving purchase order

    Hi experts
    There are some plants for which we need to auto GR. Is there any user exit available which will check these plants in PO at the time of saving PO document and do auto GR.
    Regards

    Enhancement                                                                               
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance    
    MM06E001                                User exits for EDI inbound and outbound purchasing documents   
    MM06E003                                Number range and document number                               
    MM06E004                                Control import data screens in purchase order                  
    MM06E005                                Customer fields in purchasing document                         
    MM06E007                                Change document for requisitions upon conversion into PO       
    MM06E008                                Monitoring of contr. target value in case of release orders    
    MM06E009                                Relevant texts for "Texts exist" indicator                     
    MM06E010                                Field selection for vendor address                             
    MM06E011                                Activate PReq Block                                            
    MMAL0001                                ALE source list distribution: Outbound processing              
    MMAL0002                                ALE source list distribution: Inbound processing               
    MMAL0003                                ALE purcasing info record distribution: Outbound processing    
    MMAL0004                                ALE purchasing info record distribution: Inbound processing    
    MMDA0001                                Default delivery addresses                                     
    MMFAB001                                User exit for generation of release order                      
    MRFLB001                                Control Items for Contract Release Order                       
    AMPL0001                                User subscreen for additional data on AMPL                     
    LMEDR001                                Enhancements to print program                                  
    LMELA002                                Adopt batch no. from shipping notification when posting a GR   
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC    
    LMEQR001                                User exit for source determination                             
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt     
    LWSUS001                                Customer-Specific Source Determination in Retail               
    M06B0001                                Role determination for purchase requisition release            
    M06B0002                                Changes to comm. structure for purchase requisition release    
    M06B0003                                Number range and document number                               
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N                   
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.  
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)    
    MEETA001                                Define schedule line type (backlog, immed. req., preview)    
    ME590001                                Grouping of requsitions for PO split in ME59                 
    M06E0005                                Role determination for release of purchasing documents       
    M06E0004                                Changes to communication structure for release purch. doc.   
    M06B0005                                Changes to comm. structure for overall release of requisn.   
    M06B0004                                Number range and document number                             
    User exit for me21n

Maybe you are looking for

  • How to generate a gps signal using the PXI-5671 after generating a gps binary file using the gps toolkit

    Hi, I am trying to test a GPS receiver and would like to use the PXI-5671 to stream a GPS binary data file which was generated using the GPS toolkit. I tried using the RFSG Arbitrary Waveform Generation.vi but it doesn't work.  Is there a sample code

  • Tv screen view frozen can't get to menu

    My Apple TV is showing a frozen view of 1/2 a screen picture and the rest lines. I can reset the Apple but can never get the picture off the screen to see the menu. Have tried reset, unplugging and factory restore and still have same view on tv scree

  • "Perform X on commit" registered Form's

    Hello Gurus, i need to see while debugging, all the 'Perform X on commit' registered From's. Is this possible ? Can anyone help me ? There is a table VBLOG but the table is only used for the Functionmodules, the Form that ar to be executed at COMMIT

  • Sage's SCAFFOLDS - A developers point of view.

    The Scaffolds style layers are rocking. They allow the logical separation between function, data, and displays. And each of them have their own limb on the family tree which is well thought out and easy to preserve. There are three layers which you g

  • ORA-06553: PLS-801: internal error [55018]

    This error is returned when executing a Function with the RETURN X%ROWTYPE is used. Here is the code. CREATE OR REPLACE function FE_GET_addr ( p_PIDM IN addr.addr_PIDM%TYPE, p_atyp1 IN VARCHAR2, p_atyp2 IN VARCHAR2, p_atyp3 IN VARCHAR2, p_atyp4 IN VA