cancel
Showing results for 
Search instead for 
Did you mean: 

Long Text Printing in SAPSCRIPT

former_member778253
Active Participant
0 Kudos

Hi Experts,

I got one requirement that i the long text which user will enter that

has to be displayed on the layout of one window not main.

The text comes from FB03 application, that has to be displayed.

I want to know how to do this, i tried to use the hardcoded RSTXT-TDNAME text in my script as define &x& = 'AU1018000010152008001'

and then include command i used.

It will be okay for one item, if there are multiple items then it will not be worked.

so please give me an idea to proceed.

Regards,

sivananda P.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

it_tline like tline occurs 0 with header line,

v_info(50), "#EC

clear it_tline.

refresh it_tline.

clear v_info.

v_name = it_out-ebeln.

call function 'READ_TEXT'

exporting

client = sy-mandt

id = 'F05'

language = sy-langu

name = v_name

object = 'EKKO'

tables

lines = it_tline

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 eq 0.

read table it_tline. "#EC *

v_info = it_tline-tdline(50).

endif.

if helpful give the points,

Regards,

Venkat

sreelatha_gullapalli
Active Participant
0 Kudos

hi

check the following link you can get the detailed information regarding SAPSCRIPTS

http://wiki.ittoolbox.com/index.php/Sap_script

Regards,

Sreelatha Gullapalli

Former Member
0 Kudos

you must use FM READ_TEXT to read the long text

the function module will return a internal table

then you can create a subroutine to import the internal table to your scriptform

about the improting parameter of FM READ_TEXT

you can follow the below step

double click your long text content, menu-gotoheaderyou can get the information such as

Text Name 450000145900001

Language JA

Text ID F01 Item text

Text Object EKPO Purchasing doc. item texts

it it a long text sample for PO