‎2006 Sep 14 8:41 AM
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 .
‎2006 Sep 14 8:52 AM
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.
‎2006 Sep 14 8:47 AM
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
‎2006 Sep 14 8:47 AM
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.
‎2006 Sep 14 8:50 AM
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
‎2006 Sep 14 8:52 AM
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.