User Exit Program works Differently

I'm trying to sync user info from HCM system to a destination system. There is a limitation in SAP HCM system, which allows only full load and not incrememental load or sync up based on events(New Joinee, Position change, Employee Exit) to happen from source to destination. So, I thought User exit could fix this issue.
When a person inserts or changes or changes the status of an employee to quit through PA30 and saves it, the user exit program should pass the personnel number (numbers) of the user(s) as input to the report RPLDAP_EXTRACT_IDM.
I am trying to trigger a report(RPLDAP_EXTRACT_IDM) which exports the data from HCM to a destination system(IDM) with the help of a user exit program. Using PA30 when I change the user info and when I save it, through User exit program I'm passing the personnel number of the user(whose data has been changed) as an input to the report, which inturn will replicate the change to the destination.
Problem:
            User Exit works differently here. After configuring User exit for this tcode(PA30), once I change a user's info and click save, without saving the data, it triggers the User exit program. Usaully while chanign user info, when I click 'SAVE', i get a message 'Recod changed', but now after sonfiguring User Exit program, since the program runs immediately as soon as i click SAVE, I see the following message' Successfully exported Data to the destination' . And the change that i make is not reflected.
Shouldn't the User Exit program be triggerred after the data is saved?
Is there a way where I can trigger the User Exit Program after saving the record.

Not an ABAP expert, but I remember hearing something about PAI and PBO modules and separate user exit includes depending on where you are executing it. Is it worth investigating on these lines?
Also is it worthwhile configuring Change Pointers to capture whether a change has been made instead of coding user exits in PA30. You could code uxerexits in the ALE data transfer program to analyse the data based on change pointers and transfer data pertaining to New Joinees etc.
Again I am not ALE epxert, I am just giving my views For what they are worth. For better results perhaps you should post in ABAP forum.

Similar Messages

  • How to use subroutine in user-exit program

    Hi Experts,
        I have a requirement in user-exit where i have to use some lines of code in several times. So i want to use Perform and perform inside the exit (i.e. Include ZXXX). But it is not recognizing the form part of the ubroutime and gives error.
                 Please let me know how to use the Perform and form statement in the exit or is there any way to  write repeated code once but used no of times in exit program.
    Thanks
    Ajit

    I'm sorry, I was overly harsh there. Please accept my apologies.  But I do despair sometime!
    Consider the structure of a function group and it should be clear - you need to remember that INCLUDES are just repositories of code. If you take the contents out of the include and put them into the main program, then this is what you get:
    function-pool xrsr.        
    * Global data definition.
    function exit_saplrrs0_001.
    * the source code within the zxrsru01 include.
    endfunction.
    Now, what you're trying to do, is create a form in your include. You can't do that, because you end up with:
    function-pool xrsr.        
    * Global data definition.
    function exit_saplrrs0_001.
      perform xyz.
      form xyz.
      endform.
    endfunction.
    And you can't have a FORM defined inside a function module definition. The solution is to put it outside the function module. If you follow the process suggested above, you end up with
    function-pool xrsr.        
    * Global data definition.
    function exit_saplrrs0_001.
      perform xyz.
    endfunction.
    form xyz. " This will be in LXRSRF01
    endform.
    Do you see how it works now?

  • User exit not work in bdc background mode

    i have bdc program for creating sales order. I also use some user-exits.  When i run the program in foreground, user-exit works fine, but in background, the program can't stop in user-exit. Do you have any idea about what kind of problem can cause to this?

    Call transactions with bdc tables in Sales Orders execute the user exit code!  I've never seen user exit code excluded, unless by program code.  What do you mean by "stop" in background.  Of course, you can't make it stop there in background.
    Post relevant code and we'll see what we can tell you.  What does the code do?

  • Look for USER EXIT/Program similar with BADI:  BADI_SCD_ACCTG for SAP 4.5B

    Hello SAP Guru,
              We are having the challenging in performing posting to multiple G/L accounts per shipment. This is required, for example, if customer, interplant, and/or inbound orders are combined onto one shipment.
             We found this BADI that allows system to work the way we want; however, BADI is not support in 4.5B.
             This BADI is linked to enhancement LMR1M002 and function module MR_ACCOUNT_ASSIGMENT. Please refer to note 64204.
             Please advise, I am looking something similar that work in SAP 4.5B.
    Regards,
    Song

    Hi,
    Please try this:
    Enhancement  LMR1M002                             Account grouping for GR/IR account maintenance                    
    Enhancement  MRMH0001        Logistics Invoice Verification: ERS procedure                    
    Enhancement  LMR1M001                             User exits in Logistics Invoice Verification          
    Enhancement  LMR1M005                             Logistics Inv. Verification: Release Parked Doc. for Posting          
    Enhancement  LMR1M004          Logistics Invoice Verification: item text for follow-on docs                    
    I hope this may helpfull and let me know wht exactly the business needs so I can give you some more exits.
    Thank you,
    Thanks,
    AMS

  • User-Exits stop working in automated purchase order creation

    Dear all,
    we used to create sales orders with transaction VA01 and then separately call ME21N to create a purchase order.
    In saving the purchase order we activated user-exit EXIT_SAPMM06E_012 to process some extra logic we need here.
    Now we changed to process for SAP to automatically create the purchase order (to eventually be able to automate the entire process, including sales order creation). Ever since we did that, the user exit is not called any more!
    Does anyone know why? If I manually open ME22N and save the PO, it works! We have to find a way to run the logic in the user-exit during automated PO creation just for the volume of orders.
    Besides that, we're still looking for a convenient way to update PO confirmations using a BAPI or other function module.
    Thanks for your help!
    regards,
              Johannes.

    Good question
    User-exit may not work as the function modules [ and not ME21N ] called in the Sales Order --> Purchase Req --> Purchase Order process may not call the enjoy user-exits.
    Further, this process of automated PO works on Business Obejct event trigger.
    So a event is triggered [ ALECREATED ] on Sales Order Business at the time of Sales Order Creation.
    This event is linked with a function module  called PUR_ORDER_CREATE_VIA_SD_EVENT.
    similarly for change it is PUR_ORDER_CHANGE_VIA_SD_EVENT.
    If you go through the FM code, you can make out how to utilize this FM as user-exit.
    However you need to make the change in this FM after copying the related function group to a Z one. And then change the event linkage accordinlgy to call the new FM.
    See Business Workflow --> Events section..
    If you are not sure about how to do the event linkage then ask it in BPM section...[ They will request you to get lost ...no no ..they didn't do it to me ..just kidding ]
    Cheers,
    Ram

  • User Exit over Work flow

    hi all,
    I have requirement of creating a sales order when the work Order is flagged to completion through IW32.
    I checked for the User Exit avaiable for IW32 and its not trigerred when the SAVE button is clicked.
    so i am planning to go for a work flow approach.
    Has anyone encountered a similar situation. is there any other possible way as wrok flow would have a lot of execution time.
    Your inputs and ideas are appreciated.
    Regards,
    stck

    Can you just try the Badi,
    WORKORDER_UPDATE
    It will work at SAVE

  • User Exit program

    I have a shell script which will send the data to DOC1 and receive the pdf file.
    Can you please help me to plug in the script as a user exit when the user clicks the display bill?
    Please let me know if i can find any document which i can refer for the same.

    I have a shell script which will send the data to DOC1 and receive the pdf file.
    Can you please help me to plug in the script as a user exit when the user clicks the display bill?
    Please let me know if i can find any document which i can refer for the same.

  • User-Exit/Program-Exit/BADI/BTE Search

    Guys,
    Download the program  <a href="http://www.sapfans.com/forums/viewtopic.php?t=236062">here</a>
    A challenge for the experts: can you make it better???

    Guys,
    Download the program  <a href="http://www.sapfans.com/forums/viewtopic.php?t=236062">here</a>
    A challenge for the experts: can you make it better???

  • GL posting program works differently in production and QA system?

    Hi Experts,
    I got a strange error when I copy a personnel from production to QA to test the posting. The employee has retro calculation back to period 1 of 2010. The GL posting program RPCIPE00 only picks up the original record in 01.2010 (the P record) in QA system and so gives an unbalancing error. But in production when I do a simulation with GL posting I can see in the log that it picks up both P and A result and there is no error.
    What could cause the inconsistency of this program?
    Thanks a lot.
    Allan

    Is payroll run is same manner in both system, could you see all results are exactly same in both system and there is no changes.
    Manoj Shakya

  • Abap Program works differently in Development & Production Servers

    Hi All
    I have written a program to fetch details by linking asset tables ANLA, ANLB, ANLC, ANEP, ANEK etc and general ledger table BSIS. The program is giving desired results in the Development Server. When it is transported to Production Server, one column values are coming bottom to top (reverse order). How to address this issue. Any idea why this is happening? I can give the code if needed.
    Subin K

    Hi,
    Did u set any layout?
    I think layout is not transported . So u get the alignment issue.
    Check that u ve transported all the componets of the program to production server.
    Regards,
    Pravin

  • Screen user exit : program sapmv45a screen 8309

    Hi,
    I added fields to screen 8309 , but in the flow logic of the screen 8309 system is not allowing any code(call modules) to write ( i already given the access key and designed the screen) .
    when i searched forums i came to one command
    *{ INSERT "TR No" 1
    module XXXX.
    *} INSERT
    i could not understand the above command .......
    Ram

    Hi,
    the code for screen Validation has to write in Include 'MV45AFZZ'.
    Search for the T-code VA01--Check for form routine ""userexit_field_modification
    "  and add your manual code..
    Regards,
    Prabhudas

  • FB05 - User Exit or work around to have more Document numbers as input

    Hi,
    In FB05 transaction, after choosing Process open Items we have option to choose open items by various selection criteria,  on selection would be "Other Accounts" to choose multiple customers ( if it is incoming payment for example), but SAP is allowing only 8 customers at a time, is there any way we can increase this selection to more than 8?
    Similarly when we choose the Open items selection based on "Document number" , SAP allows only 27 or 28 doc numbers, is there any way we can increase ( like copy from clip board function in many SAP transactions or tables) this number of documents for input?
    Please do not propose GL item fast data entry in F-26 or  CATT script, LSMW.

    Hello,
    sounds innovative, one thing you can be careful of is that when you enter a bulk documents in those fields, if any of the document is incorrect, system will simply give you a yellow message and almost quietly remove that document from the list. Now imagine if it happens when you enter a bulk document how terrible will it be to identify that incorrect document ? According to me, its better to enter part by part and once you are done you can click on process open item and proceed.
    best regds
    Subha

  • Debugging a User Exit or Program

    Hi,
    I would like to debug a program, and locate and fix an error in one of the user exits. How can I go about doing this?
    Thanks,
    Shah.

    Hi,
    Enhancement/Modifications
    1) Execute tcode SMOD to find available enhancement/modifications.
    2) Create a project for the enhancement in tcode CMOD.
    3) You must activate your project first in order to hit a break-point or get into debug mode for your existing enhancements/modifications, if you do not, the best you will be able to do is step through the main program until you hit the call for that particular customer enhancement.
    4) To get into debug, you can enter a hard break-point in the enhancement itself, set a soft break-point with the stop sign, or the long way, before you execute your transaction or while you are in your transaction, you can place a /h in the ok code area (this is the area of your gui where you can type in a tcode). Once you have the /h, hit enter and that will take you into debug, from there, you can do many different things to find exactly what you are looking for.
    User Exits
    1) Identify the main program you want to locate a user exit/debug.
    2) For example, go to SE80 and do a search by program or dev class (SAPMV45A sales order or Dev Class VMOD, most SD user exits are in this dev class). In SE80 if you go by program, most user exit programs end in a 'Z' on a rare occasion 'X' or 'Y'.
    3) If you are looking at including MV45AFZZ, you can see where there are different forms. These forms will get called at times within the program. If you are looking to fill the storage location on the sales order, you will probably want to take a look at the perform that fills in a field in vbap.
    4) If this is what you are trying to accomplish, you will need to do the select against the config Table TVKOL based on the shipping point/plant and possibly storage condition based on your picking strategies.
    5) For the debug part, you can do the same as in the enhancements/modifications but you will not need to activate any projects.
    Reward points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Regarding how to find out a program is User Exit/executable

    Hi,
    Can anybody tell me how can we find wether a particular program is used in executable program (or) user exit program?
    One thing we can find out is wether the program type is 'I' or 'R' etc..
    Thanks in advance.
    Thanks,
    Deep.

    Hi...
    See the following links..
    it helps you a lot..
    how can we C the USER_EXITS in Z programs
    how can we find the list of user exits for a transaction
    How to find the active user exits in my client
    How to find user exits for a transaction
    Hope it helps you...
    Let me know if u have any more doubt...
    Reward points if useful......
    Suresh.......

  • Need user exit lists and corresponding Program name for Transaction F110

    Hi all,
    I have a requirement to update trading partner field based on payment method using Exits or BADI during payment posting (which is carried out in F110). Please give me the exact user exit/program for this requirement.
    Thanks in advance
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 22, 2011 9:19 AM

    Hi all,
    I have a requirement to update trading partner field based on payment method using Exits or BADI during payment posting (which is carried out in F110). Please give me the exact user exit/program for this requirement.
    Thanks in advance
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 22, 2011 9:19 AM

Maybe you are looking for

  • Free calling to Latin America?HELP!!

    So I got this email that I can call to Latin America for one month at no cost to cell or land line but when I was subscribing it said that I was signing up for calls to land lines only. Is this only a catch or what is wrong here?

  • Please help with cfscript error!

    When I run my app, I got this error: sdfst_catcherror is recording this error: Context validation error for tag cfscript.; The start tag must have a matching end tag. An explicit end tag can be provided by adding </cfscript>. If the body of the tag i

  • Repetitive manufacturing activity and componenet backflush

    Dear experts, We use repetitive manufacturing. We use BAPI_REPMANCONF_CREATE_MTS for repetitive manufacturing. We have a requirement that to change the activity quantities and component in or before confirmation. Moderator message: not a proper quest

  • HP Pavillion dv2845se

    I have an HP Pavillion dv2845se laptop. I have tried it all, including taking it into Best Buy and have been told motherboard is bad, "an HP problem in this laptop". Estimated cost of $250 up to repair and told I might as well replace the laptop as t

  • ITunes not finding some songs

    Hi... I just got a new Macbook, and I moved all of my songs from my PC via my iPod to the Macbook. However, many of my songs are not being found by iTunes. There is an exclamation mark next to those songs. Many of them were purchased from iTunes, and