2006 Jan 04 1:38 PM
i need to print in one line text
1.what is max byte i can put in 1 line?77?
2.&EKPO-TXZ01&is long , i want to print only 10 for example
how i can do it?
2006 Jan 04 1:58 PM
if you want to write only 10 chars in a a line write this
write:/ EKPO-TXZ01+1(10).
this will write the field from position 1 to 10 positions.
can you give me some more details what excatly u want
2006 Jan 04 1:42 PM
hi,
U can go upto line size of 1023 but List cannot be wider than 255 (132 for most printers).
SY-LINSZ contains the current line size.
To adapt the line size to the current window width, set <n> to SY-SCOLS. SY-SCOLS contains the number of characters of a line of the current window.
regs,
jaga
2006 Jan 04 1:50 PM
Hi,
It will go upto your window size limit and when it hits the window border, it automatically is pushed onto the next line.
If you want to write only 10 then you can use this for instance - &EKPO-TXZ01+0(10)& - to write the first 10 characters....
Thanks,
Renjith.
2006 Jan 04 1:55 PM
1.&EKPO-TXZ01+0(10)& it's not working.
2.i mean if i start writin 1234567889how much number i can put in?i think 77?
2006 Jan 04 1:53 PM
Hi,
For the second question, u can place a perform in the script and by passing the field specified as input, store the first 10 chars in returning variable.
Sreedhar
2006 Jan 04 1:58 PM
if you want to write only 10 chars in a a line write this
write:/ EKPO-TXZ01+1(10).
this will write the field from position 1 to 10 positions.
can you give me some more details what excatly u want
2006 Jan 04 2:25 PM
2006 Jan 04 2:40 PM
hi liat,
&EKPO-TXZ01+0(10)& it should work...
or else you create the variable, and then use perform.
by sending the &EKPO-TXZ01& and get the &EKPO-TXZ01+0(10)& to the variable.
it may solve your problem.
thanks
vijay
2006 Jan 04 2:51 PM
in layout..
/: PERFORM GET_TEXT IN PROGRAM ZTEST
/: USING &EKPO-TXZ01&
/: CHANGING &V_TXZ01&
in se38...
REPORT ZTEST .
.
FORM get_TEXT TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
data: v_text(10).
READ TABLE in_tab INDEX 1.
v_text = in_tab-value+0(10)
READ TABLE out_tab INDEX 1.
MOVE v_text TO out_tab-value.
ENDFORM.
Message was edited by: Vijay Babu Dudla