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

Standard Text

Former Member
0 Likes
628

Dear Experts ,

I have created standard text . I am reading the text in program by using READ_TEXT function module and replacing the place holder by using REPLACE statement , then user clicks on the print button to take the print out . But the the print is not coming as per the style(paragraph and character format ) what I have specified what may be the reason . And how to correct that .

If I am taking the print of the text from SO10 it comes proper . So thete is no problem with printer .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
586

Hi raghavendra,

1. Thats bcos the system is taking

the default FORM and STYLE - SYSTEM

2. U must be using PRINT_TEXT for

displaying the formatted contents .

3. In this FM

4. there is one parameter

HEADER LIKE THEAD

which we need to pass.

5. In that parameter

6. there are two IMPORTANT fields.

<b>TDFORM = our formname

TDSTYLE = our style name </b>

Just make sure u pass these values,

and your contents will get displayed

as per your STYLE.

regards,

amit m.

4 REPLIES 4
Read only

Former Member
0 Likes
586

Hi,

As you are replacing the place holder it replaces all paragraph and character format you defined in the SO10.

Print the text as you are getting in the internal table.

Thanks

Swagatika

Read only

Former Member
0 Likes
586

i m not sure. but i think. ...

u use read_text fm and fetch record into variable and display this variable in sapscript .than u have to give paragraph format and char format in sapscript not in so10.

if u use include text than i think it should print ok.

Read only

Former Member
0 Likes
586

Hi,

Ur replacin place holder by the value present in the internal table. that's why u r not geting correct format.

After replacing again u have to change the format as per ST.

Regards

Divakar

Read only

Former Member
0 Likes
587

Hi raghavendra,

1. Thats bcos the system is taking

the default FORM and STYLE - SYSTEM

2. U must be using PRINT_TEXT for

displaying the formatted contents .

3. In this FM

4. there is one parameter

HEADER LIKE THEAD

which we need to pass.

5. In that parameter

6. there are two IMPORTANT fields.

<b>TDFORM = our formname

TDSTYLE = our style name </b>

Just make sure u pass these values,

and your contents will get displayed

as per your STYLE.

regards,

amit m.