cancel
Showing results for 
Search instead for 
Did you mean: 

Display long text in SAPScript

Former Member
0 Kudos

Hello,

I need display the long text in sapscript. I have a internal table in the print program but i cant display this table in sapscript.

Could you help me, please?

Thanks

David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Read the internal table.if internal table have 4 lines split each line in to each and every line..pass to each variable to script.

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

id = '0001'

language = SY-LANGU

name = V_OBJECT

object = 'DOC_ITEM'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = I_LINESP

  • EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • NOT_FOUND = 4

  • OBJECT = 5

  • REFERENCE_CHECK = 6

  • WRONG_ACCESS_TO_ARCHIVE = 7

  • OTHERS = 8

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

READ TABLE I_LINESP INDEX 1.

I_BSEG-LTEXT1 = I_LINESP-TDLINE.

READ TABLE I_LINESP INDEX 2.

I_BSEG-LTEXT2 = I_LINESP-TDLINE.

READ TABLE I_LINESP INDEX 3.

I_BSEG-LTEXT3 = I_LINESP-TDLINE.

READ TABLE I_LINESP INDEX 4.

I_BSEG-LTEXT4 = I_LINESP-TDLINE.

MODIFY I_BSEG.

ENDLOOP.

Regards,

padmaja.

Answers (2)

Answers (2)

Former Member
0 Kudos

try n lemme know whether u solved the prob r not?

Former Member
0 Kudos

Hello,

I´m testing the solution,

Thanks

David

Former Member
0 Kudos

David,

do the following:

Goto Menu option "Insert" -> "Text" -> "Standard" -> Give <Text name>, <Text Id> and <Language>.

or

you need to use the incldue text with the text id and text object. try to insert this code in the corresponding window.

/: INCLUDE &variable& OBJECT VBBP ID 0001 LANGUAGE EN.

It may work for u

~~Guduri

Former Member
0 Kudos

Hi,

i want to insert a text from FB02 of the field LONG TEXT in the SAPScript , Can i to used this solution?, how do it?

Regards,

David

Former Member
0 Kudos

Hi Naveen,

I am facing a similar situation like the one you have replied below.

I have read the long text and moved the contents to an internal table.

How can I assign this internal table to the standard text (in the calling program)? so that I can use the standard text in sapscript as you describe below.

FYI, my object is VBBP & ID is ZNUM

Please revert.

Thank you very much for your time.

Regards

Geetha