cancel
Showing results for 
Search instead for 
Did you mean: 

Text editor line left to right

Former Member
0 Kudos

dear all,

i have a basic question ,in my main window text editor i want to add line item(which includes 10 fields) in the same line of the text editor.that is from left to right. how do i do that any help wud be gratyefull.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

problem solved

Former Member
0 Kudos

Hi Naren,

You can add the fields in the 'MAIN' window text editor as below

/E LINEITEM

P1 ,,&FIELD1&,,&FIELD2&,,&FIELD3&,,&FIELD4&,,&FIELD5&,,

= &FIELD6&,,&FIELD7&,,&FIELD8&,,&FIELD9&,,&FIELD10&

,, represents tab in SAP script.

You can define paragraph format P1 with preferred Font and TAB space settings

In the print program we can call the element using the below code.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'

element = 'LINEITEM'

EXCEPTIONS

window = 1

element = 2.

If you want to print multiple lineitem put the above code inside the loop.

Thanks,

Jeyabalasubramanian.J

Former Member
0 Kudos

In the main window make a table and loop at that internal table to display the data.

In the style which u are assigning to the data make it as left aligned.

Edited by: prachidangi on Apr 15, 2010 11:51 AM