Application Development 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: 

help in layouts

Former Member
0 Kudos
119

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
105

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

8 REPLIES 8

Former Member
0 Kudos
105

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

Former Member
0 Kudos
105

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.

0 Kudos
105

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?

Former Member
0 Kudos
105

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

Former Member
0 Kudos
106

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

0 Kudos
105

we are talking about sapscript???

0 Kudos
105

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

0 Kudos
105

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