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

SAVE_TEXT error

Former Member
0 Likes
2,050

Hi All,

i am using SAVE_TEST FM after using CATSXT_SIMPLE_TEXT_EDITOR function module,

i am getting an error as text object is not available.

can anyone tell me why am i getting this error?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,381

hi Poonam,

please refer this link

and

8 REPLIES 8
Read only

Former Member
0 Likes
1,382

hi Poonam,

please refer this link

and

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,381

Hi,

Refer:

Hope this helps you.

Regards,

Tarun

Read only

Former Member
0 Likes
1,381
Read only

0 Likes
1,381

i am using this code:

CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'

EXPORTING

im_title = 'Enter your text here'

  • IM_DISPLAY_MODE = ' '

  • IM_START_COLUMN = 10

  • IM_START_ROW = 10

changing

ch_text = wa_ship

.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

header = header

  • INSERT = ' '

  • SAVEMODE_DIRECT = ' '

  • OWNER_SPECIFIED = ' '

  • LOCAL_CAT = ' '

  • IMPORTING

  • FUNCTION =

  • NEWHEADER =

tables

lines = tline* EXCEPTIONS

  • ID = 1

  • LANGUAGE = 2

  • NAME = 3

  • OBJECT = 4

  • OTHERS = 5

.

IF sy-subrc <> 0.

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

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

ENDIF.

here i am geeting an error with tline as type u.

have i mentioned the parameters correct?

Read only

Former Member
0 Likes
1,381

Hi Poonam,

Kindly go through this link below:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/an%252bintroduction%252bof%252btext%252bobje...

Hope it helps

Regards

Mansi

Edited by: MANSI ASNANI on Mar 25, 2009 5:22 AM

Read only

0 Likes
1,381

I am not getting any error now but the text is not appearing in the smartform.

please let me know

in CATSXT_SIMPLE_TEXT_EDITOR FM i am geeting the text saved in wa_ship, how ll this be passed to save_text??

Edited by: Poonam Naik on Mar 25, 2009 5:42 AM

Read only

0 Likes
1,381

Hi,

You can refer to this:

Regards

Mansi

Read only

0 Likes
1,381

Hi Poonam ,

In the parameter HEADER of the FM there is a field called TDOBJECT , please check if you are passing the correct value to it.

Regards

Arun