Application Development 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: 

How to get information from a text editor in the SAP standard transactions

Former Member
0 Kudos

Hi SAP gurus I have a requirement in which it is required to gte the information from a text editor(which is not a field) in mm02 (click on) goto Purchase Order Text in this view there is a text editor there is some text in te the text editor i have to get that information in a table can it be done if so please give example and steps

Points will be given to useful information

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Just checked, the TDOBJECT should be "MATERIAL" and the TDID should be "BEST", and the TDNAME should be your material number. Use these values when calling READ_TEXT.

Regards,

Rich Heilman

7 REPLIES 7

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes you can get this text by using the READ_TEXT function module, you will need to know the object and id and the "name" is probably material number or a concatenation of material number and plant. Check table STXH for an example of this data.

Regards,

RIch Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Just checked, the TDOBJECT should be "MATERIAL" and the TDID should be "BEST", and the TDNAME should be your material number. Use these values when calling READ_TEXT.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Moved thread to ABAP Forum.

Regards,

Rich Heilman

0 Kudos

Hi Rich Thank you so much for the information

Can u tell me how you were able to find the TDOBJECT TDID etc????

0 Kudos

Ah yes, excellent question, and not really a clear cut answer. In my experience, the easiest way to find this information is to simply create the text using the standard transaction, in this case MM02. Then go to transaction SE16, using table STXH, do a query on this table, entering your user name, and today's date as the creation date. The results should show the text that you just created, now you can see the object, id, and the way the name is being used here.

I also understand that in some cases, there is a button next to the editor in the screen which gives you some idea of these values, but this is not implemented everywhere, and I believe that I've only seen this in one place, can't remember where, but the first solution above will always work for you.

Regards,

Rich Heilman

0 Kudos

Thank You !!!!!

0 Kudos

Hi Rich Heilman,

      How can we make default text in the editor & should be non-editable mode as below for tcode QA32 and under User decision tab where you can find a word editor?..So User would be able to write related title in the word editor.

          DATE:

          Order:

Thanks

Shree