on 04-23-2004 6:10 PM
Hi,
Move corresponding is giving me a syntax error when used with field symbols pointing to two structures.
Can anyone suggest a work around, other than assigning each component and copying them individually.
Regards,
Pavan
This makes sense if the field-symbols have not been defined with a type specification, otherwise it should work OK.
eg.
FIELD-SYMBOLS:
<f1> TYPE zmystructure1,
<f2> TYPE zmystructure2.
...
MOVE-CORRESPONDING <f1> TO <f2>.
Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually I just verified and even when the field-symbols are not typed, it works OK. Something else must be wrong.
The code I used is:
REPORT Z.
TABLES:
t006,
t006t.
FIELD-SYMBOLS:
<f1>,
<f2>.
ASSIGN t006 TO <f1>.
ASSIGN t006t TO <f2>.
MOVE-CORRESPONDING <f1> TO <f2>.
Of course, as an aside, you should avoid using untyped field-symbols for performance reasons.
Scott
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.