Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in dynamic internal table

Former Member
0 Likes
462

I have one internal table which points to one structure. Later , I assign the new structure to that dynamic internal internal table.

But it does not work. Could you please advise me?.

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
432

Hi Selvakumar,

If u explain briefly about your issue u ll get the accurate solution. Ok pls try this.,

FIELD-SYMBOLS: <gt_table> TYPE STANDARD TABLE,

<gwa_table> TYPE ANY.

DATA wa_gp_line TYPE REF TO data.

i_gp_table TYPE REF TO data.

*-- Create dynamic internal table

ASSIGN i_gp_table->* TO <gt_table>. " assigning.. may be u forget to assign the new structure again.

*--Create Work Area Dynamically

CREATE DATA wa_gp_line LIKE LINE OF <gt_table>.

ASSIGN wa_gp_line->* TO <gwa_table>. " .assigning work area

pls go through this., reply if u need some more clarifications.,

Thanks & Regards

Kiran

2 REPLIES 2
Read only

Kiran_Valluru
Active Contributor
0 Likes
433

Hi Selvakumar,

If u explain briefly about your issue u ll get the accurate solution. Ok pls try this.,

FIELD-SYMBOLS: <gt_table> TYPE STANDARD TABLE,

<gwa_table> TYPE ANY.

DATA wa_gp_line TYPE REF TO data.

i_gp_table TYPE REF TO data.

*-- Create dynamic internal table

ASSIGN i_gp_table->* TO <gt_table>. " assigning.. may be u forget to assign the new structure again.

*--Create Work Area Dynamically

CREATE DATA wa_gp_line LIKE LINE OF <gt_table>.

ASSIGN wa_gp_line->* TO <gwa_table>. " .assigning work area

pls go through this., reply if u need some more clarifications.,

Thanks & Regards

Kiran

Read only

Former Member
0 Likes
432

I have resolved it .. I have made a mistake in the variable assignment.

Thanks