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

Reading text object from screen buffer

Former Member
0 Likes
1,144

Hi gurus,

We are using enhancement to do the following.

At runtime during CHANGE in Maintenance Order (IW32), implemented enhancement to add extra COMPONENT if the user adds COMPONENT with certain criteria. That means user adds one COMPONENT line item, if it fits certain criteria, the system adds another line item automatically. 

What we need to do is, there is long text field that the user may edit and add. We need the same content to be copied to the line item that system adds.

The trouble that we are facing is, since the text is not committed to database, it cannot be read through READ_TEXT. Also, when the enhancement code executes, we no longer have access to screen elements.

Is there any way to get around this?

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
684

Hi;

You can use the import and Export statements i think it's helpful for you...

http://help.sap.com/SAPhelp_nw70/helpdata/en/7c/209667b05b844399f6402a0213ef95/content.htm

Thanks,

Raj

Read only

Clemenss
Active Contributor
0 Likes
684

Ravin,

you can try function

GET_TEXT_MEMORY which returns the text memory as a table.

For a full description of the text memory and the CALL mode, see the SAP Online Help on

SAPscript

The Programming Interface -> Text Memory

Documentation extract taken from SAP system, Copyright (c) SAP AG

Regards

Clemens