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 add long text

Former Member
0 Kudos

i am working on smartforms, standard smart form BBP_PO is copied to zzlayout, i have included a new window to it, SF_PO is there in the form interface, since this is standard form they have already reterieved the values for SF_PO. if i try to use the SF_PO_IT_LONGTEXT-TDLINE it is showing an error message component does not exist. what is the problem

1 REPLY 1

Former Member
0 Kudos

Hi,

Refer the folloing example to get the long text.

Here REPORT_ITAB is internal table contain billing document details.

data : INV_TXT like TLINE occurs 0 with header line.

data : R_NAME like THEAD-TDNAME.

loop at REPORT_ITAB.

clear R_NAME.

R_NAME = REPORT_ITAB-VBELN.

call function 'READ_TEXT'

exporting

ID = 'Z001'

LANGUAGE = SY-LANGU

NAME = R_NAME

OBJECT = 'VBBK'

tables

LINES = INV_TXT

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.

loop at INV_TXT.

REPORT_ITAB-INV_INT = INV_TXT-TDLINE.

endloop.

endif.

modify REPORT_ITAB.

endloop.

It's definately solve ur problem.

Regards,

Digesh.P