Hi All,
I have a fixed DSO structure which is populated from BPartner hierarchy. The data fields-Parent level 1, Parent level 2, .. Parent Level 7 are updated with Parent Ids till level 1. So in the routine we start with Looping where IO Name = BP. Then depending on the level we keep updating the data fields one by one. Read the BP hierarchy table with Hierarchy Id and Parent Node No and Level = Level - 1.
Instead of having a Case statement for levels which will have 7 when conditions, is there any way to update the field dynamically.
What I am looking for is if we can determine which field to assign the value using something like Concatenate 'Parent' (level) to lv_field.
Then Result_fields-(lv_field) = Parent id. Appreciate any pointers.
Thanks In Advance !
Thanks,
Aparna