08-06-2012 9:59 AM
Hi
i m using save text function as below..
WA_HEAD-TDOBJECT = 'CHARACTER'.
CONCATENATE R_ATNAM-LOW WA_E1CAWTM-ATWTB INTO WA_HEAD-TDNAME.
WA_HEAD-TDID = 'DML'.
WA_HEAD-TDSPRAS = SY-LANGU.
WA_HEAD-TDTITLE = 'TEST'.
WA_HEAD-TDFORM = 'SYSTEM'.
WA_HEAD-TDFUSER = SY-UNAME.
WA_LINES-TDFORMAT = '*'.
LOOP AT IT_E1TXTL1 INTO WA_E1TXTL1.
CLEAR WA_LINES.
WA_LINES-TDLINE = WA_E1TXTL1-TDLINE.
APPEND WA_LINES TO GT_LINES.
CLEAR WA_E1TXTL1.
ENDLOOP.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
CLIENT = SY-MANDT
HEADER = WA_HEAD
SAVEMODE_DIRECT = ' '
TABLES
LINES = GT_LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC EQ 0.
COMMIT WORK.
ENDIF.
By this code value is getting created in table STXH but not visible in CT04 .. can u pls help ??
Regards,
08-06-2012 10:25 AM
I suppose there was no existing long text for the characteristic, so there should be (somewhere) a initial flag for long text; and CT04 don't read the saved long text.
First perform a call to BAPI_CHARACT_GETLONGTEXT to check existence of long text, and if none found, use BAPI_CHARACT_ADDLONGTEXT to add your text.
Regards,
Raymond
PS: Are you sure of object and id, should it be object FEATURE and id HEAD in CT04 ?
08-06-2012 10:25 AM
Hi,
I think before SAVE_TEXT. You need to use CREATE_TEXT function module...
Regards,
Venkat.
08-06-2012 10:25 AM
I suppose there was no existing long text for the characteristic, so there should be (somewhere) a initial flag for long text; and CT04 don't read the saved long text.
First perform a call to BAPI_CHARACT_GETLONGTEXT to check existence of long text, and if none found, use BAPI_CHARACT_ADDLONGTEXT to add your text.
Regards,
Raymond
PS: Are you sure of object and id, should it be object FEATURE and id HEAD in CT04 ?