‎2007 May 25 1:27 PM
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
‎2007 May 25 1:30 PM
hi,
sorry do this way
IT_cd[] = IT_ab[] .
regards,
Santosh
Message was edited by:
Santosh Kumar Patha
‎2007 May 25 1:30 PM
hi,
sorry do this way
IT_cd[] = IT_ab[] .
regards,
Santosh
Message was edited by:
Santosh Kumar Patha
‎2007 May 25 1:31 PM
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
‎2007 May 25 1:36 PM
Hi,
This syntax is unicode compatible. may be the two tables it_ab and it_cd have different structures.
Regards,
Vidya.
‎2007 May 25 1:42 PM
When you use APPEND LINES, pl ensure that both the itabsare of the same Table type.
~Suresh
‎2007 May 25 2:15 PM
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
‎2007 May 25 2:25 PM
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
‎2007 May 25 2:34 PM
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
‎2007 May 25 3:17 PM
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.
‎2007 May 25 4:24 PM