How to check old and new value for a text item attached to a lov?

Hi,
I am new to Forms.
I need your help in following.
I have a form which has a text item which is attached to a LOV. I want to track what changes are being done using that form. So i want to know what was old value and what is new value.
I can get the new value as it is there in form field. how can i know what was the old value.
Thanks
Prashant Pathak

This is wrong:
name_in(':' ||l_audit_block.field_name)
this is right and will get you the current value of the the item:
name_in('l_audit_block.field_name');
Assuming the name of you block is "l_audit_block" and the name of your item is "field_name".
Please note name_in() returns your current value for an item. In your case this may or may not be the "old" value. I define "old" value as the value it was when it was queried. If that is what you are looking for you need to use the get_item_property() call that Steve described above.
--pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to fetch  old  and  new value  from of a   field(non-key)  from LOGDATA

    Hello SDNers,
    i  m fecthing LOgdata  from  dbtlog table[in  our  case  the  log  is  not  getting  Updated  in CDHDR  and CDPOS table]
    i  m  using  the  same  logic  as  it  is  used  in  RSVTPROT
    but  the  problem  is
    "  IT  is  fetching  OLD  and  NEW VALUE  after  Update from same  field LOGDATA  of  dbtlog  table BUT  when i  used  same  logic  it  is  FEtching  only  OLD  VALUEs,
    CAN  U  GUYS  PLS  TELL  ME  HOW TO FECTH  OLD  VALUE  and  NEW  VALUE  of a PArticular  field(non-key field, fecthing  key  field  is  not an  issue) From LOGDATA  field  of DBTLOG.
    thx  a  lot  in advance
    Regards
    Kuldeep

    Hi,
    May be this link is useful to you.

  • How to provide space and new line to the text in AI Script

    how to provide space and new line to the text in AI Script

    ?? can you explain better, can you at least add another sentence?
    space
    var mySpace = " ";
    new line
    var newLine = "\n";

  • T.code FF7A: how to see old and NEW open items?

    Hi All,
    I've filled the "Cash Managemeng Group" in the master data of a Customer.
    The report Cash Manag.& Forecast doesn't update its old open line Items.
    Only the documents successive to the insertion of the "Cash Managemeng Group" in the master data are updated in the report.
    Could anyone tell how to obtain all the items (old and new) in the report?
    Thanks
    Gandalf

    There are a couple options depending on the additional details of your situation....
    Within t-code FDFD, there is a button labeled Data Setup.  This button is intended for use when cash management (CM) is activated for an existing company code and CM needs to be updated with transactions created prior to the activation.  It deletes all data in cash management for the Co.Cd. and then builds the CM data for all GL, customer and vendor accounts.  There are also options to update CM for other areas (Sales, Procurement, Treasury, etc.)
    Also within t-code FDFD, there is a button labeled Correct Data.  This button can be used instead of the Data Setup button, if the CM data for a particular area needs to be corrected.  This function has the following options:  All GL accounts, All GL accounts with open items, All GL accounts w/o open items (non-open item managed accounts), All Customers/Vendors, All Customers, All Vendors.
    It's best to run these functions when transactions are not being created on the system.
    Regards,
    Shannon

  • OIM 11g API to retrieve old and new values

    Hi
    In Self Service profile, when I modify user data, OIM is triggering an approval workflow. Our requirement is to use API which should retrieve old value and new value of the attribute when the request has been raised.
    We tried to use getTargetEntities() but it is retrieving only new values. Is there any other API which can do the needful?
    Thanks

    Use this :
    HashMap<String , Serializable> eventDataMap = new HashMap<String , Serializable>();
    eventDataMap.putAll(orchestration.getInterEventData());
    HashMap currentUserState = new HashMap(); //HashMap that contains old values
    HashMap newUserState = new HashMap(); //HashMap that contains new values
    currentUserState.putAll(((User) eventDataMap.get(CURRENT_USER)).getAttributes());
    newUserState.putAll(((User) eventDataMap.get(NEW_USER_STATE)).getAttributes());

  • How do I get a new value for the service name field and update it in Connection Properties?

    I am running Windows Vista. I just upgraded to Firefox 4. When I try to log on to the internet, it tells me the proxy server is refusing connections. A diagnostic reported Error 815 and said the remote server is not responding because there is an invalid value for the "Service Name" field. It said to get a new value and update it in Connection Properties. How do I do this?

    When you create a new film script, the first page you see is a title page.
    The page after this title page is the one where you generally type in your scenes.
    It looks like you are facing some issue and not able to delete any text.
    Can you please send me this script so that I can have a better look at your issue?
    You can save this script to disk by using option 'File -> Save to disk'. This will create a '.stdoc' file on your system.
    Just mail this '.stdoc' file to me at 'roverma <at> adobe <dot> com'
    Thanks

  • New iMac-how to use old and new

    So, I'm in the middle of migrating my settings from my old iMac to my new iMac. I've already started transfering my settings and applications.
    I was going to give my old iMac to my husband, who now has a MacMini. After I started transferring, he told me I should just keep both iMacs for working. It would actually be convenient - Keep one for having browser, planning, mail, business apps open at all times and the other for heavy-duty Photoshop, etc. work.
    What should I do to be able to work on both? Do I need to re-do my set up on the new  one? The settings and apps really should be the same any way - do I need to create a different user?

    Do I need to set up a different user on each computer?
    No
    Right now, becuase I was in the process of migrating, the new iMac is a duplicate of what's on the old. Do I need to create a new user on one and delete it on the other? What happens if I have the users duplicated?
    Not necessary, when you migrate it will make a clone of the other machine if you choose all options. If you want then to remain synced  you can do so with the same user account and AppleID assuming you use iCloud and both machines are on Lion. You can sync what I noted in my first post.
    I want to use one more for light business apps and one for my image processing.
    If your goal is to sync apps and data currenlty there isn't an automated method of doing that other than keeping the data on an account such as DropBox. If you don't have a DropBox account then that may be what you're looking for however you will have to pay for data in excess of 2GB. The first 2GB is free.

  • 2 List of Values for 1 Text Item

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Hi,
    I have this text item on a block, 2 records groups, the user wants this functionality -
    When in Enter Query display first record group and at any other time display the 2nd record group.
    Can anyone please give me a clue how to accomplish this?
    Thanks

    You can also use one lov and do somesthing in the query like:
    SELECT COL
      FROM TABLE
    WHERE (CONDITION AND :SYSTEM.MODE='NORMAL')
        OR (OTHERCONDITION AND :SySTEM.MODE='ENTER-QUERY')

  • How to use audit command to track the old and new values by any DML?

    Hi,
    I want to track all the changes done by any DML. I also want to capture who did it, when it was done and where it was done.
    Or is it possible to capture the user realted details in CDC feature of Oracle 10g?
    Which will be the best possible solution?

    You can Capture DML statements fired on a database by the following way, too.
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.22
    satyaki>
    satyaki>AUDIT ALL BY SCOTT BY ACCESS;
    Audit succeeded.
    Elapsed: 00:00:01.80
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • Review Page old and new values

    Hello everyone,
    In the review page of my custom page, along with the existing details, i also want to display the old values(default values when the page opened). I know we can do this by saving the existing values in the session variables but i was just wondering if there is any other way to do that as we have this wonderful feature of ViewObject in OAFramework.
    Thanks in advance for your help.
    PK

    Hi,
    Try the following, it might help,
    Create two ViewObject Instances(like VO1, VO2)
    When you load the page, execute both the VOs and get the existing values,
    But associate your page items to only VO2,
    After updating the values, check the values in VO1,
    This should be your existing values.
    Thanks.
    With Regards,
    Kali.

  • :OLD and :NEW values comparision in OAF

    Hi All,
    I have a requirement in which i have to compare some fields whether they are updated or not.
    If any update is done i have to perform some action.
    Is there a scope in OAF to capture whether the field is updated or not.
    Regards,
    Krishna

    Hi,
    For that, you can create global variables for each field on which u want to perform the check.
    Then assign them their current values in PR method.
    Now wherever u want to put the logic, just get current values of those fields and compare them with global variables.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • HT4527 So my computers switched the 'old' and 'new' computers for the homesharing option.

    Old computer is running Windows 7
    New computer is running windows 8
    Both are connected over the same cable modem.
    I followed the instructions to the letter and it kept doing it.
    HELP!!! I need my music on my laptop as I am going to be traveling alot.

    I am not familiar with "transfer manager." Did you perhaps use the Migration Assistant? What operating system is installed on your new computer?
    If you look in your hard drive, in the Users folder, do you see a folder with the name from your user on your old computer?
    Best of luck.

  • Get old and new values from DBTABLOG table

    Hi,
    I am developing a report to display all changes to some fields of PKHD table over a date range. CDHDR & CDPOS do not capture the changes while DBTABLOG does. But the variable key field (LOGDATA) in DBTABLOG does hold encrypted values which need to be decrypted. Is there any FM or a way out to get them ?
    Please let me know. Thanks a lot.
    Regards
    Neeraj

    Use DBLOG_READ and then work with the data like in the following sample
    * Constants (cf. SAP RSVTPTOP)
      CONSTANTS: type_i4 LIKE x031l-fieldtype VALUE 'AC',       "UF160698B
                 type_i2 LIKE x031l-fieldtype VALUE 'A8',
                 type_f  LIKE x031l-fieldtype VALUE '88'.       "UF160698E
    * First - informations from directory
            REFRESH fld_list.
            CALL FUNCTION 'GET_FIELDTAB'
              EXPORTING
                langu                     = sy-langu
                only                      = ' '
                tabname                   = 'TEVEN'
                withtext                  = 'X'
    *       IMPORTING
    *         HEADER                      =
    *         RC                        =
              TABLES
                fieldtab                  = fld_list
              EXCEPTIONS
                internal_error            = 1
                no_texts_found            = 2
                table_has_no_fields       = 3
                table_not_activ           = 4
                OTHERS                    = 5.
            LOOP AT fld_list INTO fld WHERE keyflag = 'X'.
              ADD fld-intlen TO keylen.
            ENDLOOP.
    * Then extract data log
            REFRESH obj_list.
            obj-tab = 'TEVEN'.
            INSERT obj INTO  TABLE obj_list.
            CALL FUNCTION 'DBLOG_READ'
              EXPORTING
                from_day                   = s-aedtm-low
    *           FROM_TIME                  = '000000'
                to_day                     = s-aedtm-high
    *           TO_TIME                    = '235959'
                obj_list                   = obj_list
    *         ACCESS_DATABASE            = 'X'
    *         ACCESS_ARCHIVES            = ' '
    *         AUTO_ARCH_SEL              = ' '
    *         USER_LIST                  =
              CHANGING
                log_list                   = log_list
              EXCEPTIONS
                archive_access_error       = 1
                no_archives_found          = 2
                OTHERS                     = 3.
    *   Extract data from returned tables
            LOOP AT log_list INTO log.
              LOOP AT fld_list INTO fld.
                IF fld-keyflag = 'X'.
                  ASSIGN log-logkey+fld-offset(fld-intlen)
                    TO <hexa> TYPE 'X'.
                ELSE.
                  fld-offset = fld-offset - keylen.
                  ASSIGN log-logdata+fld-offset(fld-intlen)
                    TO <hexa> TYPE 'X'.
                  fld-offset = fld-offset + keylen.
                ENDIF.
                CASE fld-inttype.
                  WHEN 's'.
                    f_type = type_i2.
                  WHEN 'I'.
                    f_type = type_i4.
                  WHEN 'F'.
                    f_type = type_f.
                ENDCASE.
                IF 'sIF' CS fld-inttype.
                  feld = <hexa>.
                  CALL FUNCTION 'DB_CONVERT_FIELD_TO_HOST'
                       EXPORTING
                            type        = f_type
                       CHANGING
                            field       = feld
                       EXCEPTIONS
                            wrong_param = 1
                            OTHERS      = 2.
                  ASSIGN feld TO <hexa> TYPE 'X'.
                ENDIF.
                ASSIGN <hexa> TO <char> TYPE 'C'.
                teven+fld-offset(fld-intlen) = <char>.
              ENDLOOP.
    *     Here structure teven is filled
            ENDLOOP.
    Regards

  • Fetching old and New Data in HRMS for 'Update' Transactions

    Hi All,
    I need to find out the old and new values for a person_id from HRMS tables (Per_all_people,Address,contacts etc) based on Person Id. Do we have any Standard Script or has someone prepared such script and can share with me. I am not expecting the Corrected records to be fetched as it overrides the same line but atleast for such records which comes under 'Update'.
    For Example, If for Perso_id 123, the Telephone# was 8888 and then it is updated to 9999. So my query Should return somethign like:
    Information From To Effective Date
    Telephone 8888 9999 28-Nov-2011
    Note: Can't use any triggers.
    Thanks

    Hi,
    You need to include a new keyfigure in the cube and map with both the new and old compcodes and the write a field routine with the logic that meets your requirement by passing the values of  PSPNR into the internal table and get the output for the keyfigure value. Also you use if else condition as per the requirement.
    Hope this helps...
    Rgs,
    Ravikanth.

  • How to access each row value for a database item

    On my form I have a database datablock that represents a table in my database.
    5 rows are shown with a scroll bar that can be viewed to show the rest.
    The user is able to change some of the Database Item values represented in this datablock for any row shown in the datablock.
    I need to validate the correctness of the users change before allowing the database datablock to update the table in the database.
    But a database item in a datablock will represent a value for every row in the table. So how do I access each row value for a database item separately. What is the PL/SQL syntax?
    thanks,
    michelle

    In my situation it was better to use the loop instead
    of a when validate trigger because...Well it was clearly not better to use a loop that doesn't work. I don't understand what you're not clear on about the item and record validation triggers. If you have a specific validation rule for a single field (such as a date that cannot be in the future), that would go in a When-Validate-Item trigger on the date item. If the user enters a future date, your code would display an error message and raise a failure. Raising a failure prevents the item from being marked as valid. Invalid items prevent the record from being inserted/updated. Sometimes you have a validation rule that requires looking at more than one item at a time, such as two items that must either both be NULL or NOT NULL. In that case, you could not use a When-Validate-Item trigger because you can't clear or populate both at once. So then you would use a When-Validate-Record at the block level and if one field is NULL and the other isn't, you would display an error message and raise a failure. Forms is very civil in this respect; we don't throw exceptions around here, but then I digress.

Maybe you are looking for

  • Black/Blank Screen with Boot Camp Win 7 Install on new 27" iMac

    I'm having a problem getting Windows 7 on a new 27" iMac and am familiar with the Boot Camp Windows installation process. Here's what I've done... 1. Run Boot Camp from OSX, partition the drive. 2. Insert Win 7 cd, proceed with installation. 3. Compu

  • Method addLayout not found in class ...cp.request.ConcurrentRequest

    I am trying to send concurrent request (XML publisher report) through OAF controller. But I get next error when compile it: Error(46,20): method addLayout(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) not f

  • Access Sequence for Plant/Tax code Combination  for JTAX

    Dear All i want to create a new access sequence for "Plant/Tax code" Combination. Please let me know the process for the same Regards Amey

  • Auto PO creation from PR

    Dear All, I have done all process required for Auto PO creation from PR. With TCode Me59 i am able to create a PO also but some field in PO are blank like in header level Additional  tab - Validity Start and Validity End, in Communication tab - Your

  • Logical database AAV

    Hi all friend ! I have problem belong Logical database, I used Logical database AAV but when I run report, i receive a message " VBAK is not specified for field selection". report test_logicaldatabase. nodes: vbak. get vbak fields vbeln. write: / vba