‎2009 Apr 28 7:59 AM
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.
‎2009 Apr 28 8:03 AM
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.
‎2009 Apr 28 8:01 AM
‎2009 Apr 28 8:03 AM
‎2009 Apr 28 8:03 AM
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.
‎2009 Apr 28 8:04 AM
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
‎2009 Apr 28 10:32 AM