Application Development and Automation 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: 
Read only

Display Text in SAPScript

Former Member
0 Likes
1,198

Hi,

Could you please tell me

how to display text from a particular column in SAP script?

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
699

Hi Sam

Plz elaborate your ques,wat you mean by column?

Read only

Former Member
0 Likes
699

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

Read only

Former Member
0 Likes
699

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?

Read only

Former Member
0 Likes
699

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