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 FM Issue

Former Member
0 Likes
1,850

Hi Firends

I have created text for Equipment using 'CREATE_TEXT' Function Module. It creates fine but with the following issues.

1. When I go and Edit Equipment in IE02 the Icon (Pad with Pencil on right end of Short text) should change showing lines on the PAD but it dosent unless I Save (IE02) to get.

2. When I go and check in IE05 for group of equipments and select 'Long text Exists' in Layout and it is never checked unless i go to the equipment in 'IE02' and Save it.

3. Long text not visible in IE03 but visible in IE02.

Kindly help me to create the long text using 'CREATE_TEXT' FM with 'Long text Exits' checked without going to IE02 and Saving it.

Thanks and Regards

Edited by: Senthil Ram Kumar Palanisamy Ganapathi on Jan 29, 2010 1:30 PM

Edited by: Senthil Ram Kumar Palanisamy Ganapathi on Jan 29, 2010 1:41 PM

11 REPLIES 11
Read only

Former Member
0 Likes
1,507

Hi senthil,

Have you used the Commit..This might work.Just give a trail!!

Read only

0 Likes
1,507

Hi

I tried and didn't work. I have mentioned that I was able to see the long text in 'IE02' and which shows the record is being commited but not in IE03.

Thanks.

Edited by: Senthil Ram Kumar Palanisamy Ganapathi on Jan 29, 2010 4:08 PM

Read only

Former Member
0 Likes
1,507

OK - but did you execute FM COMMIT_TEXT ? Please see its documentation.

Rob

Read only

0 Likes
1,507

Rob

I have executed 'COMMIT_TEXT' FM soon after the 'CREATE_TEXT' and it never worked.

call function 'CREATE_TEXT'

exporting

fid = 'LTXT'

flanguage = sy-langu

fname = '000000001000067910'

fobject = 'EQUI'

SAVE_DIRECT = 'X'

  • FFORMAT = '*'

tables

flines = fline

  • 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.

call function 'COMMIT_TEXT'

EXPORTING

OBJECT = 'EQUI'

NAME = '000000001000067910'

ID = 'LTXT'

LANGUAGE = SY-LANGU

SAVEMODE_DIRECT = 'X'

  • KEEP = 'X'

  • LOCAL_CAT = ' '

  • IMPORTING

  • COMMIT_COUNT =

  • TABLES

  • T_OBJECT =

  • T_NAME =

  • T_ID =

  • T_LANGUAGE =

.

Thanks

Edited by: Senthil Ram Kumar Palanisamy Ganapathi on Jan 29, 2010 4:42 PM

Read only

0 Likes
1,507

What do you mean 'it never worked?' Did it give an error message, return code, something else?

Rob

Read only

0 Likes
1,507

Rob

It did not gave any return or error code and executed fine but still I am seeing the same 3 issues which i mentioned at the begining.

Thanks

Edited by: Senthil Ram Kumar Palanisamy Ganapathi on Jan 29, 2010 4:59 PM

Read only

0 Likes
1,507

Hi All

I just saw the similar issue at below link and haven't resolved yet.

Please let me know if any one find some solution.

Thanks

Read only

Former Member
0 Likes
1,507

I think you need a long text indicator turned on in the db row. I've seen this before and don't recall my fix, but I think it had to do with populating the short text that sometimes appears on screen, and pressing the long text button. Within your update tool, do you have the ability to flip that switch on and/or populate the short text element also?

Read only

0 Likes
1,507

Dave

I did not find switch like that in the FM.

Thanks

Read only

0 Likes
1,507

NO NEED FOR COMMIT_TEXT AS THIS FM IS CALLED FROM THE CREATE_TEXT FM ITSELF.

Read only

Former Member
0 Likes
1,507

Dear Experts

Did any one actually manage to solve this we are facing the same issue while we work  with create notification long text i.e  iw21 . Notification text  gets saved in the database tables  STXL  and STXH before saving it and we can view the same from READ_TEXT  i.e the value for the default text and thus we can say it is transferred correctly while creating the notification .

I am pasting steps tp reproduce the issue :

Step 1 : Creating a notification : IW21

Step 2 : Fill all the details

Step 3 : If the user clicks on the long text Display notification marked in yellow it comes as blank :

ORKAROUND : However if user  enters a space / enter or some entry in the small window like below

Step 6 : And then click on Display next to long notification : It would display the long text .