on 10-26-2006 5:18 PM
Hi all,
Can we directly change the value of a field in a record that is already stored in the ODS using update routine?
Loop at infopackage
Read ODS based on certain conditions
If found, Modify the value of a field directly?
Thanks,
Anirudh
Yes you can do .. but loop at datapackage...not at infopackage.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manga,
Thanks a lot for the reply. Just to clarify, in the update routine, <u><b>we can Read ODS and change the value of a date field that is already in the ODS using Modify statement based on certain conditions.</b></u> Correct?
In short, we are changing the value of the ODS table using update routine. Plz correct me if I am wrong.
Thanks,
Anirudh.
Hi Anirudh,
You can do that, but the best way to handle such reqts is to load the ODS from itslef (self-feed) and then in the update rules you can code the changes that you want to the existing field. This way you are working with the std datamart scenario and will not have to worry about delta and changelogs.
Hope this helps...
No Anirudh, a T-ODS does not have update rules. You can load data into it using an APD process.
http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/content.htm
RSDRI_ODSO_INSERT: Inserts new data (with keys not yet in the system).
RSDRI_ODSO_INSERT_RFC: see above, can be called up remotely
RSDRI_ODSO_MODIFY: inserts data having new keys; for data with keys already in the system, the data is changed.
RSDRI_ODSO_MODIFY_RFC: see above, can be called up remotely
RSDRI_ODSO_UPDATE: changes data with keys in the system
RSDRI_ODSO_UPDATE_RFC: see above, can be called up remotely
The above APIs are used to update the transactional ODS.
Yes you can do everything in that ABAP code, also update a table.
But pay attention, I don't suggest to modify directly the ODS directly with an ABAP routine, because you may lost the delta/change log mechanism.
It's best to update with the routine the record in the standard way.
Message was edited by: Sergio Locatelli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.