Application Development 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: 

how to call include text in to report

laxman_sankhla3
Participant
0 Kudos

hi

i want to call include text in report se38

so how can i call include text .

thanks in advanced.

11 REPLIES 11

Former Member
0 Kudos

hope this statement would help you...

INCLUDE LSPRITOP.

where lspritop is the include program which you wanna insert.

0 Kudos

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

Former Member
0 Kudos

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...

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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 .

0 Kudos

loop at the lines table data.

ex;

loop at it_tlines.

write:/ it_tlines.

endloop.

0 Kudos

loop at it_tlines.

write:/ it_tlines-tdline.

endloop.

0 Kudos

hi in report se38 error is coming like ekpo text object is not available

so what i has to do to solve this problem

0 Kudos

Check the text object for the long text.

Former Member
0 Kudos

Hi Laxman,

Report report_name.

Include include_name.

.

.

.

.