cancel
Showing results for 
Search instead for 
Did you mean: 

Calling SAP Script Editor from Report

former_member307726
Participant
0 Kudos

Hi,

Can any one solve this Problem.

How to call SAPscript Editor i.e. MS word editor (where we are giving Text elements or Text variables or Text.

I want to call the above text editor from my report.

Can any one give answer for this.

Thanks & Regards,

Kumar.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member307726
Participant
0 Kudos

Answered

former_member181995
Active Contributor
0 Kudos

Moarach,

you need to open a editor for entering the text. You can do that using the function module HR_CALL_TEXTEDITOR. After you have entered the text and clicked on SAVE you get the data returned in an internal table EDITOR_TEXT.

You can then save the text to a text ID using SAVE_TEXT and COMMIT_TEXT function modules.

either:

You will have to use the FM: READ_TEXT, EDIT_TEXT, SAVE_TEXT to achieve this functionality.

This will basically open the text editor as a pop up box ( size will be as sap script editor) for entering some comments against a Purchase Order.

For this FMs, you 'll require Text id, text name, text object and language as parameters to be passed.

thead-tdname = 'Purchase Order No'. " Name

thead-tdid = 'ZQH1'. " Text ID - E.g. To be created in your system

thead-tdobject = 'VBBK'. " Texts: application object

thead-tdspras = sy-langu. " Language Key

Hope this helps.

Amit.