2 weeks ago
Hi Masters,
I want to transfer the internal table in the code to the function table using move-corresponding, but this is not allowed.I made many tryings. Where am I making a mistake?
Scenario 1 :
Scenario 2 :
Thanks
You are using the obsolete TABLES in the function module to declare ET_RESULT, so ET_RESULT alone is considered as being the obsolete header table (error prone).
Instead, use:
MOVE-CORRESPONDING gt_temp TO et_result[].
But prefer using ABAP Objects instead of function module, or prefer using EXPORTING over TABLES.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Sandra_Rossi.
Since using the TABLE tab in the function module is an old method, we had to use [ ].
What are the ABAP objects you mentioned as the new method? Inside the function "DATA ITAB TYPE TABLE OF XXX." Are you talking about? Because when I use this method I don't have to use "[ ]".
When you said "...or prefer using EXPORTING over TABLES.", did you mean to mention the EXPORT tab in the function module you wanted to talk about?
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.