Application Development and Automation 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: 
Read only

Splitting standard text at the script level

Former Member
0 Likes
1,195


Hello experts,

Is there any option to split the include text at the script level.

I want to split the text in to two lines, this text is fetched using READ_TEXT function module.

Regards,

Priya

6 REPLIES 6
Read only

former_member188724
Contributor
0 Likes
1,117

Hi,

Pls Elaborate your requirement with an example of how you want to split the text. You always want to split into two lines, how many lines you may have while using read_text........

Regards,

K.S

Read only

0 Likes
1,117


I want to limit the no of characters being printed in the line. I have tried with the outputlength/Fixed character option in the paragraph format . But it is not working.

My requirement is: While displaying the output it is coming finely, but whenever I am taking the print out some characters(last characters of the line) are missing out in the prinout paper.

Thanks.

Regards,

Priya

Read only

rajkumarnarasimman
Active Contributor
0 Likes
1,117

Hi Priya,

I hope we can split the text using TABLE Keyword in SPLIT Statement as shown below.


"Data Declarations

DATA: itab TYPE TABLE OF string,     "IT for string

             text TYPE string.                       "Text 

"Assign the Text

text = `Value1 Value2 Value3 Value4`.

"Split the Character

SPLIT text AT space INTOTABLE itab.

Regards

Rajkumar Narasimman

Read only

former_member249399
Active Participant
0 Likes
1,117

HI,

try to Provide one fixed length in script like &text(70)&

Thanks

Read only

0 Likes
1,117

INCLUDE &STXH-TDNAME& OBJECT 'AUFK' ID 'AVOT' LANGUAGE EN PARAGRAPH LP

How can I split the text here?

This is the include text.

Regards,

Priya

Read only

0 Likes
1,117

Hi,

  You can split the STXH-TDNAME into two variables and display it as

/: INCLUDE MYTEXT 1

/: INCLUDE MYTEXT 2

 

MYTEXT1 & 2 can be up
to 70 characters long.

Regards,

K.S