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 issue

Former Member
0 Likes
548

Hi!

I would like to insert long text into a PM order, in the creation phase. As you might know, during creation, there is not existing document number, only a temporary one (like %000000001).

How can I use the SAVE_TEXT in this way?

Every working solution will be awarded!

Thank you

Tamá

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
522

well all you need here is a field that can identify your PM order later, so you know ther text is belonging to that order.

normally we use things like vbeln, ebeln, matnr and such when saving header data.

when saving position data, we mostly use vbeln + posnr, ebeln + ebelp, ...

you can use any unique field of your pm order as a TDNAME.

and yeah dont forget to call the FM COMMIT_TEXT after using SAVE_TEXT.

3 REPLIES 3
Read only

Former Member
0 Likes
523

well all you need here is a field that can identify your PM order later, so you know ther text is belonging to that order.

normally we use things like vbeln, ebeln, matnr and such when saving header data.

when saving position data, we mostly use vbeln + posnr, ebeln + ebelp, ...

you can use any unique field of your pm order as a TDNAME.

and yeah dont forget to call the FM COMMIT_TEXT after using SAVE_TEXT.

Read only

Former Member
0 Likes
522

Hi,

Use so10 tcode for that.

Rewards points if it is useful.

Read only

former_member194669
Active Contributor
0 Likes
522

Hi,

If you want to add a long text in SAP standard transactions, you need to find out an userexit after save, In this userexit system provide you the document number. Using SAVE_TEXT you can save the long text into the PM order

a®