I'm hoping someone can help with a problem I'm having with the CopyText command. I'm trying to copy the long text of a Notification Item so that later on I can display the contents in a Textbox for the user to edit with, as part of a custom input screen. At the end of the editing process, I want the user to be able to save the contents of the textbox back to the Noti Item Long Text.
When I manually display the Notification Item Long Text, SAP is displaying a Word 2007 window within the SAP screen as the Long Text entry area. GuiXT identifies this long text field as
When I read the data fields in the Notification into variables, I'm using the following script commands to read the Long Text:
. . .
Enter "=TXPS" // Press the Long Text button...
Copytext fromScreen="X[SCMSW_CONTAINER_2102]" toText="iw_noti_item1.remarks"
Enter "/3" // go back to Noti Item
Later on when I display the custom input screen I'm using the following code:
. . .
// populate the text variable with the contents from the Long Text field
copytext fromText="iw_noti_item1.remarks" toText="iw_noti_wdr_remarks"
textbox (20,15) (23,95) name="iw_noti_wdr_remarks"
When the custom input screen displays, the Textbox displays the word "MsoWorkPane", rather than the contents of the Long Text field. My suspicion is that Word 2007 as the graphical editor has something to do with this problem. I have tried unchecking the Graphical Editor option, but then the screen reverts back to the line by line Table which Iwould rather not read and reassemble for the custom input screen, if I don't have to.
I have tried other variations of the CopyText command to get the Long Text data, such as using -toClipboard and -toFile options, and in each case, "MsoWorkPane" is the contents copied from the
Noti Item Long Text field into the clipboard or to the file respectively.
I welcome all suggestions on how to resolve this question.