Validating changes before saving

Hi all
Sorry if this sounds like a novice question but I am still learning.
Just wondering if their is a way to validate data in the form before committing; this is in order to display certain checks and present the result via a message display on the form.
Currently, I have to make the change and then commit the changes before the form will validate and the message is displayed.
Thanks for any suggestions...
Newbie

Hi
There is a few things i'm validating e.g. one lov
with 2 choices; if one choice is picked then another
field in that block is checked for a correct format,
pick the other choice and the first check is
cancelled and another field again is checked for a
certain length value etc.It seems as if you want to do some validations as soon as some value is selected by LOV for an Item.
If this is the case you can use WHEN-VALIDATE-ITEM trigger for that Item and then set and validate your requirements depending upon the value selected from LOV.
Hope this is what you are looking for and helps u.
Regards
Arif

Similar Messages

  • Check on vendor email address change before saving PO

    Hi All,
        I need to check Is there any change in Vendor Email address in PO before
    saving. I am trying to find userexits.
    I found some like EXIT_SAPMM06E_012, But here I am not getting complete
    Vendor address...
    Req: I am maintaing multiple email address for Vendor at PO header level.
    Here is the path:  PO Header --> Address tab --> Click on Address Details
    --> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
    So I need to check is there any change in email address before saving.
    Could you please any body help me on this....
    Thanks
    Rays

    Hello Rays,
    One base question,
    Are you going to check the vendor email address manually before saving the PO?
    The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
    By the way, user exit EXIT_SAPMM06E_012  (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
    Hope this helps.
    Arif Mansuri
    Reward the points if answer is helpful.

  • How do I add a validation prompt before saving a form?

    Hello
    I have a registration form for a family camp. The first page collects the personal information and the second page calculates a financial total. I don't have LifeCycle and designed this using Adobe X Pro. I use a third party data extractor tool for forms returned to move the typed information into Excel. The problem I'm running into is a lot of people don't scroll and complete the second page of the form before saving and submitting it. This results in incomplete information when we extract to Excel and more work for us to process the application.
    My thoughts are this could be partially remedied if the user received a prompt when they go to save the form or after a certain field was completed (perhaps clicking the "I agree" button) that asks them to double check to make sure they completed the second page. Similar to how if they try to type in letters in the phone number field they receive a message that they can only use numbers.
    The problem I'm having is I have no idea if we can create a prompt when someone goes to save the form, or if I can trigger a prompt for after someone completes a particular field and how to go about doing either? Does anyone have any suggestions on how I can accomplish this or where I can look to for some further help?
    Thanks!
    Neil
    PS Here's the form I'm working on - http://accwesterncamp.com/wp-content/uploads/2015/03/Western-Camp-Application-2015-Fillabl e.pdf

    Sorry for the link that turned bad above. Here's a functional one: http://accwesterncamp.com/wp-content/uploads/2014/10/Western-Camp-Application-2015-Fillabl e.pdf
    Ultimately I have decided against continuing to work with a PDF fillable. The functionality I ultimately wanted was too cumbersome. In doing additional research I came across Adobe Forms Central which is being decommissioned. In the FAQ section I found a recommendation for an online form design service called Cognito which I ultimately decided to go with. This service allows registrants to register multiple people, pretty robust form logic, and process payment all at one go. The cost is very small too. If you would like to see how the digitization and online processing of the form turned out you can see it here: http://accwesterncamp.com/registration/
    Thanks for all the help and recommendations in the forum though!

  • Shopping Cart Changes before saving

    Hello ,
       I want to change the Logical/Target System of the Shopping Cart before I can save the shopping cart on some condition.  Can any one suggest me how can this be done.  Any standard program that needs to be changed...
    Thanks in Advance

    Hi,
    You can use the badi "BBP_DETERMINE_LOGSYS".
    Read the documentation below:
    BADI - BBP_DETERMINE_LOGSYS
    code
    You can use the Business Add-In BBP_DETERMINE_LOGSYS to define your own criteria for determining the backend system / company code. You use this BAdI to determine the source system for
    Shopping cart items
    In the standard system, the backend system is determined using the product category Define Backend Systems. The backend System is placed in the field ITEM_DATA-LOGICAL_SYSTEM. Then the system calls the Business Add-In BBP_DETERMINE_LOGSYS.
    The company code is put in the field ITEM_DATA-BC_CO_CODE. Then the system calls the Business Add-In BBP_DETERMINE_LOGSYS.
    Contracts
    In the standard system, the system creates contracts locally from Sourcing and SAP Bidding Engine You can use this BAdI to determine a backend system.
    Example
    Shopping Cart:
    Backend system A is determined for product category OFFICEMATERIAL. You also want to consider the vendor and purchasing organization fields during determination of the backend system. The purchase order is to be created in backend system B for the vendor OFFICE1 and purchasing organization 0001. You overwrite the field ITEM_DATA-LOGICAL_SYSTEM with B.
    Contract:
    The local system used by the standard system to create contracts is XYZ4711. In the field CV_LOGSYS, you enter the logical system ABC0815 that links to a backend system. In this way, contracts are created in the backend system.
    Standard settings
    The BAdI provides the following methods:
    -> DETERMINE_LOGSYS
    -> CONTRACT_LOGSYS_DETERMINE
    Activities
    Implement this BAdI if you want to define a target system that is different from the standard system.[/code]
    Sample code for BBP_DETERMINE_LOGSYS BADI
    codemethod IF_EX_BBP_DETERMINE_LOGSYS~DETERMINE_LOGSYS.
    data: w_acct_data type enriched_acct_data.
    data: w_acct_icom type BBP_PDS_ACC_ICOM.
    data: w_et_messages type BBP_TMESSAGES_BADI.
    data: re_obj(40).
    data: imkey(8).
    field-symbols: <waItem> type bbp_oci_enritem.
    field-symbols: <waAcct> type bbp_oci_enracct.
    field-symbols: <f1> type any.
    if not acct_data[] is initial.
    loop at item_data assigning <waItem>.
    loop at acct_data assigning <waAcct> where line = <waitem>-line.
    check <waAcct>-acc_cat = 'RE'.
    if not <waAcct>-acc_str is initial.
    CALL FUNCTION 'Z_RE_ACCT_ASSGN'
    EXPORTING
    ACC_STR = <waAcct>-ACC_STR
    BUKRS = <waItem>-BE_CO_CODE
    IMPORTING
    RE_OBJ = RE_OBJ
    IMKEY = IMKEY
    TABLES
    BBP_RETURN = w_et_messages.
    endif.
    if not imkey is initial and w_et_messages[] is initial.
    move imkey to <waAcct>-rl_esk_key.
    move re_obj to <waAcct>-acc_str.
    modify acct_data from <waAcct>.
    endif.
    endloop.
    endloop.
    endif.
    endmethod.[/code]
    BR,
    Disha.
    Do reward points for useful answers.

  • How to read the status changed in crmd_order txn before saving it to DB.

    hello all,
    My requirement is to perform some checks after the user changes the status
    ( Before saving it to DB i need to do some checks )
    I could find the BADI and Fm's for checking conditions.
    My question is i need to check for a particular status change how do i trace that that particular status which i need to capture has been changed??
    i could see some FM's but it is only fetching the staus save in DB.
    how do i trace the status just after user changes before saving it to DB.
    it's an urgent requirement............pls help me on this..........
    pls get back to me if u want more  details.........
    Thanks,
    Shiva.

    Hello.
    Have you figured this out yet?  We are having the same problem.

  • BADI before saving BP

    Hi All,
    I need to check for certain data changes before saving a business partner using transaction BP in CRM. If there are any unwanted changes I need to throw an error and should not allow to change the business partner using transaction BP.
    For this purpose I found BADI BUPA_FURTHER_CHECKS and implemented the BADI method  CHECK_CENTRAL. I have put a break-point in the method but it doesn't stop.
    I have activated the implementation of  the method and BADI but still doesn't work.
    Has anyone successfully implemented this BADI? or is there is any other BADI to solve my problem?
    Please let me know if anyone has answers.
    Points will be rewarded.
    Thanks in advance.
    Sonali.

    Hi Gautham,
    No good, It did not help me Gautham.
    Can you please suggest me some other way of dong it.
    I have 2 badis to use one is address_update and the other is addres_check.
    I implemented address_check which had a address structure as a changing parameter and I update it there, it works absolutely fine.
    But my requirement is to update the structure based on the condition of BUT000. That is the BUT000-type, which means I need to update the structure only for person and not for organization and group.
    so in the badi address_check i need the BUT000 details, which I am not able to trace even from the local memory as I am getting the error saying "Memory is not yet instantiated"
    and If i use the other badi address_update.
    I have the problem the other way round here. I have all the BUT000 details here I can put the condition to update only for person, but I am not able to update the address structure.
    Please help me. This is required very urgent.
    Maximum points will be rewarded.
    Thanks in advance.
    Arul.

  • FICO: Validations Before Saving in FB02

    Hi ,
    This is Prabhu from Pepsi,i need some information regarding validations Before Saving the Documents in FB02.We have BTE events in our sap systems for F-32 and Others not for FB02.
    1.Now i want to change Profit Center of The Documents in FB02.How can i Do.
    2.Can i Use same BTE 'OPEN_FI_PERFORM_00001025_E' for this FB02 also.If not how can do.
    i am waiting for Ur reply.
    regards
    Prabhu
    [email protected]
    09891598349

    Hi Prahbu,
    i think it's not possible to change profit center / cost center in fi-document because of the dependencies in other applications (here: CO )
    -> look here <a href="http://help.sap.com/saphelp_47x200/helpdata/en/96/8b453243ce11d189ee0000e81ddfac/frameset.htm">Changing Documents</a>
    regards Andreas

  • MIGO - change number range before saving

    hi folks
    Does somebody know a possibility in ECC5.0 to change the number range object just before saving the material document in MIGO?
    an userexit, BADI, customer function?
    Thanks a lot

    check this
    MB_DOCUMENT_UPDATE
    regards
    Prabhu

  • MIGO change header data before saving

    Hi all,
    I want to update header data (budat) before saving the material document with MIGO.
    Has anybody an idea?
    I tried with Badi: mb_document_badi or similar user-exit
    MB_CF001 but with none of these I can CHANGE header data.
    Is it possible?
    Thanks a lot!

    check this
    MB_DOCUMENT_UPDATE
    regards
    Prabhu

  • Changing Item Values before saving Purchase Requisition in me51n, set_data function

    Hello,
            I have written a user exit, which is called whenever changes are made to a purchase requisition. User Exit is MEREQ001 , function module EXIT_SAPLMEREQ_010 . My requirement here is that the Requisitioner should be 135 for every PR item under certain conditions. Therefore whenever there is any change made to the PR, before saving the PR item, I need to set the Requisitioner to 135, give a status message saying that the Requisitioner is set to 135 and save the Pr with the changed values. Following is the code I have written in EXIT_SAPLMEREQ_010. However, the set_data function called below does not change the PR values. Pls help
    data: lt_item type mmpur_requisition_items,
           wa_item type mmpur_requisition_item,
           wa_itemdet type mereq_item,
           wa_itemref type ref to if_purchase_requisition_item,
           w_message type i.
    constants: c_135 type afnam value '135'.
    call method im_req_header->get_items
         receiving
                 re_items = lt_item.
        loop at lt_item into wa_item.
         wa_itemref = wa_item-item.
         wa_itemdet = wa_itemref->get_data( ).
         if wa_itemdet-afnam ne c_135.
           w_message = 1.
           wa_itemdet-afnam = c_135.
           call method wa_itemref->set_data( wa_itemdet ).
         endif.
       endloop.
      IF w_message = 1.
        MESSAGE 'Requisitioner defaulted to 135 for all items' TYPE 'I'.
      ENDIF.

    Hi Sachin,
               I am able to get a reference to if_purchase_requisition_item in my code (wa_itemref ) and am also able to access each of the line items in the PR in the work area wa_itemdet.
    At this point in the code ( wa_itemdet-afnam = c_135 ) , the work area value is set to '135', However, call method wa_itemref->set_data( wa_itemdet ), does not change the values of the work area wa_itemdet . Pls help

  • Validation of Item Values before saving the form

    Hi,
    I have requirement in Oracle Forms, we give header information as per the requirement and the lines info of the specific header. In lines whe have two feild as type and amount. If the type is 'E' then we need to sum up the amount value as credit and if type is 'F' we need to sum up of those feild values as Debit and before saving the form we need to check the sum of Credit and Debit is equal or not if equal then we should allow to save the form else it should not. We can have multiple lines under single header..Can any body help on this..Its very emergency..
    Thanks,
    Maggi.

    Hi,
    In Customer-exit ILOM0001 read table IMPT_BUF[] from sap stack. It contains all enteries of measuring points.
    Use below mentioned code in above exits for your reference.
    FIELD-SYMBOLS : <fs_impt> type ANY TABLE.
    data : tab_impt type TABLE OF impt.
    ASSIGN ('(SAPLIMR0)IMPT_BUF[]') to <fs_impt>.
    if sy-subrc is INITIAL.
      tab_impt = <fs_impt>.
    endif.
    table TAB_IMPT is filled wilth all entries of measuring point while creating and changing functional location.
    Thanks,
    Vijay

  • Changing Baseline due date in MIRO before saving

    Hi - is it possible to block the BSEG-ZFBDT field from any user changes before they post MIRO?  I know that you can block this field against any changes after the document has been posted, but I also wnat to block against changes before posting to stop users from overwriting the baseline date.
    Thanks

    Hi:
            You can easily achieve that using SHD0...Enter MIRO in transaction code and in transaction variant enter ZMIRO and press create button..Enter co code and press enter twice.After filling other particulars and passing through all screens go to payment tab ..Screen for it will appear ...You can set it as display only there. Save and give your ABAP package . Save and exit and activate it in standard variant tab of SHD0.
    Regards

  • Net value of sales order before saving in VA01

    Hi there,
    I'm currently working with the transaction VOFM whereby i need to get the <b>net value</b> of the current sales order in order to compare with a deposit value which the customer has made.
    a condition type is activated whenever the net value is < the deposit which the customer makes,i.e when sy-subrc EQ 0.
    My problem is that the routine in VOFM(where i have added my code),is triggered before i save the order, hence all i get as net value is always 0.00. That routine is again triggered after i save as well, but it doesnt work as i expected even if i get the net value then.
    I have in fact used the routine USEREXIT_PRICING_PREPARE_TKOMP of include MV45AFZZ, where i could get the net value from the field XVBAK-NETWR <b>after saving the order</b>.
    i thought that now it gets the right value, it'l work as expected but the fact that the VOFM routine is triggered before saving(hence net value 0.00), the condition type doesn't change after i save.
    Hence, my condition type is not being applied properly because the condition type is being activated already when it get the net value 0.00.
    Can anyone please tell me if there is a way to get the net value before saving?
    Thanks for your help.
    Regards,
    Meenakshi

    Hi,
    I have in fact used export flag to memory in FORM USEREXIT_PRICING_PREPARE_TKOMP from which i get the net value after saving.
    In fact, i have figured out the problem but still cannot solve it.
    What happens i that the VOFM routine is triggered more than once, hoewever, the first time it is triggered, i still havent got that net value. In this pass, when the routine ends, sy-subrc eq 0. Upon the next pass to the VOFM routine, i set sy-subrc to 4(condition type not activated), however the result is wrong. The condition type is activated still.
    if i do the contrary, i.e set sy-subrc to 4 on the first pass to VOFM routine and then set sy-subrc to 0 second time(condition type needs be activated), the condition type is not activated.
    what i dont understand is why the VOFM routine is only keeping the initial value of sy-subrc?Any ideas?
    Also, am doing my validations and setting sy-subrc in the form kobev_900.
    Am not using the form kobed_900 at all. Does this make a difference?
    Also, how can i do the validation only when repricing was called form SAVE process?How do i put the condition?
    Thanks for the help.
    Meenakshi

  • I changed a password to a frequesntly used site. Firefox has not asked me if I want to save this new password and I have to keep changing the saved one to the correct one. How do I get it to save the new password?

    I have websites I use for my employer that require a password. The employer requires these be changed periodically. Always before, if I changed the password, about the second or third time I tried to log in and changed the saved password to the correct one, Firefox would ask if I wanted to save the new password. It is not doing this now. How can I get it to save a new password? It keeps putting in the old one.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    *You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    *To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Deselect: [ ] "Permanent Private Browsing mode"
    The website may be using autocomplete=off to prevent Firefox from saving the name and password.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered

  • My Mac Book Pro changes the saved home page each time I start Safari.  I also get new tabs that randomly open asking to clean up my Apple

    My Mac Book Pro changes the saved home page each time I open Safari.  I am also getting random tabs opening with various "cleaning up" my computer junk.
    How do I get rid of this?  I tried some of the fixes listed but they don't seem to work or I am doing something wrong.
    THanks
    Wendi

    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

Maybe you are looking for