Exit from WHEN_VALIDATE-ITEM

Have a form with a few items in a multi-record block.
Have another block with some buttons (Ok, Copy, Cancel).
User enters an invalid value in one of the items which contains a WVI.
WVI raises an error (form_trigger_failure).
What should I do to allow the user to click in Cancel, and exit the form, without firing WVI again?
Thanks.

Thanks.
But that doesn't work because when I click in the button, the focus is effectively leaving the item, so it runs WVI.
I figured a way though.
Set the Mouse Navigate property of the button to No.
This allows me to run the code in the when-button-pressed trigger without first running WVI.

Similar Messages

  • How automatically insert date when exit from Edit Item?

    Hi all
    Example: Sales - A/R -> A/R Invoice
    when you input any symbol in field "due date" and will press tab beside you is automatically inserted current date. in system exist standart function transformations in date or not?
    thank & hallo from moscow, russia

    Hi Artem Artamonov 
    I'm not sure exactly what you asking, but you can chenge the display format. Go to administration->system initialisation->general settings and look on the display
    tab.
    Hope this helps

  • Material exchane ,copy pricing and conditions from main item to sub item.

    Hi All,
    We are using parts exchange/interchangeability in the transaction ME22N,
    While using ME22N we are exchanging  main item with interchangeable part and while doing so we want to copy pricing and conditions from main item to sub item.
    But its not happening.
    As per sap help its possible, details describe below.
    http://help.sap.com/erp2005_ehp_04/helpdata/en/c2/0a5288b77d11d3bcce00105ab03aee/content.htm
    Price Determination by Copying from Main Item
    In the case of price determination by copying from the main item, the net price of the originally ordered part is still used for the superseding part in a part exchange.
    The system copies all conditions from the main item to all sub-items and takes into account the order quantity for the main item when calculating scale prices. It does not take into account the conditions and scale prices that exist for the interchangeable part.
    You cannot change the conditions, which have been copied from the main item, at sub-item level. It is possible, however, to define additional conditions for each sub-item.
    Prerequisites
    A calculation schema, which can be altered on an individual basis in Customizing, has been supplied for the price determination.
    In the vendor master record, you have set the schema group 09 (interchangeable material).
    But in customizing I didnu2019t find value 09 for schema group .
    Can any buddy through some light on missing pieces which need to be set?
    Thanks
    Regards
    Ritesh

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Copy down Ship-to Partner from main item to sub-items on Sales Order

    This is my first post on the forums here.  I'd appreciate any help you can give on my issue below.
    I have a requirement to copy down the ship-to partner from the main item to sub-items during sales order create or change.  Currently I have code in include MV45AFZB within user exit USEREXIT_FILL_VBAP_FROM_HVBAP as follows:
    <i>* Need to be able to copy the ship-to of a BoM parent down to the
    respective BoM children if the parent has a different ship-to
    from the header.
    data:  wa_xvbpa like vbpa.
    Clear: wa_xvbpa.
    read table xvbpa into wa_xvbpa with key posnr = hvbap-posnr
                                            parvw = 'WE'.
    A BoM parent line has a different ship-to from the header.
        if sy-subrc = 0.
          read table xvbap with key uepos = hvbap-posnr.
    See if current line is the child of that BoM parent
            If xvbap-uepos = hvbap-posnr.
              move wa_xvbpa-kunnr to xvbpa-kunnr.
              move xvbap-vbeln to wa_xvbpa-vbeln.
              move xvbap-posnr to wa_xvbpa-posnr.
              move 'WE' to wa_xvbpa-parvw.
              modify vbpa from wa_xvbpa.
            endif.
          Endif.</i>
    This isn't working for me.  At one point, I was able to copy the ship-to down to the first sub-item but not any subsequent ones.  I'm sure I need to add some code to another sales order user exit to get this to work, but I'm at a loss at this point.   Has anyone had to do this or something similar before? 
    Thanks very much in advance for your help.
    Angela

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • Change GL Account from PL Item to Balasheet Item

    Hi ,
    one of our user Stock GL Account was created as a PL Item and in this GL Accounts Tranaction also posted .
    Now i want change from PL Item to Balancesheet Item
    and i dont want transfer this amount to another GL Account
    how i can change the Exiting one from PL Item to B/S Item
    Regards
    sure

    The only choice it is to make the account balance zero and in case it had a balance on the previous year do also run the balance carry forward program for this account.
    Afterwards, you should change the FH602 message on tx. SM30 for V_T100C, functional área FH, message number 602, from error (E) to warning (W).
    Now you can change the flag from P&L to BS.
    Regards,
    Abdali

  • How to exit from Enter-Query mode

    Hi
    I am not being able to exit from the Enter-Query mode if the result set is not returned.
    I tried to exit using ABORT_QUERY, exit_form( as we used to do in earlier version) and CTRL+Q. Nothing seems to work and I have to kill the form
    This seems to be an easy topic, but I need your help.
    Thanks in advance
    Bijay

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by bj ():
    Hi
    I am not being able to exit from the Enter-Query mode if the result set is not returned.
    I tried to exit using ABORT_QUERY, exit_form( as we used to do in earlier version) and CTRL+Q. Nothing seems to work and I have to kill the form
    This seems to be an easy topic, but I need your help.
    Thanks in advance
    Bijay<HR></BLOCKQUOTE>you maybe include a not null item,you can set the item's property
    not need .
    null

  • Exiting from reports progmatically

    On error , how can exit from a report progmatically ?

    Hello,
    I'm not sure to understand very well your problem.. but.. if you want to exit.. and the item (which is primary key as you said) don't have to be any value... , the rest of the records item. either would have any values.. so.. Have you tried to clear the record before exit the form? FIrst try with the executable... (clear button) .. if works.. try with clear_record before the exit_form...
    Jose L.

  • SLoc of Free goods from main item

    Dear Gurus,
    I concern how can free goods storage location roll up from main item? Actually, the plant of free goods inherits from main item but not SLoc. So do you have any suggest for my concern? Thks a lot for your help!
    Regards,
    Nguyen Pham,

    Daer Nguyen Pham,
       Your  question is not very  clear ,
    In free goods two things you need to rember, whether  you are doing  1. inclusive free goods  2.  exclusive free goods.
      Based on those two   it also  calculate  on  3 diffrent ways,
          unit  rate ,
         pro- rate ,
         whole unit  .
    it depends on  type of free goods you are giving at the time of sales  order   based on that system  determines the storage location. if you have maintained  st.location determination, if not then you can munually select in delivery.
    Regards
    Venkat

  • Call an applications 'user exit' from a PL/SQL procedure

    My question is a technical PL/SQL question related to Oracle Applications. I need to call a standard applications 'user exit' from a stored PL/SQL procedure. Can anyone tell me if this is possible and how to do it?
    (i.e. I am attempting to call the AR user exit SALESTAX)
    Thanks,
    Michelle Dodge

    Hi,
    Read this thread, perhaps is there your response :
    Host...
    Nicolas.

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • Open a pdf file from a item of the menu

    Hi, I need to open a file .pdf from a item of the menu, I'm working with Foms 6.0., the problem is that I don't have idea how do that!
    Thanks!

    Hi,
    Most folks use Java. Here is code for a Word doc:
    http://www.thescripts.com/forum/thread586852.html
    package oracle.forms.demos.ole;
    import com.jacob.activeX.ActiveXComponent;
    import java.awt.Panel;
    import com.jacob.com.*;
    public class wordbean extends Panel
    private ActiveXComponent MsWordApp = null;
    private Dispatch document = null;
    public void openWord(boolean makeVisible)
    //Open Word if we've not done it already
    if (MsWordApp == null)
    MsWordApp = new ActiveXComponent("Word.Application");
    //Set the visible property as required.
    Dispatch.put(MsWordApp, "Visible",
    new Variant(makeVisible));
    }

  • How can I exit from full-screen View?

    On the View menu, I clicked "Full screen View", but then I couldn't find any way back to normal view. I had to Force-Quit Firefox to escape.
    How do you exit from Full Screen View?
    (I tried Esc, Ctrl-C, and many other key combinations)
    Thanks, PeterR

    Try F11.

  • Exiting from ABAP Web Dynpro application

    Hi,
    In ESS portal we have one tab Personal info, there I have created one link and integrated my ABAP web dynpro application.
    I want to exit from the application and go back to the Personal info sub area. created one exit button in my application on press of that i need take this action.
    Please guide me with this
    Thanks!
    Piyush

    Piyush,
    I am not sure whether it works or not just get the navigation url of personalinfo subarea and using portal APIs navigate to that url when you click on exit button
    Thanks
    Bala Duvvuri

  • Deleting a row from the item table

    Hi All,
    I have a requirement where I need to put a button to delete the selected row from the item table and for this I have written the following code:
    DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
        DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
        DATA ls_t_bseg TYPE wd_this->element_t_bseg.
        data: it_tab type table of wd_this->element_t_bseg.
      lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
      lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
      lo_el_t_bseg->get_static_attributes(
        IMPORTING
          static_attributes = ls_t_bseg ).
        lo_nd_t_bseg = wd_context->path_get_node( path = `Z.T_BSEG` ).
        lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
        IF lo_el_t_bseg IS not INITIAL.
          lo_nd_t_bseg->remove_element( lo_el_t_bseg ).
        ENDIF.
    Now the problem is although it's deleteing the selected line correctly but because of this I am losing one line on the screen for the user to enter... my form has a fixed number of lines and in my case it's 10... so everytime I am using deleting a line item I am losing one line to enter..... can you please tell me how can I avoid this?
    Edited by: rajatg on Aug 4, 2011 3:12 PM

    lets say...
    i have 1,2,3 documents
    i have cleared , document 2....
    1. when the user selects this record.... you can read the context_element....using the context element you can get the values and clear those values and set the blank values...
    when the user click on save ...you can have only those two records in the table.
    2. conitnue with your logic .... remove_element. once it is done ,,, create_element at the deleted index...
    3. when clicked on delete ...remove_element ( current code).... bind the table to the node... and you will have ur values

  • Acrobat 9.2 crash after exit from Acrobat

    I have a plugin for Acrobat 8.0 and re-compiled for Acrobat 9.0 using the 9.0 SDK.  It works fine except when I exit from Acrobat, Acrobat always crash in any of the Acrobat Pro 9.x versions. The crash log always show the same place.  It does not matter if I disable or enable the update. Always the same place to crash. Does anyone have any ideas?
    Process:         AdobeAcrobat [29144]
    Path:            /Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app/Contents/MacOS/AdobeAcrobat
    Identifier:      com.adobe.Acrobat.Pro
    Version:         9.2.0 (9.2.0)
    Code Type:       X86 (Native)
    Parent Process:  launchd [119]
    Interval Since Last Report:          668 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  24 sec
    Per-App Crashes Since Last Report:   1
    Date/Time:       2009-10-14 15:10:00.939 -0400
    OS Version:      Mac OS X 10.5.8 (9L30)
    Report Version:  6
    Anonymous UUID:  F9997425-181F-4A46-8222-B1BAA9558760
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000015fffcc1
    Crashed Thread:  18
    Thread 0:
    0   dyld                              0x8fe1764c ImageLoaderMachO::doBindLazySymbol(unsigned long*, ImageLoader::LinkContext const&) + 300
    1   dyld                              0x8fe06ed5 dyld::bindLazySymbol(mach_header const*, unsigned long*) + 149
    2   dyld                              0x8fe18c2f stub_binding_helper_interface2 + 21
    3   ...adobe.acrobat.amtlibwrapper    0x188c42e2 0x1883b000 + 561890
    4   ...adobe.acrobat.amtlibwrapper    0x188c4343 0x1883b000 + 561987
    5   ...adobe.acrobat.amtlibwrapper    0x18851355 AVAMTForegroundUpdateCheckEnabled + 84063
    6   ...adobe.acrobat.amtlibwrapper    0x18843989 AVAMTForegroundUpdateCheckEnabled + 28307
    7   ...adobe.acrobat.amtlibwrapper    0x1883cc26 AVAMTForegroundUpdateCheckEnabled + 304
    8   com.adobe.Acrobat.framework       0x803d4a07 AcroSecurityBailOutImpl + 2997119
    9   com.adobe.Acrobat.framework       0x803d4a79 AcroSecurityBailOutImpl + 2997233
    10  com.adobe.Acrobat.framework       0x800ffc97 AcroSecurityBailOutImpl + 28175
    11  com.adobe.Acrobat.framework       0x8038cb91 AcroSecurityBailOutImpl + 2702601
    12  com.adobe.Acrobat.framework       0x8007ff72 AcroBundleThreadQuitProc + 3096
    13  com.adobe.Acrobat.framework       0x7fe43320 RunAcrobat + 326
    14  com.adobe.Acrobat.Pro             0x00002e8b start + 2371
    15  com.adobe.Acrobat.Pro             0x0000264a start + 258
    16  com.adobe.Acrobat.Pro             0x00002571 start + 41

    iPhoto is missing bits of itself. You need to reinstall it.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

Maybe you are looking for

  • I can't remove an e-mail address from Junk Mail

    The Apple Mail Application incorrectly marked an e-mail address as Junk. This documentation is not working for me: Mail (Mavericks): Mark messages I don't see the banner - I can't find the "thumbs up" icon. Anything else I can try? Thanks.

  • Display pdf file using webdynpro abap

    Hi Friends, My requirement is to display pdf file in the second page with the input  text  entered in the fisrt page when clicked on action button( in the first page) using webdynpro abap. Can anybody explain the step by step procedure as I am new to

  • Verify database in db13

    Hi All, Scheduling dbverify action in db13 is getting failed with initialization error "SAP system is running or SAP user is connected to database - database cannot be shut down" Even while scheduling this action it does not prompt the oracle profile

  • How can I get iTunes to recognise my iPod?

    Here's the story: The Pod is in disk mode; it shows up in My Computer but not in iTunes. I followed the steps on the site-- i restarted Ipod Service, reinstalled iTunes, and still no luck. A little while ago, I tried to restore my Pod, but the restor

  • PHP/MySQL multiple checkbox insert

    Hi All, I am creating an order samples page where people can select up to 3 samples. The selected checkboxes will go into a database. How do I insert the selected checkboxes values into a database? I only managed to insert 1 value. Here are the check