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

How to define Generic table?

Former Member
0 Likes
587

How to define Generic table in perform?

FORM down_data_tab TABLES p_it_claims <b>TYPE index table</b>

USING p_v_append.

Is it the correct way,

Thanks,

Amol

How to define Generic table in perform?

FORM down_data_tab TABLES p_it_claims <b>TYPE index table</b>

USING p_v_append.

Is it the correct way,

Thanks,

Amol

3 REPLIES 3
Read only

VXLozano
Active Contributor
0 Likes
538

Have you tried to not declare its structure?

I'm not sure about it, but I would try something like

FORM myform TABLES mytable.

Read only

Former Member
0 Likes
538

Hi,

Hi try this:

form xxx tables tab.

field-symbols: <fs_line>,

<fs_field>.

data: v_line type ref to data.

create data v_line like line of tab.

assign v_line->* to <fs_line>.

assign component 'LOW' of structure <fs_line> to <fs_field>.

if sy-subrc eq 0.

<fs_field> = '1'.

append v_line->* to tab.

endif.

endform.

<b>Reward points</b>

Regards

Read only

jaideeps
Product and Topic Expert
Product and Topic Expert
0 Likes
538