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

Text Name

Former Member
0 Likes
736

print the text and the box itself if any text is maintained for the invoice .

sap t-code S010.

Text name is FI_CA_ACCTBALA.

Above is my requirement how can i fetch that data into my smartform pls suggest me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
691

hi,

using

DATA : lines LIKE tline OCCURS 10 WITH HEADER LINE,

tdid LIKE thead-tdid ,

tdspras LIKE thead-tdspras,

tdname LIKE thead-tdname,

tdobject LIKE thead-tdobject.

tdname = 'FI_CA_ACCTBALA'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'ST'

language = 'E'

name = tdname

object = 'TEXT'

TABLES

lines = lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

Hope your problem will solve.

Regards,

Sanket.

5 REPLIES 5
Read only

Former Member
0 Likes
691

hi,

use read_text FM

Rgds.,

subash

Read only

agnihotro_sinha2
Active Contributor
0 Likes
691

hi,

this text name does not exist. R u sure abt the name?

ags.

Read only

Former Member
0 Likes
692

hi,

using

DATA : lines LIKE tline OCCURS 10 WITH HEADER LINE,

tdid LIKE thead-tdid ,

tdspras LIKE thead-tdspras,

tdname LIKE thead-tdname,

tdobject LIKE thead-tdobject.

tdname = 'FI_CA_ACCTBALA'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = 'ST'

language = 'E'

name = tdname

object = 'TEXT'

TABLES

lines = lines

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

Hope your problem will solve.

Regards,

Sanket.

Read only

Former Member
0 Likes
691

Hi!

Try using function module READ_TEXT to read a text in an internal table. If it should be neccessary to convert the text, try using function module CONVERT_ITF_TO_STREAM_TEXT.

Florian

Read only

Former Member
0 Likes
691

Check this link

Regards,

Lalit Mohan Gupta.