Application Development 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: 

Printing PO header text in smartforms , bold and italic not displaying

Former Member
0 Kudos

Hi All,

How to achieve bold and Italic in text element in smartforms, for PO ME21N, when some text are done bold , italic or underlined in PO header text , and same should come as output in print preview.Here I am using internal table to read the text, and its not showing the bold etc .

Please suggest asap.

Thanks

Ruchi

10 REPLIES 10

former_member185116
Active Participant
0 Kudos

Hi ,

where ever you have defined your include text in smartform

there you can find a tab called output options

under this tab in field style = enter your style which you might have created using tcode smart styles.

regards,

vinay.

Former Member
0 Kudos

Hi Vinay ,

I have already assign style to output option.

Thanks

Ruchi

former_member185116
Active Participant

please can you share the screen shot of the smartform you have designed so that it becomes easy to answer.

regards,

vinay.

Former Member
0 Kudos

HI Vinay ,

In PO header text ME21N it is in bold as below.

and in print preview-

Details -

Printing PO header text in smartforms , bold and italic not displaying.

IN PO Header Text User will directly copy paste data of any length to header text from Word file or anywhere.

To achieve bold and Italic in text element in smartforms, for PO ME21N, when some text are done bold , italic or underlined in PO header text , and same should come as output in print preview.Here I am using READ_TEXT FM to get text into internal table , and displaying the text in TEXT element of smartform . But in output bold text are not coming in BOLD .

Thanks,

Ruchi

0 Kudos

Show the screenshot of Smartform Text node you are using to output the internal table please...

Also, when in text editor, use Goto->Change Editor to display "raw" text with character format tags. I'm using "Standard Text" here:

After changing editor:

The Smartform Style used to output "dynamic text" should also contain (define) the Character Formats used in included text.

Jelena
Active Contributor
0 Kudos

If you are talking about the text entered in the PO itself then I'm not sure this would be feasible. However, Google finds over 400 results for "purchase order bold text form site:sap.com", so help yourself.

If you are talking about a standard text from SO10 then this can be achieved using <H> and such, I believe, with the proper font and paragraph style. Question about this has been answered not long ago and possibly many times before. Make sure to search.

Former Member
0 Kudos

Dear All,

Yes I am talking about text entered in PO(ME21N) itself, We are getting text by using internal table (Read_text) and also assigned smartstyle to smartforms. Here in between few words are in bold etc (in PO level). While preview only Text are displayable except bold underlined etc.

How to achieve the same ,please suggest.

Regards,

Ruchi

0 Kudos

Can you answer to the previously asked questions :

  • Jelena Perfiljeva Answered 6 days ago
  • By the way, we do not use READ_TEXT, we use Include text node type to print the document text (i.e. same way as for SO10 texts). All you need to do is fill in the variables correctly:

==> why are you getting text by using internal table (read_text) instead the "Include text node"


  • Jānis B Dec 03 at 01:09 PM
  • Show the screenshot of Smartform Text node you are using to output the internal table please...

Jelena
Active Contributor

I'm not sure how it's possible to get any formatting into the PO text. I've just tried in our system (ECC 6.0 EHP6) and when I copy-paste formatted text into the PO text it changes to plain text. Even if I switch to the SAPScript editor and the text looks formatted for a second, as soon as I navigate away from the screen, the editor is switched to line text and all the formatting gets lost.

But if you somehow managed to get formatting into the text, do you actually see it marked when you use READ_TEXT? If you get only plain text then, naturally, that's what is going to be printed.

By the way, we do not use READ_TEXT, we use Include text node type to print the document text (i.e. same way as for SO10 texts). All you need to do is fill in the variables correctly:

former_member185116
Active Participant
0 Kudos

hi,

i understood your problem,

if your are not able to get the desired result using READ_TEXT(FM), use include text as said by jelena,

one more addition to that in std paragraph define any paragraph(with paragraph format as bold) which you have defined in styles.

but this will make entire text in bold,

i am not sure of line by line formatting.

regards,

vinay.