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

Regarding append lines

Former Member
0 Likes
1,111

Hi all,

Can we do anything to change this statement to make it unicode compatible.

APPEND LINES OF IT_ab TO IT_cd.

thanking you all.

regards,

satish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,078

hi,

sorry do this way

IT_cd[] = IT_ab[] .

regards,

Santosh

Message was edited by:

Santosh Kumar Patha

9 REPLIES 9
Read only

Former Member
0 Likes
1,079

hi,

sorry do this way

IT_cd[] = IT_ab[] .

regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Read only

Former Member
0 Likes
1,078

Hello,

1) In the attribute of your program the checkbox 'Unicode checks active' must be checked

2) Run transaction 'UCCHECK' to check your program if it is Unicode compatible, this program will display all the errors in unicode.

3) In your code, no text should be hardcoded, you should instead use text element to store those hardcoded text.

4) there should not be any moving of character fields into an integer field

5) you no longer can use write : /1 lw_struct

Regards,

Deepu.K

Read only

Former Member
0 Likes
1,078

Hi,

This syntax is unicode compatible. may be the two tables it_ab and it_cd have different structures.

Regards,

Vidya.

Read only

suresh_datti
Active Contributor
0 Likes
1,078

When you use APPEND LINES, pl ensure that both the itabsare of the same Table type.

~Suresh

Read only

Former Member
0 Likes
1,078

Hi frnds,

Thnks for reply.

My both tables have different structures.

Fst table has :108 fields.

2nd table has : 87 fields.

so i had a logic just clarify can i go for this , i think about performance problem in this code.

LOOP AT IT_ab INTO WA_ab.

MOVE-CORRESPONDING WA_ab TO WA_cd.

APPEND WA_ab INTO IT_cd.

frnds plzz clarify... can i go for this without any performance problem.

thanking u all again.

regards,

satish

Read only

0 Likes
1,078

To improve performance, move each field explicilty instead of MOVE-CORRESPONDING ie

LOOP AT IT_ab INTO WA_ab.

MOVE WA_ab-fl3 TO WA_cd-fld1.

MOVE WA_ab-fl4 TO WA_cd-fld2.

...

...

APPEND WA_ab INTO IT_cd.

ENDLOOP.

~Suresh

Read only

0 Likes
1,078

Hi Suresh,

As per u its fine but can we move more than 50 or more fields as u said.. wont it be more cumbersome....

Is there any solution which can be done aprt from urs or mine....

plzz reply...

regards,

satish

Read only

Former Member
0 Likes
1,078

Hi Satish,

Check if this helps.

types: begin of itab2 ,

matnr type matnr,

ernam type ernam,

end of itab2.

data: begin of itab1 occurs 0,

include type itab2,

laeda type laeda,

end of itab1.

data: itab2 type standard table of itab2 with header line.

START-OF-SELECTION.

select matnr ernam laeda into table itab1 from mara up to 5 rows.

append lines of itab1 to itab2.

Regards,

Vidya.

Read only

Former Member
0 Likes
1,078

Thnk u all.