01-25-2019 4:23 AM
Hi all,
My requirement is to remove one column(which is a key field) with its data from DDIC table.
If I removed that column from table with data, it will affect all the programs where I used that column.
How to find that where all I used that particular column.
Is there any way to find that?
Please help!
thanks
Karthick
01-25-2019 8:06 AM
The scan function is great, but it's not definitive. It's easy to miss places that need fixing. When I do things like this, I adjust the table and activate it. Then I scan as above and apply fixes. Then I use code inspector (transaction SCI), to syntax check all the objects in my development namespace. And fix those that come up with errors.
It doesn't guarantee either - for example any dynamic programming won't be picked up - but the risk of missing something is low. If you've got unit tests on all your code, then that reduces the risk even further.
01-25-2019 6:19 AM
Use Program RS_ABAP_SOURCE_SCAN , and provide inputs as mentioned below [ String searched for 'Field name 'and in Package 'Z*']
you will get all the places where you have used this particular field across system.
01-25-2019 8:26 AM
01-25-2019 8:06 AM
The scan function is great, but it's not definitive. It's easy to miss places that need fixing. When I do things like this, I adjust the table and activate it. Then I scan as above and apply fixes. Then I use code inspector (transaction SCI), to syntax check all the objects in my development namespace. And fix those that come up with errors.
It doesn't guarantee either - for example any dynamic programming won't be picked up - but the risk of missing something is low. If you've got unit tests on all your code, then that reduces the risk even further.
01-25-2019 8:26 AM
Thanks for your information.
In transaction SCI, how can I check where all the places in program gets error?
01-25-2019 9:05 AM
Read the documentation or blogs on how to use SCI. You should use check variant SYNTAX_CHECK.
04-04-2019 3:39 PM
04-04-2019 3:58 PM
saslove.sap Where I wrote "Then I scan as above and apply fixes", at that time Sai Charan's answer was above mine. I.e. my proposal is in addition to Sai Charans.
04-04-2019 6:43 PM
There is also a where-used list for every column of a DDIC table (it works at all places where this table column is statically defined): in SE11, display the table, double-click the column name and click the where-used list button.
04-04-2019 7:53 PM
04-04-2019 8:01 PM
04-04-2019 8:08 PM
04-04-2019 8:13 PM
saslove sap ah okay 🙂 (I understand now, I didn't pay attention that the question was old)