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

include text

Former Member
0 Likes
746

Dear all,

In my smartform i am printing include text of me22n text genral memo .

its working fine .

but I want to print only 70 char of it , how to do restiction here , bcoz this is inclue not text element.

Text Name &ST_HEAD-EBELN&

Text Object EKKO

Text ID F15

Language EN

******************Point is assurd*****************

6 REPLIES 6
Read only

Former Member
0 Likes
721

Hi,

Try these options....

&field+<offset>&

Skips offsets (<offset>) in the field value (character fields only). If the offset is greater than the length of the value, nothing is displayed.

&field(<length>)&

Sets the output length to <length>.

Regards,

Sankar

Read only

Former Member
0 Likes
721

Hi,

Try this one

Text Name &ST_HEAD-EBELN+0(70)&   " This is the way we give the offset i nteh Scripts
Text Object EKKO
Text ID F15
Language EN

Regards

Sudheer

Read only

Former Member
0 Likes
721

Hi,

use the function module

read_text and pass the values

Text Name &ST_HEAD-EBELN&

Text Object EKKO

Text ID F15

Language EN

to the above function

for this write program lines

and the output of the function module store it

and take only the first 70 characters into a variable

and display it

thanks & regards,

venkatesh

Read only

Former Member
0 Likes
721

Hi

You can't print upto 70 char just like that

Create Program Lines in the Smartform in that window

and writye the code for READ_TEXT fun module and pass these 4 paramaters to it

then you will get the Text in the internal table field

then you can offset that text field as

/ &TLINE-TEXT+0(70)&

this will help you correctly to print only 70 char of that text field

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

Former Member
0 Likes
721

Hi Jim,

you can use include ... PARAGRAPH XX

XX is an own paragrah wich you can define with your outputlenght.

Regards, Dieter

Read only

Former Member
0 Likes
721

Hi Anji Reddy and all who reply thanks

as anji logic work here ,

point has been given to you Anji Reddy...

Jim..