cancel
Showing results for 
Search instead for 
Did you mean: 

create long texts for service orders

0 Kudos

Hi ,

I’ve been trying to identify how to create long texts for service orders and have not come up with anything.

The following FMs have been identified

CREATE_TEXT

SAVE_TEXT

COMMIT_TEXT

CREATE_TEXT looks like it calls the other two.

Essentially we are uploading long text into service orders.

I’ve been trying to manually run these FMs but still haven’t been able to create a long text. We need to be able to create a long text for a service order that doesn’t already have a long text. Therefore there won’t be any entries in STXH or STXL which I believe is where they are stored.

Created a new service order by going into IW31

Order type, Plng Plant ,Sold-toParty ,Mn Wk ctr and

Saved

This created a new Service Order without a long text. To find out how the long text affects the table entries, I changed service order with some long text and saw the entries created in STXH or STXL. For some reason trying to re-create using the FMs does not work.

Pls help me to complete this issue.

What parameter need to be passed to this FMs.

Rgds,

Priya

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Yes we ran into the same problem, basically it comes down to lenght of the short text. If when creating your order you put more than 40 characters in the short text, it will work and you can view the save to long text via IW33 and Read_text, but if your short text is shorter for some reason it doesn't know to read the long text table thus its not viewable. Kinda sucks as we are on release 4.6c and I don't see any bapis that allow changes to update the order. Supposably they have some in the new release which we are slated for in July.

If anyone had any success with this please let me know

Cheers,

Devlin

Former Member
0 Kudos

Hi Experts,

Even I am facing the same problem,

After creating the long text using SAVE_TEXT followed by COMMIT_TEXT , Long text gets created ( an entry in long text tables ) but doesn't get reflected on the transaction(Dont know why ). if i read the text i created above using READ_TEXT, it returns the text but the same is not getting reflected in the transaction IW32/IW33 .

Any help is Welcome...

Regards

Divakar

Former Member
0 Kudos

Priya,

Open the text in the service order in the full screen mode. In the menu Go To--> Header, you will see the parameter values that you need to be pased.

TDOBJECT

TDNAME

TDID

Regards,

Ravi

NOte : Please mark the helpful answers

0 Kudos

Hi Ravi,

How to open it in full screen mode.

From iw32 tcode straight away header details are coming.

priya

Former Member
0 Kudos

No I am not talking about the order header. Try to view the Text that you want to save. Are you seeing the TEXT EDIT in full screen mode, other wise double click on the text will throw you in full screen mode.

0 Kudos

Hi Ravi,

I have done create_text, save_text and commit_text.

create_text.

~~~~~~~~~~~~

FID = KOPF

FLANGUAGE = EN

FNAME = 210000050000564 (client,soldparty,service order)

FOBJECT= AUFK

SAVE_DIRECT = X

FFORMAT = *

tdline = THIS IS A LONG TEXT

save_text

~~~~~~~~~

header details :

TDOBJECT AUFK

TDNAME 210000050000564

TDID KOPF

TDSPRAS EN

TDMACODE1 IW32SAPLCOIH

SAVEMODE_DIRECT X

lines : long text 3

long text 2

long text 1

commit _text

~~~~~~~~~~~~

OBJECT AUFK

NAME 210000050000564

ID KOPF

LANGUAGE EN

T_OBJECT-low = AUFK

T_NAME-low = 210000050000564

T_ID-low = kopf

T_LANGUAGE-low = en

I have done the same but not able to see the long text data in the table (aufk-ktext).

-Priya

Former Member
0 Kudos

Priya,

If you are looking at updating the field aufk-ktext, then we are on the wrong track. These functions update the text the SRXH and STXL tables and you can see them either on the Text editor screen or using READ_TEXT. This will not be save in the field aufk-ktext.

For that you will have to find a BAPI/function that updates the order itself where aufk-ktext is also a part of it.

Regards,

Ravi

Note : Please mark the helpful answers

0 Kudos

Hi Ravi,

There is a entry in STXH and STXL.

where ic an see the text. i am not able to see the text in those entries.

Do i need to read_text and find that out.

- priya

Former Member
0 Kudos

Yes, you will have to use READ_TEXT function or go to that order which you have update and you should be able to see the update long text there(NOT KTEXT field).

Regards,

Ravi

Note :Please close the thread, if the question is answered and mark all the helpful answers

Former Member
0 Kudos

Hi

You should use fms WRITE_TEXT and SAVE_TEXT, here transfer the header data:

TDOBJECT -> Text Object

TDNAME -> Text Name

TDID -> Text ID

TDSPRAS -> Text language

You should know these parameters, they depend on the kind of object (in your case service order).

It's better to transfer the lenght of the line to the header parameter TDLINESIZE.

Transfer the text lines to LINES.

Max

0 Kudos

Hi Max,

there is no FM write_text available.

pls confirm me the FM name.

Priya

Former Member
0 Kudos

SAVE_TEXT followed by COMMIT_TEXT should solve your problem.

Regards,

Ravi

Note : Please mark the helpful answers