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: 

Retrieve Include Standard Text

Former Member
0 Kudos

Hi,

The long text currently I send to idoc are view exactly what we wrote in SAP transaction as below. Could I know how to retrieve the data from Include standard text and send along to idoc with others text to the segment? Thanks.

Before:

*    test pop-up'                                     
*    Text 1                                            
/ :  INCLUDE GENERAL_TEXT OBJECT TEXT ID ST 
*    Text 2

Expected:

*   test pop-up'                                     
*   Text 1                                            
*   Standard Text display here    
*   Text 2

2 REPLIES 2

Former Member
0 Kudos

Hi,

Pls find the syntax for include below:

INCLUDE ZMMPO-TEXT OBJECT TEXT ID ST LANGUAGE E PARAGRAPH F1.

Regards,

Sharath

0 Kudos

Hi,

I managed to find out how to expand the standard text by using this Function Module : TEXT_INCLUDE_REPLACE.

Now, I would like to make changes to my output. I need to move all include standard text to last line and display it out. Could I know I can achieve that?

Long Text Entered in SAP:

*    test pop-up'                                     
*    Text 1                                            
/ :  INCLUDE GENERAL_TEXT1 OBJECT TEXT ID ST  
*    Text 2
/ :  INCLUDE GENERAL_TEXT2 OBJECT TEXT ID ST 

Output:

*   test pop-up'                                     
*   Text 1                                            
*   Text 2
/ : INCLUDE GENERAL_TEXT1 OBJECT TEXT ID ST 
*   expanded text1
/ : INCLUDE GENERAL_TEXT2 OBJECT TEXT ID ST 
*   expanded text2

Edited by: Blue Sky on Jun 27, 2008 4:55 AM