Editing previous entry in User Exit

Hello ,
We are using on user exit in HR module to display employee trip data . We have for eg 5 line items in a table control on sap standard TRIP transaction .At runtime user enters data in the table control fields line by line .
When user exit is triggered every entry is processed line be line .
Now based on the 3rd entrie's some field value we need to manipulate the logic of the filed calculation of the
1st line field .
How can we achieve this ? Our problem is 1st line item fields are populated first and displayed so based on 2nd line items field value how can we manipulate first line items fields?

Hello,
According to my understanding move all the line items to one tempary internal table.
When u want to manipulate read the tempararoy internal table and modify the internal table.At the end of the modification move all temp internal table to final internal table.
If it is not solved please provide me one Example of the problem.

Similar Messages

  • Service entry sheet user exit

    Hi! Guys,
    I have a requirement wherein we wish to avoid duplication of service entry based on the period for which services have been entered. Is there a way to acheive this....?
    In case not can anyone tell me a user exit which i can use to validate the from and to period fields available in the service entry sheet to avoid duplication of service entry.
    Thanks for your help.
    Regards

    Hi Sidmi,
    I'm having the same problem. The maximum you can do is use extension SRVEUSCR (see with SMOD), component 'EXIT_SAPLMLSR_020', do your verification and create a popup (example with function module 'POPUP_TO_DISPLAY_TEXT'. This will not stop you from saving, but is very visible to the user.
    Kind regards,
    John.

  • Unlock custom table entries after user exits using /n

    Hello,
    I want to lock a record in a custom table at the beginning when users execute a transaction. Users do various activities and save the change then the lock can be released. My issue here is after I lock when the user execute the transaction, if the user does not save or come out using exit keys, for example press /n or just close the session, I need to still unlock the record. Could any one pls suggest what is the best approach. How does sap handles when we use VA02 and just close the session?
    Many thanks
    Ramesh

    Ramesh,
    You need to check for the other actions besides save.  Perform the same unlock for other action as you currently do for a save. 
    If SAVE.
    unlock.
    Else
    unlock
    endif.
    Bruce

  • Supress  some fiels in sales order? user exit?

    can  somebody help me  regarding this. i want to  supress  some fields  in a standard  sales order. i dont want to  delete . i just   want  to supress  some fields  in a standard  sales  order. is there  a  user  exit  for  it? if yes   do tell  me  which  user exit is it and  how to use it?

    hi,
    To make optional / mandatory you can use in IMG - S&D-> Basic > Functions-> Log of incomplete Procedures =>  select the fields > from the tables and the system will check for them (OVA2/VUA2)
    To make a filed entry enabled or grey (non-entry allowed):
    User exits in the program MV45AFZZ-USEREXIT_FIELD_MODIFICATION
    This user exit can be used to modify the attributes of the screen  fields.
    To do this, the screen fields are allocated to so-called modification groups 1 - 4 and can be edited together during a modification in ABAP.
    If a field has no field name, it cannot be allocated to a group. The usage of the field groups (modification group 1-4) is as follows:
    Modification group 1: Automatic modification with transaction MFAW
    Modification group 2: It contains 'LOO' for step loop fields
    Modification group 3: For modifications which depend on check tables or on other fixed information
    Modification group 4: is not used
    The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit. This FORM routine is called up by the module FELDAUSWAHL.
    Actually suppressing fielding sales orders userwise is quite easy. We are doing it in our company. For this we use userexit FORM USEREXIT_FIELD_MODIFICATION in MV45AFZZ.
    Below is the sample code
    IF SCREEN-NAME = 'VBKD-ABSSC'.
    AUTHORITY-CHECK OBJECT 'ZMV45AFZZ' ID 'SCRFNAME' FIELD SCREEN-NAME.
      IF sy-subrc = 0.
        SCREEN-INPUT = 1.
      else.
        SCREEN-INPUT = 0.
      ENDIF.
    endif.
    You place the authority check object in authorization profile in the role of the users, who should have access to the field (in this case it is VBKD-ABSSC), and there assign the corresponding fields that are to be accessed via this userexit.
    pls reward points if the answer is helpful
    REgards,
    Murali

  • User Exit Guide for LMR1M003

    Hi,
    Can some one please send me the code and guide on how to create the following user exit LMR1M003. This is for Consignment Settlement. It brings up an error saying that the reference field is missing. The transaction I am using for settlement is MRKO and you can not enter the reference field in the foreground.
    So what I want is to implement the user exit LMR1M003 and conditions are if it is via transaction code MRKO and is in relation to consignment use the material document number as the referenc number etc.
    If you have experience in this please help me.
    Points will be awarderd.
    Thanks
    Adeel

    Hi,
    You can go T Code CMOD  and create a new project.
    In tab enhancements of editing this project, insert user exit LMR1M003, tip enter.
    In tab components you can go directly to FM EXIT_SAPLMRME_003. Double click on include ZXM08U14, tip Enter to create source code of this include.  After all, active your code and your new project.
    Note: In your include ZXM08U14 you can use these parameters
    *"  IMPORTING
    *"     VALUE(E_TRBKPV) TYPE  MRM_RBKPV
    *"  EXPORTING
    *"     VALUE(E_NUMKR) LIKE  T003-NUMKR
    *"  TABLES
    *"      T_DRSEG TYPE  MMCR_TDRSEG.
    Regards,
    Gy

  • Error message from user exit - current screen becomes grayed(non-editable)

    I am working on a Sales Order (VA01/VA02) user exit(USEREXIT_SAVE_DOCUMENT_PREPARE) in MV45AFZZ program. I am validating certain values entered by user in this exit. Based on a condition, I issue a error message e.g. "message e001(ZV) with .....". I expect the processing to interrupt and the system control  returns to the current screen. When there is an error, error message shows up on the status bar, but the current screen is completely grayed out(non-editable), not able to modify the incorrect entries. I keep hitting ENTER but no change to the grayed screen. Is there anything wrong in the way I issue error message?
    I am on ECC6.
    Thanks.

    could you please help me if possible in my senario :-
    I am validating a field(serial number while creating delivery) in standard exit ZXQSMU04 and written a code to display an error message. The functionality is working correctly on validation and displaying the error message. But once the error is getting trigger the serial number field is becoming in gray mode i.e non editable.
    I tried a lot to overcome this issue but not getting success could anyone help me to make the field editable while triggering the error message.
    Please note : Its an exit and not having any message field in export or return table. Also tried with warning and information message.
    Thanks in advance.
    Regards,
    Gautam Kumar

  • User exit for Previous and current system status  for  5 transactions

    Hi Experts
    My Objective to capture the Previous and current status  of system status  for  5 transactions  in their  user exits .
    Description                                         Business Object               Transaction
    Production Order operations              BUS2005                            CO02 to edit Production Order
    Maintenance Orders                           BUS2007A                         IW32 to edit Plant Maintenance Order
    INTernal   ORDER                                 BUS2075                          KO02 to edit Internal Order
    WorkBreakdownStruct                       BUS2054                          CJ02 To edit the WBS element
    Project System Network                      BUS2002                           CN22 to edit Network
    Activities Network
    For Both Production order  and   Project System Network Activities Network    ,
    i got  User exit  "  EXIT_SAPLCOBT_001  " 
    But i am not sure whether we can use this or  not for our purpose . When i am changing status and  then saving ,  my  break point comes  to  EXIT_SAPLCOBT_001  .
    But  can we capture   JEST   or   JCDS  related  data   in that  user  exit  or  How can we capture both Previous status  and Current ( Means New changed status ) . For eg  From Released   to   Technically complete   etc.
    I want Status changed and its immedtiate previous status. 
    Do i need to check Exit  or BADI  before  and after Saving .
    Thanks
    Regards
    Gaurav
    Edited by: TheGaurav on Sep 8, 2011 10:28 AM

    Hi Himanshu
    Many Thanks for the reply . 
    I also had some other processing needs to be done on the basis of those status. .
    So do you have any idea or  how to find what all exits or BADIs  i can use for all of these 5 transactions , where
    i can get data for JCDS ( or JEST ) .
    CO02 to edit Production Order                 
    IW32 to edit Plant Maintenance Order
    KO02 to edit Internal Order
    CJ02 To edit the WBS element
    CN22 to edit Network        
    can we use   EXIT_SAPLCOBT_001  for    CO02  and  CN22   .
    Edited by: TheGaurav on Sep 8, 2011 1:21 PM

  • Need user exit and runtime structure to get all the unsaved entries in CAT2

    Hi Friends
    As per our requirement, we need to compare all the entered hours from CAT2 vs Project level assigned hours.
    If user save the record in CAT2, then no problem.I can get the records from CATSDB table.If user enter the record in first week and goes to next week without saving time entries in CAT2, Runtime structure catsd_imp-sumdays in user exit CATS0009 shows the current screen hours only.But I want to get all the entries entered in CAT2(Unsaved records).Is there any other user exit or badi available to get this functionalites.I tried with CATS0006 ,CATS0003 and so many user exits.But still I didnt get any solution for this.
    If anyone come accross this kind of scenario,kindly help me on this.
    Thanks
    Gowrishankar
    Edited by: gowrishankar p on Nov 1, 2010 2:24 PM

    Hi
    I didn;t find any badi for this transaction , check this onc CATS0010  once.
    Regards
    Siva

  • How to find out all user exits edited

    Hi All,
    Would you know how to find out all user exits have been ever edited?
    Can we find out those user exit by some tcode or table?
    Thank you very much
    Best Regards,
    Calvin
    Edited by: Sam Sum on Mar 2, 2009 5:09 AM

    Hi,
    Just try this in your system.
    Go to SE38 and give ZX* and press F4.
    Have a look at table MODATTR to find the active projects in your system.
    Regards
    Edited by: Rajvansh Ravi on Mar 2, 2009 5:17 AM

  • User  exit  needed (Problem related to duplicate batch entry in Migo(GR))

    Dear all,
                  I need a help from you.we facing problem in Goods receipt in MIGO.
    where we want to apply a check on batch which has already been assigned to a raw material in MIGO  .we are using manual
    batch entry .we don't want to make duplicate entry of same batch
    against any material.
    I tried to find out the user exit for that but i have not succeed .
    what is solution to
    avoid duplicate batch entry.

    Transaction Code - MIGO                     Goods Movement
    Exit Name           Description
    MBCF0002            Customer function exit: Segment text in material doc. item
    MBCF0005            Material document item for goods receipt/issue slip
    MBCF0006            Customer function for WBS element
    MBCF0007            Customer function exit: Updating a reservation
    MBCF0009            Filling the storage location field
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1
    MBCF0011            Read from RESB and RKPF for print list in  MB26
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    No of Exits:          8
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • User Exit to make Payment Term field non editable in item level .

    Hi all,
    User wants to make the Payment Term field in sales order as non editable and  Payment terms is copied from Customer Master to Sales order.
    I use user exit MV45AFZZ (USEREXIT_FIELD_MODIFICATION) to make Payment Term field non editable in header level.
    I am not able to do it in item level. Pl help to to make Payment Term field non editable in item level.
    Thanks,
    sunil

    Hi,
    You can try implicit enhancement in the include MV45AF0T_TCTRL_U_ERF_AUFTRAG_I
    use below code.
    DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
       LOOP AT   TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
       IF WA_COLS-SCREEN-NAME = 'VBAP-ZTERM'. " Check the field name
       WA_COLS-SCREEN-INPUT = 0.
       WA_COLS-SCREEN-OUTPUT = 1.
      MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
       ENDIF.
    ENDLOOP.
    It better to control it via a custom authorization object.
    put a authorization create a custom authorization object so that you can restrict it for a certain users.
    AUTHORITY-CHECK OBJECT 'ZTERM'
             ID 'ACTVT' FIELD '02'.
    IF SY-SUBRC NE 0.
       LOOP AT   TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
    ENDLOOP.
    ENDIF.
    Regards
    Aromal

  • Order entry user exit flags

    I have a problem that I have tracked down to the code below.
    In order entry through EDI, if a material is not on the customers buying list it is rejected by setting ABGRU. The problem occurs when the last 2 lines are rejected we get strange error messages like customer not maintained in dist channel xx or posting date is in the past.
    At the end of the inbound orders user exit (EXIT_SAPLVEDA_001  include ZXVEDU03), we do this (see below) but I do not know why we set flag PBES = 'X' ?
    What does it do?
    When I remove the line setting PBES, it is OK
    But before I can make a change to the live system I need to know what this does. Pls help
      Update output parameters
        IF NOT xvbap-abgru IS INITIAL.
          d_flag_p      = dd_flag_p.
          d_flag_p-pbes = 'X'.
          d_flag_p-pde1 = 'X'.
          dd_flag_p     = d_flag_p.
          dxvbap        = xvbap.
      Update Material No if mapped from EAN Code
        ELSE.
          dxvbap        = xvbap.
        ENDIF.

    Hi,
    You can maintain Production Storage location in BOM as well as you can maintain also in Material Master--> MRP-2 View--> Production Storage location.
    So system will by default take the respective storage location and user need not select each time manually.
    For this purpose, you need not implement any exit.
    Revert in case any doubt.
    Hope this solves your problem.
    Regards,
    Tejas

  • Entry help check fot the posting key in user exit.

    Hi,
      I am using an inbound idoc for posting FI document.I am just parking the document for the time being .For this i am using the user exit EXIT_SAPLF050_006.
       If I want to change this parked document as save as complete document is there anything that I can do in this user exit.Can you please tell me the entry help check for the posting key (changing parameter) in the exit?
    Thanks in advance
    Regards,
    Reni

    Hi,
      I am using an inbound idoc for posting FI document.I am just parking the document for the time being .For this i am using the user exit EXIT_SAPLF050_006.
       If I want to change this parked document as save as complete document is there anything that I can do in this user exit.Can you please tell me the entry help check for the posting key (changing parameter) in the exit?
    Thanks in advance
    Regards,
    Reni

  • How to edit CANCEL TECO user exit

    Can anyone tell me how to edit the user exit for cancelling the technical completion. It will be like this TCODE ---> IW32 ---> ORDER ---> FUNCTIONS ---> COMPLETE ---> CANCEL TECHNICAL COMPLETION
    Thx & regards

    Hi Ilango,
      This this user exit : EXIT_SAPLCOIH_004.
    Regards,
    Prabhu Rajesh.

  • User exit/Badi to edit the FM SSFCONVERT_OTF_AND_FAX

    Hi All,
    I want to change the document title send from FAX. Presently from FM SSFCONVERT_OTF_AND_FAX, the document title is populated with current program/date/time.
    I got a requirement to change the document title.
    Pls let me know is there any userexit/badi to change the document title from FM SSFCONVERT_OTF_AND_FAX.
    Regards,
    Priya

    Hi,
    User Exit to edit shipping point in ME20
    Follow Below link,
    http://www.sapfans.com/forums/viewtopic.php?f=13&t=308783&p=933687
    It helps to you.
    Regards,
    Sekhar

Maybe you are looking for

  • How do I get my Gmail to operate on my native mail server?

    How do I set up my Gmail on the native mail server for an iPhone 5 running iOS 7? When I set it up with the preset Google option I get an error message that states that my username or password is incorrect. I tried to set it up using the other option

  • Can't install Acrobat 9 Pro

    I have tried to install Acrobat 9 Pro and keep getting "Status: Stopping Services"  "Services to stop: Print Spooler". I have called the service folks and have had no assistance. Anybody have a fix for this? Running XP 32bit with current service pack

  • KT4 Ultra and SATA

    I have a KT4 Ultra that supports SATA Raid and Im looking at getting a new HDD. CAn I run my old PATA HDD with a SATA HDD without it being in raid format or do the disk have to be in a raid format.

  • WRT54GS V7 With SpeedBooster: Connection Cut Out...

    Greetings My parents bought me a router for my 17th birthday, in april 23 of this year, but ever since I got it, its been nothing but Trouble... It will connect and disconnect when ever it chooses... It won't send a connection to the other computers

  • Transferring Itunes from old to new computer

    I have been trying to export all of my itune songs from an old PC to a new laptop.   I'm only getting a portion of the songs transferred.   When uploading from a separate harddrive its says that "songs cannot be found".   So in a file that I might ha