How to fire a clear item process on validation error

Hi
this is probably a simple one but eludeing me at the mo...
I have 2 password fields > password and verify password respectively.
I want to be able to clear both fields in the event the password verification validation fails.
I have created a clear cache process with the condition set to 'When inline validation errors displayed' but i don't think the flow of logic goes as far as the processes after validation errors occur??
anybody got a work around?

You can use a function returning boolean validation and when it fails set the items to null before returning false, e.g.,
  if :OLD_PW <> :NEW_PW then
    :OLD_PW := null;
    :NEW_PW := null;
    return false;
  end if;Scott

Similar Messages

  • How to check four cleared items in single assignment number

    Sir, I have passed Entry in F-28 for  payment  received against four bills in single assignment number. Now I want to check four bills in single assignment number in cleared item. Pl advice.
    Ajit Dutta
    Guwahati Airport

    hi Ajit,
    pls try using FBL5N, to display the line items
    Regards,
    nishant

  • Clear Item Cache after validation failure

    Hi Guys,
    I have a page validation that fires when two items (P6_LOCATOR_ID & P6_NEW_LOCATION) are equal which is working OK.
    The field validation is on the P6_NEW_LOCATION field.
    When this validation is true, I want the validation message to appear as it is now, but I want the P6_NEW_LOCATION to be reset to null or the cache for that item cleared.
    I cant run it as a page process after computations and validations because it never gets passed the validations to initiate. I have also tried creating a clear item cache process after the button that initiates the validation is pressed, but again that doesnt work.
    Can anyone think of another way that it can be done?
    Thanks
    Chris

    VC wrote:
    Cashy wrote:
    Thanks for that VC,
    I am getting following error now when it is running
    Error ERR-1002 Unable to find item ID for item "2" in application "195".
    I have set :P6_LOCATOR_ID and :P6_NEW_LOCATION = 2 as the test. When I try to set them both to other numbers i.e. 1,3,4 etc the same error message is returned with the item in the quotes changing for each.
    when you are setting the value use assignment operator
    :P6_NEW_LOCATION := 2
    I am guessing that it might have something to do with the page branching back to itself after the validation is fired?
    Thanks
    HI VC,
    Thanks for that. I am not setting the value of :P6_NEW_LOCATION programatically, I am just putting the value 2 into the field item and pressing the 'submit' button behind which the validation is running.
    Thanks for your help

  • How to reset partial clearing item:

    In my case, I have 5 Downpayment requests and cleared them in one bank posting. But some months later, I found one item is mistake and should be reset and reversed. At the same time other 4 items had been further delt with and can't be reversed again. Now, how can I do to reset this error item but don't affect other posting?

    Hi,
    I think it is not possible to reverse one line item, if there are goup posted.
    Rgds
    sunfico

  • How to commit data when item is being validated

    the problem is, that I have an input field on the form. when
    ever I make changes in it I need to validate the change first.
    and if its validated then I need to make certain changes in the
    database and commit.
    I have written code in when-validate-item, which is called when
    ever I make change in the input field. In this trigger I first
    check data entry is correct and then make certain changes in the
    database and finally when I try to commit the changes I made it
    gives me error message of illegal restriction cannot use commit
    procedure in when-validate-item.
    can anyone help me as how can I validate an input field first
    and then make transactions in the database and commit.
    thanks

    Hi
    I do not know exactly what you want to
    do, so use this with care.
    If you want to commit only the database
    (not forms itself), you can use:
    forms_ddl('commit');
    If you need to commit the form itself,
    in the when-validate-item you can
    create a timer, and in the when-timer-expired
    trigger do a commit.
    Luis Cabral

  • Processing Schema Validation error in BPM?

    Hi all,
    We have a file to IDOC scenario where if the schema validation fails on the file adapter sender agreement, we want to pull the filename and send it in an error email. So, we are talking about the adapter specific message attribute "Filename".
    unfortunately, this does not seem to be available as a container element for alert catagories in ALRTCATDEF. So, we are starting to look into using BPM to send a email via the email adapter. However, since the validation happens prior to BPM being called I am at a bit of a loss. Any ideas on how to get the email with the filename out to the suport group would be appreciated.
    Thanks,
    Chris

    package com.validate;
    import com.sap.aii.mapping.api.*;
    import com.sap.aii.mappingtool.tf7.rt.Container;
    import java.io.*;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.*;
    public class ValidateXML extends AbstractTransformation {
        public void transform(TransformationInput transformationInput, TransformationOutput transformationOutput) throws StreamTransformationException {
            OutputStream outputstream = null;
            try {
                InputStream inputstream = transformationInput.getInputPayload().getInputStream();
                outputstream = transformationOutput.getOutputPayload().getOutputStream();
                byte[] b = new byte[inputstream.available()];
                inputstream.read(b);
                String XMLinputFileContent = new String(b);
                // define the type of schema - we use W3C:
                String schemaLang = "http://www.w3.org/2001/XMLSchema";
                // get validation driver:
                SchemaFactory factory = SchemaFactory.newInstance(schemaLang);
                //Place XSD file in PI server same as http://help.sap.com/saphelp_nwpi711/helpdata/en/44/0bf1b3ec732d2fe10000000a11466f/frameset.htm
                //OR I think you can place any where on server.
                File XSDfile = new File("C:/xi/runtime_server/validation/schema/SchemaFile.xsd");
                // create schema by reading it from an XSD file:
                Schema schema = factory.newSchema(new StreamSource(XSDfile));
                Validator validator = schema.newValidator();
                // at last perform validation:
                validator.validate(new StreamSource(XMLinputFileContent));
                //If XML it not valid, exception will be thrown, if it is valid sent this PassOutputXML to output
                String PassOutputXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns:MT_OutputXML xmlns:ns=\"http://sap.com/xi\"> <Name>FileName.txt</Name><Validation>Pass</Validation> </ns:MT_OutputXML>";
                outputstream.write(PassOutputXML.getBytes());
            } catch (Exception exception) {
                //Get File name using http://help.sap.com/saphelp_nwpi711/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
                Container container = null;
                DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
                DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
                String inputFileName = conf.get(key);
                String FailOutputXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns:MT_OutputXML xmlns:ns=\"http://sap.com/xi\"> <Name>" + inputFileName + "</Name><Validation>Fail</Validation> </ns:MT_OutputXML>";
                try {
                    outputstream.write(FailOutputXML.getBytes());
                } catch (IOException ex) {
                    exception.printStackTrace();
                    ex.printStackTrace();

  • Process flow: validation error: VLD-10010

    OWB 10.2 process flow: I simply put a mapping in a process flow between the START and END activity and want to validate it.
    But I get the error:
    "VLD-10010: MAP_TEMP_POS's bound object null of type null?? has been deleted."
    The mapping itself is alread deployed and the error is the same with other mappings.
    Workflow is installed and owf_mgr user is registered as data warehouse target schema.
    What can I try?

    Problem solved.
    Mappings should be dragged vom Explorer: "Available Objects"
    into Process flow.

  • Cleared items to be open.

    Hi,
    How to convert d Cleared items in to open items documents.
    Reg/Vs

    Dear Vinu,
    Go to FAGLB03, select the GL Account Appearing in your FSV that is showing the Open item. This must be your recon account for Customers > Execute the report.
    This report will display All items of all customers assigned to this recon account. Filter out Open items only. After this, Press Control F8 to change the layout > Include the customer in the layout. Once you have done that, Click on the customer column in the report and Press Control F1 (Subtotal). You will be able to display the customers balance appearing in your FSV.
    You can also display Customer Balance report through the T-CODE "J3RFDSLD". You will be able to see the balance of all customers.
    Best Regards,
    Anss Shahid Essani
    Edited by: Shadow_sirjee2005 on Mar 5, 2011 3:56 PM

  • Cleared Items in SAP shows "0" in AP Report in BW?

    Hi
    We have a AP: Days overdue analysis report based on std DS 0FI_AP_3. The report shows clear items as well in the BW report.
    can anyone explain me the purpose of the AP report and how to make the clear items not display in the BW Report?
    Thanks in advance
    Ishi

    Hi,
    The DS is to get Payments done to Vendor. So the query based on it will provide you with list of outstanding payment that are overdue and my attract interest. Mainly a Finance department concern.
    Second - there is a field in the datasource that defines the status of the document. Filter your query based on the field of your requirement and you'll get what you want.
    STATUSPS -  Status of the FI item (O = open, C = cleared)
    Hope this helps
    Raj

  • How to clear items / cache in Apex 4.2

    Can someone explain how clearing cache or session state processes are supposed to work in Apex 4.2?
    I have an application that allows the user to look up records by last name or by social security number
    A look up by SSN is one to one and takes the user to a detail page
    A look up by NAME displays a list of names where the user can select a user and display the same detail page
    The problem is that the application retains the social security number from one look up to the next. So it keeps displaying the same record
    even if you enter or select a different SSN.
    I've tried creating session state processes to either clear specific items or clear the cache on a page, but nothing seems to work.
    Maybe the problem is that I'm not understanding the options for creating these; it says things like  on load before headers, on load after headers, on submit before calculations, after calculations, etc
    The application is read only.  Logically to me, if you are linking from one page to another you need to save the value in the item  but if you are doing a  new search you need to clear it
    So I thought that on the detail page I should clear the items, or clear the cache on the page after submitting
    But can't get this to work

    heres an example
    Page 1 has items P1_SSN and P1_NAME  as well as hidden items P1_TEXT and P1_TEXT2
    The button affiliated with p1_NAME takes the user to page 2 that displaces a list of match names. it has a link which goes to page 3 where P3_SSN matches #SSN#
    The button affiliated with p1_SSN takes the user directly to page 3 where p3_SSN matches #SSN#
    If I log in and search by SSN first, when I get to page 3 I have the correct record
    If I look up by name , I get the list and select a record by SSN I still have the correct record
    then I go back to Page 1 and search by SSN, entering a new SSN. I always get what ever record I previously pulled up when searching by name and selecting from the list
    On Page 1 , I have a process that says on load before regions clear items and I list all the items
    Similarly  on page 3 I have a process after submit and calculations that clears the items
    When creating these processes it asks to list the items, separated by comma. The only place to enter PL/SQL is under conditions, this is not conditional on anything, it should always clear the cache.
    I use this same logic on different pages in the same application - different tables but same flow. It works there. I don't see why it doesn't work here

  • How to reset an open item that was suppposed to have been cleared.

    Good Day
    how to clear an open item, when you have already paid the Supplier but on the system it still shows as an open item instead of a cleared item.
    Regards
    Moderator: Please, avoid asking basic questions

    Hi ,
           First u need to check against the payment made as Partial or Residual or else you need to check the Vendor advance payments for this u should clear the open Items through T.code F-54 after You need to clear final T.code F-44 Complete clear Item.
    Pls check for Against Advance payment you need to go F-54 and clear F-44.
    Cheeers-------
    Sridhar

  • Reg: how to reverse the partial cleared items

    Hi Gurus
    1) how to reverse the partial cleared items
    and
    user posted wrogly below:
    2) actually amount received against invoice but she posted in f-02 insted of f-28 so how to reverse this

    Hi,
    I think you should do the following:
    1. T.code - FBRA - to reset the cleared document.
    2. T.code - FB08 - to do the reversal after resetting.
    See if it helps.
    Regards,
    SGP

  • How to reset clearing items programmaticaly?

    Hi !
    I need to reset clearing items from ABAP. I've tried to use the CALL_FBRA, but in simulation mode I it says that the period is closed? what parameters should I use? is this the way??
    Regards,
    Matias.

    Hi Sunil !
    Thanks, for answering.
    The posting period should not be a problem. If I go manually to the FBRA tx via SAPGUI, and I enter one document number whose date is in a closed period and select "reset only", it resets the document automatically without problems. It works.
    BUT, if I try to use the call_fbra, for that same document, it says that the posting period is closed. If I try to specify a date for I_STODT, to make call_fbra use this, it keeps saying the posting period is closed for mode 01...but I'm not specifing any mode...in fact, I don't know how to specify it.
    Any clues.
    Regards,
    Matias

  • HOW TO DISPLAY VENDOR WITH NO OPEN CLEARED ITEMS

    Hi All,
             We want to delete some of the vendors which do not have any open or cleared items. Can anyone tell me the report ,T Code or ant table which we can run to display the vendors with no open ,clear items.

    you will have to first block the vendor for the posting in co.codes using FK05 and then assign that vendor for deletion flag using FK06 , in the next archive run it will be deleted automatically.
    You cant just delete the vendor from the system
    Assign points if helpful.
    Shefford

  • How to convert a open item become cleared item without using F-32

    Dear experts,
    Can I convert an open item become clear item without using F-32.
    Please help.

    Hi,
    You can use F-28.
    If it's useful assign points
    Thanks&Regards,
    Kumar

Maybe you are looking for