cancel
Showing results for 
Search instead for 
Did you mean: 

READ_TEXT IN SMARTFORM-urgent

Former Member
0 Kudos

HI

I am using the read_text fm for reading the standard text in smartform please tell me the fm parameters based on the text.i

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189629
Active Contributor
0 Kudos

Varsha,

You can use the "Include Text" option while adding the text element in any template or window. that will do the work READ_TEXT does by itself. Just pass the params like Object Id, mandt, langu, etc.

regards,

K

Former Member
0 Kudos

Hi Varsha,

Check this sample code...

DATA: leng TYPE thead-tdspras,

l_fname TYPE thead-tdname.

DATA: il_tline LIKE tline OCCURS 0 WITH HEADER LINE.

leng = 'ES'.

l_fname = is_dlv_delnote-hd_gen-deliv_numb.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = '0001'

language = leng

name = l_fname

object = 'VBBK'

TABLES

lines = il_tline.

comentario = ''.

LOOP AT il_tline.

CONCATENATE comentario il_tline-tdline INTO comentario SEPARATED BY space.

ENDLOOP.

My suggestion would be....

Instead of using the FM, Use the standard functionality to print the required text provided by Smartforms.

Create a text element, in the left top...in the drop down there is an option of include text... something like...

id = '0001'

language = 'E'

name = '0080000055'

object = 'VBBK'

u will get the dessired output