04-03-2007 5:13 AM
hi
i want to call include text in report se38
so how can i call include text .
thanks in advanced.
04-03-2007 5:16 AM
hope this statement would help you...
INCLUDE LSPRITOP.
where lspritop is the include program which you wanna insert.
04-03-2007 5:18 AM
not include programe i want to call include text which ever i m using in smarform
but insted of smartform i want to call include text into report
04-03-2007 5:22 AM
do u mean to say that u want to read the text and display it in the report.
if yes, then use function module READ_TEXT..
for standard Texts(saved in SO10) u can use the above function module and pass the below parameters:
NAME = Text Name (<standard text name> )
LANGUAGE = Language ( EN )
ID = Text ID( ST ) Standard text
OBJECT = Text object( TEXT ) SAPscript standard texts
for other type of texts,
u can pass the appropriate values to above parameters.
reward points if helpful...
04-03-2007 5:25 AM
hi laxman
try the following fm
TEXT_SYMBOL_REPLACE or TEXT_INCLUDE_REPLACE
The replace modules can only replace symbol values or resolve include texts, but not interpret SAPscript control commands.
regards
navjot
rewrad if helpfull
04-03-2007 5:45 AM
Hi,
You can use the FM READ_TEXT to read the text. You have to pass appropriate Text name, Text ID, Text object to do this.
Let's say you want to read a 'Header note' text from sales document. You use this code.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
DATA: l_objname LIKE thead-tdname,
l_vbeln LIKE vbak-vbeln.
DATA: lit_textline LIKE tline OCCURS 10 WITH HEADER LINE.
*" move sales document number
l_vbeln = 'Pass Sales document number here'.
l_objname = l_vbeln.
*" Read text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = sy-langu
name = l_objname
object = 'VBBK'
TABLES
lines = lit_textline.
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
Let me know if you need any other information.
Regards,
RS
04-03-2007 7:01 AM
hi thanks to replay
i got text in functional module read_text
i pass below parameter
ID F03
LANGUAGE EN
NAME 410000051400010
OBJECT EKPO
in lines table data is coming
now i want to write this text in to report so how can i do it
thanks .
04-03-2007 7:04 AM
loop at the lines table data.
ex;
loop at it_tlines.
write:/ it_tlines.
endloop.
04-03-2007 7:04 AM
04-03-2007 7:09 AM
hi in report se38 error is coming like ekpo text object is not available
so what i has to do to solve this problem
04-03-2007 7:18 AM
04-03-2007 7:07 AM