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.
a®
Similar Messages
-
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 PathakThis 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 -
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.
ThanksHi,
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. -
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
GandalfThere 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?
ThanksUse 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()); -
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
NeerajUse 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 -
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. -
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. -
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.
PKHi,
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,
KrishnaHi,
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 -
How can I find my email in Apple Mail from before my company switched hosting providers? People with Outlook in my company have all of their old and new emails. My old emails have vanished from my Apple Mailbox on my macbook and other Apple devices. I do not have my mail backed up in time machine recently nor did I export my emailbox recently. Any ideas?
Try looking in your User folder.
Either hold down the option key while using the Finder “Go To Folder” command and select your user Library in your home folder or use the Finder “Go To Folder” command and enter ~/Library/Mail/V2
If you prefer to make your User library permanently visible, use the Terminal command found below.
Show User Library
You might want to bookmark the command. I have to use it again after every update. I have also been informed that if you drag the user library to Finder it will remain visible. -
How to fetch year till date value for earning for current ,last and year
hi,
how to fetch year till date value for earning for current ,last and year before that from payroll result
plz reply soon,
pratyushDear Pratyush,
Pick this from CRT.
Use LDB PNPCE & Fire event GET PAYROLL &
then you can pick from CRT.
Hope this helps.
Kindly reward in case useful.
Regards & Thanks,
Darshan Mulmule -
Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?
You're not addressing Apple here. This is a user-to-user technical support forum. If you want to contact Apple, use the Contact Us link at the bottom right of every page for information on how to do so.
Best of luck. -
I want to delete the originals of document while changing the status of document based on CAD indicator status. For this I have implemented BADI DOCUMENT_STATUS01 and the method AFTER_CHANGE_STATUS. From this, the BADI is triggering whenever I am changing the document status and I can able to delete the originals. But here my requirement is to check the CAD indicator status to delete those originals. I.e. whenever the document status will change first time the CAD indicator status will also change. Based on that old and new status of CAD indicator I have to do delete operation.
If anybody has an idea about SAP documents please help me
Thank you,
Regards,
RameshFirst the document is exists in SAP in FR status. But when the CAD system will connect to SAP then the status is changing from ‘FR’ to ‘IN’ after that the CAD Indicator is populating from Blank to ‘X’.
I want to know in which place the CAD indicator value is changing (any user exits available or any BADI s available when changing the CAD indicator) when connected to CAD system. -
TS1389 I am trying to authorize my new computer to download all old and new songs From my library
How do I authorize my new computer so I can download my old and new songs off my library
Authorization and Deauthorization
See iTunes Store- About authorization and deauthorization for Macs.
See How to Authorize or Deauthorize iTunes | PCWorld for Windows.
In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it.
More On De-authorizing Computers (contributed by user John Galt)
You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
1. Open iTunes on a computer
2. From the Store menu, select "View my Account..."
3. Sign in with your Apple ID and password.
4. Under "Computer Authorizations" select "De-authorize All".
5. Authorize each computer you still have, as you may require.
You may only do this once per year.
After you "de-authorize all" your authorized computers, re-authorize each one as required.
If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.
Maybe you are looking for
-
Problem with alter table in execute immediate
We have PL/SQL scripts which modify the data structure, add data etc to en existing database. These scripts basically ensure that the db is compatible with what the software expects. The reason for doing it in PL/SQL rather than SQL script is A) The
-
How to migrate Business Partners?
Hi All, How to migrate Business Partners from one Solution Manager to another? Both Solution Managers are 7.0 SPS 17. We have already move users and roles. It looks like that we loose messages from projects when we try to migrate them with SOLAR_MIGR
-
Error displaying odd content after build...
After I built my application, an error appeared displaying this ( http://dl.dropbox.com/u/3783094/Screen%20shot%202011-02-23%20at%207.35.37%20PM.p ng ) I figured out that this code below is what is causing this error. I can't seem to figure out how t
-
i am a regular user of media center but there was a problem with renaming tracks so i used itunes to rename the tracks. i used media center to put all my album art on my mp3s, and as soon as i use itunes the dam program deletes many hours of work, it
-
Hello, what role is needed to access the runtime workbench?