Application Development and Automation 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: 
Read only

how to keep long text in bdc using create_text function module

Former Member
0 Likes
336

hi,

ihave bdc in that i having field like long text i have to upload the long text using create_text function module how to use and where to use in bdc. wat parameters i have to pass exactly.

i need some other information like how can i pass this to BDC i got like this .

can u plz check it.

its a length of 255 chaters

perform bdc_field using 'RSTXT-TXLINE(02)'

'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'

& 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.

perform bdc_field using 'RSTXT-TXLINE(03)'

'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

& 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

perform bdc_field using 'RSTXT-TXLINE(04)'

'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'

& 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'.

perform bdc_field using 'RSTXT-TXLINE(05)'

'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'

& 'hhhhhhhhhhhhhhhhhhhhhh'.

1 REPLY 1
Read only

Former Member
0 Likes
298

Hi,

Use this coding where do u want,

data: begin of textline occurs 10.
        include structure tline.
data: end of textline.

start-of-selection.

textline-tdformat = '*'.
textline-tdline = 'TESTING FOR CREATION OF TEXT'.
append textline.
clear textline.

    call function 'CREATE_TEXT'
         exporting
              fid       = '0013'
              flanguage = sy-langu
              fname     = '0095000501'
              fobject   = 'VBBK'
         tables
              flines    = textline
         exceptions
              no_init   = 01
              no_save   = 02.


end-of-selection.