cancel
Showing results for 
Search instead for 
Did you mean: 

PERFORM statement for mulitple entries in SAP_SCRIPT

Former Member
0 Kudos

I have used READ_TEXT function module for getting text from standard text in deriver program. Now , I have to print in form. The lines are coming from READ_TEXT function module are multiple. How to achieve this?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi friend,

If you use READ_TEXT FM to get text display in SAP SCript. 'Cause user can enter text various way so text will has multiple lines.

first, if you decide to use READ_TEXT then you must loop through table it_lines to get all lines then concatenate to other variable.

second, we suggest to use INCLUDE TExT


:/INCLUDE name [OBJECT] [ID] [LANGUAGE] [PARAGRAPH]

you can read more about INCLUDE by searching.

regards,

former_member182566
Active Contributor
0 Kudos

Hi. You can put the text directly in the sapscript form, no need to read in the program.

/: INCLUDE <text_name> OBJECT <object> ID <text_id> LANGUAGE <language>.

You also have it in the menu (sapscript editor): Insert -> Text -> Standard.

Former Member
0 Kudos

TEXT-Name is variable, value should come from program. What should be OUT_TAB-NAME valuei n this case?

Former Member
0 Kudos

Instead, I am using Standard text for printing the text. But , problem is that, no out_tab-value is going back to SAP-Script form.

But in driver program, it is showing the value. what is left to get value in form?