on 06-02-2016 9:59 AM
Hi All,
I am using R3trans script before refresh to export and later I am running the import script. But I observed Data which is existing get overwrite and other get appended. It is not deleting old tale records.
As I am doing this in refresh I need to do cleanup again for target system data.Also for RFC it is still showing RFC s of source system . Can anyone guide me how to write R3trans script so that while importing it will delete data from table and then It will import exported file.
I am giving sample Script which i used for this refresh.
export
client = 400
file ='SM59export310.dat'
select * from rfcattrib
select * from rfccheck
select * from rfccmc
select * from rfcdes
select * from rfcdoc
select * from rfcsysacl
select * from rfctrust
select * from rzlliclass
select * from rzllitab
select * from rfcdessecu
select * from rsecactb
export
client = 000
file ='SM59export000.dat'
select * from rfcattrib
select * from rfccheck
select * from rfccmc
select * from rfcdes
select * from rfcdoc
select * from rfcsysacl
select * from rfctrust
select * from rzlliclass
select * from rzllitab
select * from rfcdessecu
select * from rsecactb
spr Ptl wrote:
Hi All,
I am using R3trans script before refresh to export and later I am running the import script. But I observed Data which is existing get overwrite and other get appended. It is not deleting old tale records.
As I am doing this in refresh I need to do cleanup again for target system data.Also for RFC it is still showing RFC s of source system . Can anyone guide me how to write R3trans script so that while importing it will delete data from table and then It will import exported file.
Hi,
that is not an "standard" method to do a "refresh".
What you are doing is "putting" data out and then putting the data in. Export is not supposed to delete data, only to record it out of the database. Import is not suppose to delete data, only to putting the previous data again into the database.
Therefore, it works as designed.
I do not think it is very "clever" what you are doing as it will (probably) create inconsistencies.
if you want to do a refresh you should follow the homogeneus system copy guides, that is the supported, tested way of doing refreshs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the below mentioned thread and sap note.
Regards
Prithviraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.