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: 

Import and Expand Standard text in the text control editor

Former Member
0 Kudos

Hello,

recently i have got this requirement.

in which i need to Import Standard text in the text control editor.

some time before i saw one utility in which user got a popup window after pressing one button.

in that popup window he can choose standard text, which he want to Import/Insert into text control editor.

also one check box provided for 'expand' due to this he can import all text lines from Standard text

Now I cant recollect which utility that i saw ?

Is any Function module is there to handle above issue?

5 REPLIES 5

Former Member
0 Kudos

Hi,

Use FM READ_TEXT

0 Kudos

Hi Ashim,

I have already used READ_TEXT FM to display Standard text in text editor control.

if user want to include further text from Standard text object then he should able to get it by selecting Standard Text object name.

so for this i am looking for Standard utility.

thanks,

0 Kudos

Some more details about my issue.

There is option provided in SO10 transaction to include another standard text.

check path : SO10 -> give text object name -> change -> (Menu) Insert -> Text -> Standard

then we will get popup window. here we can specify another text object and then by clicking Expand node we can include all text lines.

Now i am working on one module pool program in which i am putting text editor control under 2nd Tab screen

so here i want to give same utility mentioned above. So user can include all lines of standard text into Editor control.

Popup window screen : 1160

Main program : SAPLSTXX

Source code : LSTXXFPP

how to call above popup window from my Module pool program ?

0 Kudos

Hi,

I have tried various FM (COPY_TEXT, REFER_TEXT) to get solution to my problem.

But now it seems there is no such FM available in SAP to support above utility.

(P.S. - not closing this thread because expecting answer in future)

thanks,

0 Kudos

I've done something similar using the code below. It displays a pop-up screen and sends back the chosen text details in GT_THEAD_STD. You can then use READ_TEXT to read in the text. Available in 4.7 and ERP6 releases to my knowledge.

CALL FUNCTION 'RETRIEVAL_MULTIPLE_TEXTS'
     EXPORTING
       OBJECT                      = 'TEXT'
       NAME                        = '*'
       ID                          = 'ZPR'
       LANGUAGE                    = SY-LANGU
       E_RESTRICT                  = 100
       SHORT_SELECTION             = 'X'
       SINGLE_SELECTION_ONLY       = 'X'
       FIXED_OBJECT                = 'X'
     TABLES
       SELECTIONS                  = gt_thead_std
*      DISABLED_FCODES             =
    EXCEPTIONS
      CANCELLED                   = 1
      RETRIEVAL_ERROR             = 2
      INVALID_ID                  = 3
      INVALID_LANGUAGE            = 4
      OTHERS                      = 5.