‎2007 Aug 01 12:00 PM
Hi,
Could you please tell me
how to display text from a particular column in SAP script?
Thanks.
‎2007 Aug 01 12:06 PM
‎2007 Aug 01 12:09 PM
Hi Sam,
You can read the text using FM: READ_TEXT and store the text value in a variable (I hope your text is not long), then use the variable in the sapscript.
OR
You create a window with the same size with the column, and use INCLUDE..TEXT.... to show the text.
Regards,
Hendy
‎2007 Aug 01 12:17 PM
priniting exactly in a particular column in a window
ie suppose i want to print text 'SAP' in main window from column 10 than how to print it?
‎2007 Aug 01 2:26 PM
See the below program :
REPORT zread_test.
DATA: it_lines LIKE TABLE OF tline WITH HEADER LINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'LTXT'
language = sy-langu
name = '000001100184'
object ='AUFK'
IMPORTING
HEADER =
TABLES
lines = it_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc = 0.
Data: mystring type string.
LOOP AT it_lines.
concatenate mystring it_lines-tdline into mystring
separated by space.
ENDLOOP.
pass ur text id,text object and so on