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

create_text function module

Former Member
0 Likes
657

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.

2 REPLIES 2
Read only

Former Member
0 Likes
487

Hi,

Data : FID(4) TYPE C,
       RSTXT LIKE RSTXT-TDNAME,
       LANG TYPE C,
       OBJ(10) TYPE C.
DATA : FLINES LIKE TLINE OCCURS 0 WITH HEADER LINE .
TABLES : KONV .

select single * from konv where knumv = i_ekko-knumv and
                                KPOSN = i_ekpo-ebelp and
                               KSCHL IN ('ZFR5','ZFR6') AND
                               KAWRT NE 0 .
FID = 'F01' .
LANG = 'E' .
OBJ = 'EKPO' .
FLINES-TDLINE = 'ZFR5'.
APPEND FLINES .

IF SY-SUBRC = 0 .



CONCATENATE I_EKPO-EBELN I_EKPO-EBELP INTO RSTXT .

CALL FUNCTION 'CREATE_TEXT'
  EXPORTING
    FID               = FID
    FLANGUAGE         = LANG
    FNAME             = RSTXT
    FOBJECT           = OBJ
*   SAVE_DIRECT       = 'X'
*   FFORMAT           = '*'
  TABLES
    FLINES            = FLINES
* EXCEPTIONS
*   NO_INIT           = 1
*   NO_SAVE           = 2
*   OTHERS            = 3
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Regards,

Brown.

Read only

0 Likes
487

hi,

brown

thks for sending and 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'.