‎2007 Apr 23 2:41 AM
Hi all,
I am writing a list report which is using a normal WRITE statement in Japanese language (Program Original Language = JA). However, I have the alignment problem as below:
Customer No | Customer Name | Accounting Document No |
-
0000000001 | Customer ABC | 100000001 |
0000000002 | Customer BAE | 100000012 |
0000000003 | Customer C | 100000301 |
0000000003 | Customer D | 100000402 |
0000000003 | Customer EEF | 100000801 |
.
.
.
Notice that based on the above list display that I have, Customer C and D having disorder sy-vline position, though i have placed sy-vline with constant position and using AT statement.
Did someone come across this and appreciate if anyone can give me some guideline to solve the above alignment problem. Reward points is guaranteed.
Many thanks,
Patrick
‎2007 Apr 23 3:18 AM
Hi,
Not sure..why the format is not correct in the print output..
I printed the sample code I provided..It seems to be fine..
Thanks,
Naren
‎2007 Apr 23 2:59 AM
Hi,
Did you use the output length option??
Ex..
WRITE: /(11) 'Customer No',SY-VLINE,
(30) 'Customer Name',SY-VLINE,
(22) 'Accounting Document No',SY-VLINE.
WRITE: / SY-ULINE.
DATA: V_KUNNR TYPE KUNNR VALUE '0000000003'.
DATA: V_NAME TYPE KNA1-NAME1 VALUE 'Customer C'.
DATA: V_BELNR TYPE BKPF-BELNR VALUE '100000301'.
WRITE: /(11) V_KUNNR,SY-VLINE,
(30) V_NAME,SY-VLINE,
(22) V_BELNR,SY-VLINE.
V_KUNNR = '0000000002'.
V_NAME = 'Customer BAE '.
V_BELNR = '100000012'.
WRITE: /(11) V_KUNNR,SY-VLINE,
(30) V_NAME,SY-VLINE,
(22) V_BELNR,SY-VLINE.
WRITE: / SY-ULINE.
Thanks,
Naren
‎2007 Apr 23 3:05 AM
Hi Naren,
Yes. I am using output length option as below:
<u>Header:</u>
WRITE: / sy-vline, AT 2(10) 'Cust No'(c04),
sy-vline, AT 14(35) 'Customer Name'(c05),
sy-vline, AT 51(10) 'Acct Doc No'(c06).<u>Body:</u>
Loop at i_final into w_final.
WRITE: / sy-vline, AT 2(10) w_final-kunnr,
sy-vline, AT 14(35) w_final-name1,
sy-vline, AT 51(10) w_final-belnr.
endloop.Does output length option bring any affect?
Kindly advise.
Many thanks,
Patrick
‎2007 Apr 23 3:11 AM
Hi Naren,
By the way, the List output display was OK, just when printing out the report, the alignment of sy-vline seems in disorder position.
Thanks and regards,
Patrick
‎2007 Apr 23 3:18 AM
Hi,
Not sure..why the format is not correct in the print output..
I printed the sample code I provided..It seems to be fine..
Thanks,
Naren
‎2007 Jun 19 5:33 PM
Hi,
I found the root cause, because there are multi-unicode (EN and JA), thus, when you need the program to print the list report, you have to justify that JA taking 2-bit and EN taking 1-bit. When using the WRITE syntax, make sure to determine the column to be printed is EN or JA using sy-langu, then adjust accordingly.
Thanks and regards,
Patrick
‎2007 Jun 19 5:34 PM