2018 Jul 03 1:15 PM
Hi Guys.
I have two fields "type ref to " :
<fl_entity_data>-tabl and <fl_entity_data2>-tabl .
I pass both to field symbols:
ASSIGN <fl_entity_data>-tabl->* TO <fl_sttabl2>.
ASSIGN <fl_entity_data2>-tabl->* TO <fl_sttabl3>.
Now I want to move Only non key fields of <fl_sttabl2> to <fl_sttabl3> , but i
do not want to move one by one.

i could use " value" statement but there are many collums in some cases i want a way to move only non key fields.
thanks
2018 Jul 03 2:47 PM
Hi Guys.
I have two fields "type ref to " :
<fl_entity_data>-tabl and <fl_entity_data2>-tabl .
I pass both to field symbols:
ASSIGN <fl_entity_data>-tabl->* TO <fl_sttabl2>.
ASSIGN <fl_entity_data2>-tabl->* TO <fl_sttabl3>.
Now I want to move Only non key fields of <fl_sttabl2> to <fl_sttabl3> , but i
do not want to move one by one.

i could use " value" statement but there are many collums in some cases i want a way to move only non key fields.
thanks
2018 Jul 03 1:20 PM
The first question is: how do you know a key is field or not?
You are showing us just some field symbols in your snippet and a debug screenshot.
2018 Jul 03 1:50 PM
You can use 'move-corresponding' for that. Check the documentation.
2018 Jul 03 1:55 PM
Move-corresponding wil move all fields with the same names, he wants to exclude some fields.
While he could use it to move the fields and clearing the fields he doesn't want afterwards, I don't think that's what he's searching for.
2018 Jul 03 2:05 PM
He can have two structures for it no? He can have one with all the data and the other with only the needed ones.
2018 Jul 03 5:58 PM
2018 Jul 03 2:31 PM
As Simone pointed out, what determines a key field and what a non-key field. The algo will be based on that.
2018 Jul 03 2:47 PM
2018 Jul 03 3:09 PM
Just take into account it will override the values of material and werks in <fl_sttabl3> with empty values. See the program DEMO_CORRESPONDING_MAPPING
2018 Jul 03 5:24 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |