on 07-20-2017 11:12 AM
hi all,
i have a requirement to check and update each column value for each table in a sql database.
i need to check if each column in each table has a value of blank and then update it to null.
doing this from bods, callign a function like replace, ifthenelse will involve a lot of developemnt effort and execution time.
Can anyone suggest a better option for this task?
Hello Swetha,
to do it, you can do one select in table DD02L and doing one loop in the result, make one select into the loop and in witch result of the second select you change the content of the table.
To look for the componentes of with table dinamic, you can use the class cl_abap_structdescr to look for all colums of each table.
Using Field Symbols you assing each componente to search de contente.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.