Skip to Content
0
Former Member
Jan 14, 2008 at 09:31 AM

Appending fields of mixed types to a single fielded table

21 Views

Hi, I have to call a form which reads from an internal table IT_SOURCE (that changes at each perform) structured with several fields of various types (I, C, P, N, etc..) and then passes the data to an internal table IT_DESTINATION structured with one single field which is C type and 3000 characters long.

Is there a way to convert the records from IT_SOURCE into a structure compatible with a C type field?

Here's what I need to do:

{st_source line is made up of mixed types fields}

{it_source is like standard table of st_source}

DATA: st_destination(3000) type c.

DATA: it_destination LIKE STANDARD TABLE OF

st_destination.

LOOP AT it_source INTO st_source.

  • [?? what should I do here so that

  • i can move st_source data into st_destination ??]

APPEND st_destination TO it_destination.

ENDLOOP.

Can anyone help me please?

Edited by: Carlos Bustamante Bozzi on Jan 14, 2008 10:32 AM

Edited by: Carlos Bustamante Bozzi on Jan 14, 2008 10:33 AM

Edited by: Carlos Bustamante Bozzi on Jan 14, 2008 10:35 AM