2014 Aug 21 1:20 PM
Hi,
Can someone explain what to me what the following statement means?
Data: i_tab TYPE STANDARD TABLE.
I looked it up and and it says that it is an ABAP built in type which is generic, but i fail to understand its usage.
And here is my scenario.
Field-symbols: <IT_DETAILS > TYPE STANDARD TABLE,
<lines> TYPE (Transparent dictionary table)
LOOP AT <lt_details> ASSIGNING <lines>.
move <lines>-field to l_variable.
Endloop
Upon execution, I get a dump at the Loop statement saying that there is an 'ASSIGN_TYPE_CONFLICT'.You attempted to assign a field to a typed field symbol,but the field does not have the required type.
How to correct the error
Adapt the type of the field symbol to the type of the field or use an
untyped field symbol or use the "CASTING" addition.
Can someone explain the correct way to type the field symbol and implement the loop construct?
Any help will be highly appreciated
2014 Aug 21 1:27 PM
Hello,
Can you tell us the type of the variable l_variable?
Example:
FIELD-SYMBOLS: <pos_data> TYPE ANY,
<gt_pos_data> TYPE table.
DATA : lt_csks LIKE gt_csks WITH HEADER LINE.
LOOP AT <gt_pos_data> ASSIGNING <pos_data>.
MOVE-CORRESPONDING <pos_data> TO lt_csks.
ENDLOOP.
2014 Aug 21 1:28 PM
2014 Aug 21 1:33 PM
Hi Ramiwal,
Delcare.
FIELD-SYMBOLS: <table> TYPE ANY TABLE.
Regards,
Venkat.