2 weeks ago
Hi Everyone. I'm an ABAP student having a problem to understand the logic when looping a table with a Reference Variable that have different ways to print. Why the figure I just upload when the work area is different to the reference Variable that call de method (get_attribute) the print logic is to get de value assigned to that reference variable 3 times (same lines), but when the work area is the same that the reference variable it prints
all of the correct values of the 3 different reference variables?. Thanks a Lot in advanced.
Request clarification before answering.
Hi,
in the first Loop, the actual values are stored into var. But inside the Loop you reference on the variable num. This holds the last value which you assigned to num.
To have all the different values you need to use var->get_attributes instead of num->get_attributes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.