on 01-21-2011 9:49 PM
Experts !
i need to remove the variable from the query. when i tries to delete it, it gives me an error msg. saying that its being used. now, there are couple others queries which uses this variable too.
In order to remove that variable , do i need to remove from each queries before i can delete ?
please help
thanks
You have to delete it from within the same query, like if its referenceing to other variable, or if its used in formula variable within the query.,
IF oyu are trying to delete from the system you have to make sure its not used in other queries too.,
Hope its clear.
Shashi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks shashi,
my gole is to define the same variable with customer exit, that why i have to delete the current one and create the same techinacal name again with customer exit.
And yes , its been used by other queries too, so for that i wll have to remove from all the queries and then delete the variable. once i create the new one , i wil have to add those every where the old one was used..
if thats the case then its too much work..
do you see any other option ?
i have to set default value for that variable, and the default value is system date. for this i need to write customer exit.
do you have any other way to work around?
thanks
Ya , but the problem is..
that variable is being used in lots of customer exit. so if i create a new variable ( Diff. techinacal name ) then i will have to put new technical name in all the customer exit. which is fine.. but there are other queries ( having old variable ) uses the same customer exit. so in that case old queries' customer exit will fail or wont find the right variable.
did you get my point ?
So, the only option is, i need to create new variable with SAME Techinacal name. but then the problem is how to remove old variable from all queries its hack a lot of work and scary too.
Edited by: honar on Jan 21, 2011 11:54 PM
I tried it. but its giving me an error..
this is my code...
READ TABLE i_t_var_range
WITH KEY vnam = 'old variable'
INTO l_var_range.
now, if i modify like this.. its giving me an error
READ TABLE i_t_var_range
WITH KEY vnam = 'old variable' OR vnam = 'new variable '
INTO l_var_range.
do you see any problem here ?
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.