User exit is not called

hi,
In MV45AFZZ, under
FORM USEREXIT_SAVE_DOCUMENT
I implemented an implicit enhancement as follows
ENHANCEMENT 316  Zxxx_SAVE.    "active version
INCLUDE ZXXX_SAVEDATA.
ENDENHANCEMENT.
when i save the So thru VA01, this is not triggered, why ??
where as the same code if i place in
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
it is triggered. But I dont get the sales order number there !!
so i thought i will try in FORM USEREXIT_SAVE_DOCUMENT .
I need my code to get access to VBELN ..pl help..thks

Hi,
Try this..
double click on the form user exit save document...put a break-point in the "perform userexit_save_document."
Now step through in the debugging and check whether your code is hit.
Check whether your enhancement is active..
Thanks
Naren

Similar Messages

  • Variable user exit EXIT_SAPLRRS0_001 not called when I execute my query

    Hi *,
    I have created a variable in my query. Corresponding to that, I have written an exit in EXIT_SAPLRRS0_001. Wanted to debug this exit but unsuccessful.
    I put a breakpoint in  "IF i_step = 2." and started running the query. I thought that the point of execution will be hated at my breakpoint so that I can check my logic.
    But the query simply directly executes. Where is the fault ? What needs to be checked ? Is the exit being called? My debugging technique is right ?
    Will assign points for suggestible remedies.
    Regards,
    Srinivas

    Hi !
    Case 1.
    your cmod project may not be activated.
    a. Go to the cmod "editior" go to change mode and activate your code....
    b. press back button once ...
    c. continue to press activate button at every step till you come to cmod initial screen ...
    At last when you are at cmod initial screen ... press activate again ....
    This is very important as our cmod code (project) should be activated at every level ...
    Case 2.
    If it still does not work ... try using a break point just before the code segment ( case statement or if statement i.e. case 'i_vnam' etc .... ) and try to debug....
    Hope it helps ....
    Regards
    Anshul

  • User-exit EXIT_SAPLSPOR_001 not executed (filter spool requests)

    Hi,
    The default SAP functionality provided to control the output controller functions via auth. objects S_SPO_DEV, S_SPO_ACT & S_ADMI_FCD does not do what we would like to do.
    There's a user-exit available to implement some additional code: SPOOAUTH / EXIT_SAPLSPOR_001.
    I've activated SPOOAUTH via CMOD and added a record in table TSPOPTIONS (AUTHORITY, value CUSTOM) which was mentioned in the documentation of the function module.
    No other changes were made.
    However, this user-exit is not called when I start trx. SP01.In the selection screen I choose to show all spool request from all users for a specific time period. According to the documentation this should trigger the user-exit.
    Now the funpart begins:
    I've debugged SP01 and found that FM RSPO_CHECK_JOB_PERMISSION contains:
           IF INIT IS INITIAL.                   
             data: v like tspoptions-value.      
             call function 'RSPO_OPTION_GET'     
               exporting                         
                 name                = SPOPT_AUTH
               IMPORTING                         
                 VALUE               = v.        
             if not v is initial.                
    return value of v should be CUSTOM. However it is empty -> skips the user-exit.
    The check in FM RSPO_OPTION_GET contains:
    ALL 'RSPO_CACHE_CONTROL' ID 'AREA' FIELD 'OPTION'           ID 'OP'      
    FIELD 'GET'                
                             ID 'NAME'
    FIELD NAME                 
                             ID 'VALUE'   
    FIELD V.                   
    if sy-subrc ne 0.            
       perform write_trace1 using 'RSPO_OPTION_GET %s failed\n'  name. "#EC NOTEXT                     
       select single value from tspoptions into v where spoption = name.
    Field NAME = AUTHORITY
    Field V    = empty
    Return = 0 -> skips user-exit.
    Have I overlooked something?
    Any help would be welcome.
    Kind regards,
    Mark

    Hi Mark,
    Could be that the option value is being picked from cache/buffer (old value). You can restart the system and verify.
    Also, after putting a break-point in FM RSPO_OPTION_GET, you can edit the value of 'v' in debugger and set it to CUSTOM, just to check whether the user-exit gets executed in this case.

  • User Exit RV60AFZZ not Triggered When Processing IDOC

    Hi,
    I'm writing to seek some advice on why is the user exit RV60AFZZ not getting triggered when I do a vf01 bdc inside my inbouund IDOC function module. But when I try SHDB the user exit is getting triggered normally.
    Thanks,
    Mawi

    Hi,
    Yes I'm creating invoice using delivery orders, inside the idoc function module I'm using bdc call transaction vf01 but somehow it does not trigger the user exit.
    But when I do manual vf01 in sap, the user exit is getting triggered.
    I cant figure out why this is the behavior of sap.
    Regards,
    Mawi

  • Miro user exit  does not hits

    Hi ALL,
       i have implenented   LMR1M001---- EXIT_SAPLMRMP_010 user  exit, but  while miro  it does not   hit expression:
    I  put break-point  in EXIT_SAPLMRMP_010- ZXM08U16.
    I have created project in following way.
    In tcode CMOD  create project  ZMIRO.
    In enhancement  assigment   create LMR1M001.
    In exit  EXIT_SAPLMRMP_010-ZXM08U16.
    I write code.
    and activated both project and include.
    and i  set debug mode active.
    But while running miro. it does not hit:
    In miro i  am doing following operation.
          select subsequent debit.
         In Basic data tab i insert
    date.
        In Detail tab i insert Un
    planned delevery cose
        Insert
    Purchase order no.  
    And press Enter.
        After Pressing
    enter, It exutue directly without  calling user exit.
    Please help me,
    Thanks,

    Hi,
    May be this exit is not called for your scenario or the condition to trigger that exit may not have met.
    Just activate your SQL Trace and then run MIRO. Just check in the tace log whether your exit is called. Else you may use another one.
    Regards,
    Renjith Michael.

  • Can the user exit  EXIT_SAPMM07M_004 be called from an FM exit in my code?

    Hi ,
    When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.

    > When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.
    Can you call the user exit? - Yes ofcourse.... but why dont you just add the same code that is in your exit instead of calling the user exit?
    User exits are developed and called from appropriate places where sap can take the changes and apply to the transaction. there is no restriction on calling the user exit (atleast programmatically) but you need to think 100 times before you call the user exit.
    For example, you want to call user exit 'A' in your program because you want to use the code in this user exit in your program '1'. Why dont you just write the code in program '1' with what is in user exit 'A' ?
    Calling user exit in your program does not really helps. Better find out different ways. once again, user exits are embedded in sap business applications and remember they are not independent FM's as you think
    Good luck

  • 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

  • How to find if 1000 variables have user exit or not

    Hi could you please let me know  any table
    to find if a list of variables In bex have a user exit or not .
    actually i have 7000 variables and want to document if these variables have a user exit or not for Reporting Documentation
    Wuld really appreciate your help
    Thanks and regards
    Novino

    Hi,
    See following tables related to Rpeorts, so check in that tables to find the Variables and properties
    Use RSZGLOBV table and there give OBJVERS = A and VPROCTP = 3 or 4 then execute it and se eth variables, all that are SAP/Customer Exit varaibles.
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSRREPDIR Directory of all reports (Query GENUNIID)
    RSZCOMPDIR Directory of reporting components
    RSZRANGE Selection specification for an element
    RSZSELECT Selection properties of an element
    RSZELTDIR Directory of the reporting component elements
    RSZCOMPIC Assignment reuseable component <-> InfoCube
    RSZELTPRIO Priorities with element collisions
    RSZELTPROP Element properties (settings)
    RSZELTATTR Attribute selection per dimension element
    RSZCALC Definition of a formula element
    RSZCEL Query Designer: Directory of Cells
    RSZGLOBV Global Variables in Reporting
    Thanks
    Reddy

  • How do I SUBMIT from a user exit which is called in an update task?

    I want to send an idoc each time there is a goods movement. So, in the user exit of MB_POST_DOCUMENT I am calling IDOC_OUTBOUND_WRITE_TO_DB. This creates an idoc of status 30. However, in order to send the idoc I want to SUBMIT RSEOUT00. I get an ABAP dump on the SUBMIT because MB_POST_DOCUMENT is called in the update task, where SUBMIT is not allowed. Do you know any other way I can execute RSEOUT00 at this moment without having to call it later in batch?
    Thanks!!
    Joy

    Hi Naren,
    Your reply is VERY helpful!! Thank you so much.
    I added  CALL FUNCTION 'RSAP_IDOC_EINBUCHEN_VOM_BIW_4' IN BACKGROUND TASK. I am no longer getting the dump, but my idoc is still a status 03 and not a status 30. Should I expect to see it turn to a status 30? I ran this function directly in SE37 -> Test with the same parameters and it ran perfectly and turned the idoc to a status 03. Is there anything else I need to do in the code?
    Thanks again,
    Joy

  • USER EXIT MB_CF001 NOT GETTING TRIGGERED

    Hi All,
    I am using EXIT_SAPLMBMB_001(MB_CF001)
    I want it to be triggered after the document has been saved but its not trigeering..
    How can I find out the reason???
    Regards
    Shilpa

    Hi,
    have you checked documentation for that enhancement? That function module is not called after goods movement creation.
    The user exit MB_CF001 includes a function module that is called up
    immediately before the COMMIT WORK when a goods movement is posted.
    How do you test that FM? Some function modules from user exits are called in UPDATE TASK so they just ignore break points. In this case you can use the following trick. You need to enter an infinite loop into your user exit. Then you can connect to this program via transaction SM50 (Program/Session -> Program -> Debugging).
    Cheers

  • EXIT_SAPLV50E_001 User Exit is not working for multiple plants case

    Hi,
    I have to update foreign trade data in Invoice during invoice creation using VF11. For that, I have written code in EXIT_SAPLV50E_001 and updated segal value. This functionality is working fine, if I have a single plant in an invoice. But customer has scenario where they can have multipl plants in an invoice.
    For multiple plants in an invoice, this EXIT_SAPLV50E_001 is not called.
    I am unable to find another better place where in I could place my code. Please help. Remember, case in multiple plants.
    Will be rewarded.
    Regards
    Arpit

    Hi Arpit,
                   Please use below mentioned user exit in T-code VF11
    he following user exits are available for tcode VF11
    Exit Name           Description
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    J_3RSINV            Customer enhancement: Pricing
    or You can use BADI
    BADI_SD_SALES_BASIC
    BADI_SD_TO_FM
    BADI_SD_BILLING
    Regards,
        Thangam.P

  • Overhead user exit (COOM0001) not being triggered for specific plant

    Hello all,
    I was wondering if anyone came across this situation before. I activated user exit COOM0001 for overhead calculation. This user exit is triggered when I create PCE for plant A but not plant B.
    I can't figure out why it is not being triggered for plant B at all. I put a break point in function module EXIT_SAPLKASC_001, EXIT_SAPLKASC_002 and EXIT_SAPLKASC_003 and the system didn't stop in anyone of these function module.
    Any help is greatly appreciated.
    Regards,
    Cassandra

    Hi
    It seems that you are a Functional Consultant.
    Please follow the following simple step for any userexit to see where all its been called.
    1. Go To T. Code SMOD
    2. Enter the Exit name COOM0001
    3. Click on the COMPONANTS RADIO BUTTON and DISPLAY
    4. U get Function Modules
    EXIT_SAPLKASC_001
    EXIT_SAPLKASC_002
    EXIT_SAPLKASC_003
    5. Now individually double click on each FM and put a break point ther.
    6. Open a new session and see wheather it stop at the break-points of the T. code you are looking for.
    I havent used this user exit, so no comments on how it ll be use ful.
    Reward points if useful
    Thank-You
    regards
    vinsee

  • LT09 - Transfer Order User Exit is not getting trigerred though its active

    Hi,
    I am trying to assign the enhancement : MWMTO001
    ( Enhancements for end of transfer order generation )
    which contains the user exit component : EXIT_SAPLL03T_001
    I have created a project in CMOD and assigned the enhancement.
    When I execute the TCode LT09 for transfer order, I noticed that this exit is not getting trigerred ...
    I need to call a smartform whenever we save the data in the T-code LT09.
    Am i using a wrong Exit ? Please help me to find out why this exit is not getting triggered though its activated ....
    Thanking you in advance..
    Nagasubramanyam.

    Hi
    Thank you for reply.
    According to 1st scenario prgm is activated & also activated enhancement in CMOD.
    According to 2nd scenario, can u suggest how to find out the correct exit...
    Actually I written a print prgm in include of EXIT_SAPLL03T_001 & designed SMARTFORM for that...
    if I do process thru LT09 transaction & save that SMARTFORM should be triggered which is not happening...I put  break points & tried but the exit is not triggering.
    pls suggest how to find out the correct exit of LT09 .
    Thanks&Regards
    NagaSubramanyam.

  • Hi strong functional and technical,  user exit,   oss note

    HI
    Transaction codes are J1INCHLN and J1INCERT.
    for this TC, there is no user exit, but i have to use one of the fields as cheque no field i.e. in short i have to use one unused field for my purpose.
    there is OSS note for this TC and in that user exit is there. 
    i want to know the OSS note for this TC.
    what is the solution.
    thanx
    rocky

    Hi,
    General Notes
    You can execute the following commands in the transaction code (tcode) field with Enter. You will find some useful transaction codes below to work in tandem with the following commands:
    To call a transaction - In the same session (window) Enter: /nxxxx (xxxx = transaction code). - In an additional session, Enter: /oxxxx (xxxx = transaction code).
    If you enter this function before any of the tcodes below, you are able to break out of your current screen/business and begin a completely new session. Otherwise, the current business process has to be terminated, and return to the initial user screen (the main menu) has to be initiated before entering tcode spro). /o tcode saves you the effort of having to do this.
    To end the current transaction Enter: /n. Caution: Unsaved changes are lost without warning
    To delete the current session. Enter: /i.
    To generate a session list Enter: /o.
    To log off from the system Enter: /nend.
    From John O'Meara
    OSS Note 0026171 has additional information on OKCodes in SAP, and is a very useful read
    Thanks,
    Shankar

  • BAPI_ACC_DOCUMENT_POST - User Exit is not working

    Hi all,
    I need to perform a posting and pass in some field into the extension table. I have follow the sap note recomendation and created a project in CMOD using ACBAPI01 as the component. I then added the coded into the user exit. When I tried to debug it doesn't not execute the code inside the user exit. Also BAPI_ACC_DOCUMENT_POST was executed w/o any error. However when I check the system, there's no document posted.
    Also please correct me if I'm wrong. I'm not so sure what to populate for the following field in the header. Is the following correct?
      gt_docheader-obj_type   = 'IDOC'.
      gt_docheader-obj_key    = '$'.
      gt_docheader-obj_sys    = 'BGS1'.
      gt_docheader-bus_act    = 'RFBU'.
    Thanks in advance
    Ricky

    Hi Ricky and Igor,
    Rick is right: You can use userexit wherever they are provided. Many BAPIs as i.e.
    [code]BAPI_ACC_DOCUMENT_POST        
    BAPI_ACC_DOCUMENT_CHECK
    BAPI_ACC_GL_POSTING_POST      
    BAPI_ACC_GL_POSTING_CHECK
    BAPI_ACC_BILLING_POST         
    BAPI_ACC_BILLING_CHECK
    BAPI_ACC_INVOICE_RECEIPT_POST
    BAPI_ACC_INVOICE_RECEIPT_CHECK
    BAPI_ACC_GOODS_MOVEMENT_POST  
    BAPI_ACC_GOODS_MOVEMENT_CHECK
    [/code]
    are implemented including userexit (to be seen as CALL CUSTOMER-FUNCTION in coding). Only the most impotant and regularily used fields are part of the BAPI interface. If the customer makes an append to any table or structure, the handling of the additional fields does not always happen automatically in the BAPI.
    We created a User exit for BAPI BAPI_ACC_GL_POSTING_POST because the customer made extensions to the posting block.
    The additional parameter values are passed in the BAPI extension table which is a genereric character table. In include ZXACCU15 we do the transfer of values passed via extension table to table t_accit which is part of the interface of the ueserexit.
    If then BAPI is executed but it does not trigger the userexit, then you can put a breakpoint at the statement before CALL CUSTOMER-FUNCTION and see if you get there. If CALL CUSTOMER-FUNCTION is not executed, then try do de-activate the CMOD project and activate it again. This usually helps.
    For the document header I can provide you just anaother example which works for us:
    [code]  ls_documentheader-obj_type              = 'BKPFF'.
      ls_documentheader-obj_sys               = lv_logsys.
      ls_documentheader-obj_key               = '$'.
      ls_documentheader-username              = sy-uname.
      ls_documentheader-header_txt            = 'Investment Notes reconciliation'(026).
      ls_documentheader-comp_code             = ps_alv_display-bukrs.
      ls_documentheader-doc_date              = p_bldat.
      ls_documentheader-fisc_year             = p_gjahr.
      ls_documentheader-pstng_date            = p_budat.
      ls_documentheader-fis_period            = p_bper .
      ls_documentheader-doc_type              = p_blart.
    [/code]
    Hope this helps.
    Regards,
    Clemens

Maybe you are looking for

  • Trying to install iTunes 10.5 on Windows 7

    I have the 64-bit version of Windows 7 and everytime I try updating to iTunes 10.5 I get this error message: An error occurred during the installation of assembly 'Microsoft.VC80.CRT.type="1fc8b3b9a1e18e3b".processorArchitecture="x86"'.Please refer t

  • "iTunes:iTunes.exe - Corrupt File" help

    When I hook up my iPod to my computer, I run Windows XP Professional on a Dell, I get a message on the bottom righ that reads iTunes:iTunes.exe - Corrupt File The file or directory \iPod_Control\Device\SysInfo is currupt and unreadable. Please run th

  • How can i change billing and profile names?

    I want to enroll the iOS Developer Program, the one of the $99... But I'm 15 years old, and don't have an credit card, so, my father had to lend me his. But there at the forms you have to fill, they say the name has to be the same as on the credit ca

  • Problem in getting jdbc connection with oracle for win 98

    This is my code given below import java.sql.*; public class Oconnection Connection conn; Statement st; PreparedStatement pst,pstissue,pstret,pstbook; public Oconnection() try Class.forName("oracle.jdbc.driver.OracleDriver"); conn = DriverManager.getC

  • Air tunes won't play

    I was delighted how easily that my new Airport express set up with my lynsyst router. I have a much better signal here in my house away from the router. Sadly, the air Tunes will not work. I've tried: Hard reset of the airport express. Checking the s