Validation before SAVE

Hi,
I have the following problem.
In a table in forma I have a function in
the WHEN-VALIDATE-ITEM trigger which stores
away an ID # for each row that has been
'CHANGED'.
Later when the user tries to SAVE the changes
I want to process all those stored IDs and present a new window for the user to show him
what other changes will be made because of the changes he has made.
I also want to give the use a chance to cancel the SAVE at this time.
I show the window using a GO_BLOCK and the
a SHOW_WINDOW call. But the GO_BLOCK is a
restricted procedure and I haven't found a trigger yet that allwos me to do this.
Anyone have any ideas for a solution ?
Thanks in advance.
Regards,
Klas Malmstrom

If you just want to show the changed record ID's # then create a new block with no database attachements.
In this block create a Tlist create this Tlist in a different canvas which is stacked type, so it won't show with your datatbase fields. Make This list disabled.
Now use When-Validate-Record trigger in your database block. This only fires for record which is changed. In this trigger add current record ID # to Tlist. You can do this at runtime using functions, I think ADD_LIST
or something like that.
Now use pre-commit tirgger and show the Tlist canvas. This will show user which records are changed.
Now in this canvas you can provide buttons save and cancel. if save is pressed then save all record and if cancel is pressed then you can close form without saving.
You may require minor changes in the process.
Hope this will work for you
Hope this will work.

Similar Messages

  • Help: data validation before save or after execute query

    Hi,
    The issue that I have are:
    1. A form allows user to insert and save records. When user press the save button, Instead of have an oracle error message: "FRM-40508: ORACLE error: unable to INSERT record," I'd like there be some step taken to send an alert to user if the user does not enter the date meets the fields constraint(s).
    2. Same for the execute query button, when there are no records return from the query.
    Thank you.
    Jimmy

    Thank you all, 437901(error or informative?), Ajani, Denis and Steve. It worked out with ON-MESSAGE trigger by catching message_code.
    Thanks again.
    Jimmy
    P.S.
    In Oracle9i forms developer Reference Guide, the example is misleading:
    ERROR_CODE Examples
    ** Built-in: ERROR_CODE,ERROR_TEXT,ERROR_TYPE
    ** Example: Reword certain FRM error messages by checking
    ** the Error_Code in an ON-ERROR trigger
    ** Trigger: On-Error
    DECLARE
    errnum NUMBER := ERROR_CODE;
    errtxt VARCHAR2(80) := ERROR_TEXT;
    errtyp VARCHAR2(3) := ERROR_TYPE;
    BEGIN
    IF errnum = 40301 THEN
    Message('Your search criteria identified no matches...
    Try Again.');
    ELSIF errnum = 40350 THEN
    Message('Your selection does not correspond to an employee.');
    ELSE
    4-170

  • Running validation before the 'save as' script

    Hi
    I'm looking for a steer on how to run form validation before implementing the 'Save as' script - is this even possible??
    Basically I want the save as script to run in the click event of my newly formed save button only if the validation script returns a positive value i.e. all mandatory fields are completed, I've used the script below:
    if 
    (form1.execValidate()== "false"){
    app.execMenuItem("SaveAs");
    Any chance someone could point me in the right direction or am I barking up the wrong tree?
    Thanks

    got it to work: my script was wrong, it now looks like this:
    if 
    (form1.execValidate()== true){
    app.execMenuItem("SaveAs");

  • Badi PO before save

    does anyone know any badi for PO before save?
    i need validation to popup a message before save.

    Hi Oscar,
    I have quickly gone through the documentation, but I guess ME_PROCESS_PO_CUST is the one to use (this one is meant for customer enhancements). Also take a look into the documentation of Interface IF_EX_ME_PROCESS_PO_CUST.
    Probably method POST is called in update task, this is why your program will not stop at this point (unless you activate update-debugging).
    Regards,
    John.

  • How can i find my errors during project validation before burning my project

    How Can I find the errors during the project validation before burning the project??

    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Can we apply custom validation before uploading data in WebADI in 12.1.3

    Hi,
    I have requirement of applying custom validation before uploading data from spreadsheet using webADI. How can we do that.
    Is there any way in desktop Integration Manager Responsibilty in WebADI.
    I have just started exploring webADI
    Please Help Me...
    Thanks,
    Suhani

    Why are you posting this in OAF?
    Anyway you can by creating a custom PL/SQL wrapper that is called by the WebADI.
    Raise an application ERROR in your wrapper and it will show in the WebADI
    If you just want to validated VALUES, you are better of creating an LOV on the Column. Then WebADI will do the validation work for you.
    Jeroen

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • I need Badi for PO Before save.

    Hi Abappers,
    i want Badi name for PO Before save.
    Regards,
    vani.

    Hi,
    To find the badi for a particular transaction goto TCode SE24 and give the class name as CL_EXITHANDLER and then display it. now double-click on GET_INSTANCE you will get some source code , put a break point on class name and give TCode on command field then debug . double click on class name and go on pressing F5, you willl get list of BADI's and according to your requirement choose the right one.
    Second procedure:
    Go to SE84, Enhancements< Business-addin< definition(double click) and give package name of particular transaction then you will get BADI's. Read documentation by going to SE18 or SPRO and choose the right one according to your requirement
    I think ME_PROCESS_PO_CUST may satify your requirement.

  • Validation before Digital Signature

    Hello everybody,
    I created a form in Lifecycle ES working like a charm.
    Now i have added a JavaScript for validating the entries in the Form.
    My idea is to launch the validation before the user enters the signature. When the signature is added the validation must have been passed successfully.
    I have begun with adding an event_enter JS to activate the validation.
    The Problem is that the signature dialogue box opens anyway. How can I get rid of this dialog box?
    Thank you for your kind help
    Best regards
                           Ch. Du Champs

    Please post in the LiveCycle Designer ES forum.

  • Opportunities - Delete item before save - BADI

    I need to do some checks when adding a new item in an opportunity and depending on these checks, this item must be removed before save.
    I tried in the BADI's ORDER_SAVE and CRM_ORDERADM_I_BADI, using several function modules like: CRM_ORDER_MAINTAIN,  CRM_ORDERADM_I_DELETE_OB, ... but all without result. Using the xxx_OB function modules in the CRM_ORDERADM_I_BADI resulted always in shortdump after the BADI processing.
    Anyone who had to do something similar?
    Thanks a lot!

    Hi Filip,
    I need to understand better what sort of checks would you like to carry out
    <b><u>In my case I needed to cover or block a field in a crm order item, if the status of invoice in status tab at header level, was  "invoice issued".</u></b>
    I used CRM_ORDER_FIELDCHECK as Badi definition.
    I define the code in this way, overwriting the method FIELDCHECK with abap code just to block the field quantity at the item level, as said:
    Code structure:
    1 tables  and structures for CRM_ORDER_READ;
    2 Definition memory parameters
      3 Selection document item by using CRMD_ORDERADM_I to get item-guid
        4 Selection doc number, by usign item-guid
           5  call of  funcition module 'CRM_ORDER_CHANGE_STATUS_GET'
             6 Status check and field quantity blocked (grey colour = A), if status is equal C.
    If you need to change an existing document I suggest using,  as said in the forum, <b><u>Crm_order_maintain, or better employing BAPI CHANGEMULTI</u>[/b<b><u>], which is using CRM_ORDER_MAINTAIN.</u></b>
    I suggest using Bapi 'cause it 's easier to manage, especially concerning Internal tables.
    I had to change Price condition in my CRM ORDERS, when I used such bapi and/or FM crm_order_maintain.
    Just let me know your changes better.
    Please rewards with points if it helps,
    AndreA

  • Content validation before uploading file

    Hi,
    We want to do some validations before uploading an excel file to OBIEE :
    1 - check the file extension
    2 - do some data validation on the content of the excel file.
    I succed in doing the first step by adding some javascript customization to OBIEE javascript files. However, i cant do the second step with javascript, because i need to read the excel file content and make connection to a database to perform the validation.
    Is there any way, to do the validation in server side so that i can read the excel file and make the database connection with a java code.
    Thanks.

    Hi,
    Actualy, users produces some informations about production. These informations are in excel files because there is no application for this business area. Also they want, throw OBIEE 11g portal, to upload their files them selves, have a validation workflow of the file in obiee, and then automatically copy excel files content in a oracle tables and create some reports on these tables.
    I dont know if these needs are possible in the obiee 11g platform, so i start doing a prototype. Now, i'am in the first step of uploading the excel file into a folder in the obiee catalog. However during the upload a file a need to do some technical validations (null values, numeric values, ...) and check if the value of a specific column exists in a table on an other database.
    Therefor, the xls file is not a variable it's uploaded every time a user wants it. The production environnement of obiee 11g is AIX, however for the prototype, i will user an environnement on windows.
    Thanks.

  • 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

  • Web Services validation before provisioning request completes...

    Hi All,
    We are working on Web Services validation before provisioning request completes to see if there are duplicated in target database. Is this possible?
    We want to check in target database for value if exists prior to provisioning the request and fail the provisioning process if the value is duplicate.
    For Eg:
    Input with ApplnID:5221 while provisioning and check in target database if ApplnID:5221 exists and then to continue provision.
    This is similar to what we are executing in our development environment.
    Can you please suggest any idea if you have worked on this earlier
    Thanks,
    Subbu

    xmllint is correct. Here's what the 1.1.3 XSD says (I put in the leading periods to fool the discussion board into preserving structure ):
    . <xsd:element name="ITunesUDocument">
    . . <xsd:complexType>
    . . . <xsd:sequence>
    . . . . <xsd:element ref="Version" minOccurs="1" maxOccurs="1"/>
    . . . . <xsd:element ref="AddCourse" minOccurs="0"/>
    . . . </xsd:sequence>
    . . </xsd:complexType>
    . </xsd:element>
    If "minOccurs" or "maxOccurs" aren't specified in sequence elements, then they both default to "1". So the "minOccurs" and "maxOccurs" specifiers are redundant in the "Version" element specification…they'd be "1" anyway. Setting "minOccurs" to "0" means that you can omit the element in XML…but unless "maxOccurs" is set, than the most any element can appear in the sequence is once to be valid. "unbounded" can be used in "maxOccurs" to set no limit on the number of times it can appear in the sequence.
    Recall that XML doesn't necessarily have to validate to "work". An XML validation is a contract between us and Apple…Apple promises that we can put at least one "AddCourse" in an "ITunesUDocument" and that is going to work, or our money back. But if we don't submit valid XML, it might still work…but there is no promise there either. It might work today, it might fail tomorrow. The iTunes U people have said, in various venues, that we should expect Apple to validate our XML…but nobody's perfect. It could be that Apple just missed this one…but we should still write code under the assumption that the XSD is being correctly applied and that our XML is being validated on Apple's end. That way, our code can never be "wrong".

  • Validation before getDBTransaction().PostChanges

    Hello? my Jdev version is 11.1.2.3.0.
    Can u tell me please how to programmatically raise entity and entity attributes validations before PostChanges command?
    Edited by: user11274766 on 07.11.2012 4:27

    Try calling validate() on the row...
    Timo

  • How to change order header data before SAVE in CRM 2007

    Hi,
    I want to modify service order header value before saving it, to achieve this :
    1) Implemented BADI ORDER_SAVE
    2) in the method CHECK_BEFORE_SAVE, read order details by using FM CRM_ORDER_READ and done all validations.
    3) Now i want modify one field value. how to do that ?
    i came to know that by using FM CRM_ORDER_MAINTAIN or CRM_ORDERADM_H_MAINTAIN_OW data can be update/modify.
    Is this right ? what are the parameters i need to pass and exactly in which method i have use this FM.
    I want to pass the value in CRMT_ORDERADM_H_WRK(ET_ORDERADM_H) structure i.e. only for one filed.
    Please let me know how it can be done.
    Thanks
    Bhanu

    Hi,
    I am using following code, please correct if it is wrong.
    DATA : IS_ORDERADM_H_COM  TYPE CRMT_ORDERADM_H_COM,
               CT_ORDERADM_H  TYPE  CRMT_ORDERADM_H_COMT,
               IT_INPUT_FIELDS    TYPE CRMT_INPUT_FIELD_TAB,
               WA_INPUT_FIELDS    TYPE CRMT_INPUT_FIELD,
               IT_FIELD_NAMES     TYPE CRMT_INPUT_FIELD_NAMES_TAB,
               WA_FIELD_NAMES     TYPE CRMT_INPUT_FIELD_NAMES,
               IT_SERVICE_H       TYPE  CRMT_SERVICE_H_COMT,
               WA_SERVICE_H       TYPE  CRMT_SERVICE_H_COM.
    After reading order header data from "'CRM_ORDER_READ", pass header data to below structure
        MOVE-CORRESPONDING EW_ORDERADM_H TO IS_ORDERADM_H_COM.
       IS_ORDERADM_H_COM-ZZFLD00000Y = '123456'.  <== want to save value in this field created on service header screen by using AET
        APPEND IS_ORDERADM_H_COM TO CT_ORDERADM_H.
        WA_SERVICE_H-REF_KIND = 'A'.
        WA_SERVICE_H-REF_GUID = EW_ORDERADM_H-GUID.
        WA_SERVICE_H-MODE     = 'B'.
        APPEND WA_SERVICE_H TO IT_SERVICE_H.
        WA_INPUT_FIELDS-REF_GUID = EW_ORDERADM_H-GUID.
        WA_INPUT_FIELDS-REF_KIND    = 'A'.
        WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'. <= Is this right ?
       WA_INPUT_FIELDS-LOGICAL_KEY =  ? what is nothing but logical key
        WA_FIELD_NAMES-FIELDNAME  = 'ZZFLD00000Y'.
        WA_FIELD_NAMES-CHANGEABLE = 'X'.
        APPEND WA_FIELD_NAMES TO IT_FIELD_NAMES.
        WA_INPUT_FIELDS-FIELD_NAMES = IT_FIELD_NAMES.
        APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
       IT_SERVICE_H                  = IT_SERVICE_H <= is this required ?
        CHANGING
           CT_ORDERADM_H              = CT_ORDERADM_H
          CT_INPUT_FIELDS                = IT_FIELD_NAMES
         EXCEPTIONS
           ERROR_OCCURRED                = 1
           DOCUMENT_LOCKED               = 2
           NO_CHANGE_ALLOWED             = 3
           NO_AUTHORITY                  = 4
           OTHERS                        = 5.
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    awaiting for your replies
    Thanks
    Bhanu
    Edited by: Bhanupracash on Apr 6, 2011 2:14 PM

Maybe you are looking for

  • Other web browsers and security issues?

    Since even an Apple KB article recognizes the need for an additional browser and because of Safari's limitations and problems, I'm going to try switching to another browser (most likely OmniWeb and am looking at Firefox, Shira and Opera also though p

  • Store a double into a variable of type int

    if I have a calculated value of type "double", and I would like to store it as an "int" in a variable of type "int". when i casted the double to int, seems it doesn't work. what should the command be? Thanks in advance!

  • External drive won't mount- which software is best for data recovery?

    Hi, My external OWC drive won't mount to the desktop. It is visible in Disc Utility, but can't be manually mounted from there. Verify and Repair disk functions state that the disk appears ok (log below): Verify and Repair volume "OWC Mercury Elite AL

  • The result of a direct action returned NULL/nil.

    I'm new to Macs so please bear with me. I've been tasked with setting up a new iMac (20 inch display - totally stock - bought on Saturday.) After plugging it in and started running through the registration, setting up the wireless access then it look

  • N8 anna we browser problem ?

     Web browser wont open, opera mini working and internet connection,but browser wont start,also accuweather wont work as widget ? And is there a search option in music player i couldnt find it... thanks