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

STandard Text in Smartforms

Former Member
0 Likes
793

Hi ,

please help me out in how to get standard text in SMARTFORMS, as i am using function 'READ_TEXT', but at the time of executing the driver program , its giving error that , standardt text id object not available, do please reply back with answers

Hi ,

please help me out in how to get standard text in SMARTFORMS, as i am using function 'READ_TEXT', but at the time of executing the driver program , its giving error that , standardt text id object not available, do please reply back with answers

5 REPLIES 5
Read only

Former Member
0 Likes
759

If READ_TEXT is failing either the text is not created or the parameters you are passing are wrong.

However, in SMART Forms, there is a easier of way showing the long text. Create a text element and choose the INCLUDE TEXT OPTION. Now, you can specify the parameters and the text will be displayed automatically. You don't have to retrieve it manually.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

Former Member
0 Likes
759

Hi,

u r using FM 'READ_TEXT' in driver program. right?

How u r getting the Text ID and Object.....?

Read only

sridharreddy_kondam
Active Contributor
0 Likes
759

Hi Aakash,

Regards,

Sridhar

Read only

Former Member
0 Likes
759

Hi Aakash,

You have to pass the following paramaters for the FM. Check if tdid is missing.

w_tdspras = 'EN'.

w_tdid = 'F05'.

w_tdobject = 'EKKO'.

w_tdname = is_ekko-ebeln.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id = w_tdid

language = w_tdspras

name = w_tdname

object = w_tdobject

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

TABLES

lines = p_it_text

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

Former Member
0 Likes
759

Hi Akash,

If READ_TEXT function module to get Long text

first u heve to check long text is there or not otherwise

u will get an Error.

So if long text is maintained , there is an entry in

<b>table STXH</b>.

Ex :

select single *

from stxh

where TDOBJECT = < >

and TDNAME = < >

and TDID = < >

and TDSPRAS = < >.

if sy-subrc is initial.

*--Entry exists.

call function 'READ_TEXT'.

endif.

Balavardhan.K