Skip to Content
0

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

Dec 01, 2016 at 05:55 AM

774

avatar image
Former Member

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 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

8 Answers

VINAY REDDY Dec 01, 2016 at 06:53 AM
1

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

regards,

vinay.

Share
10 |10000 characters needed characters left characters exceeded
Jelena Perfiljeva
Dec 06, 2016 at 06:59 PM
1

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:


image.jpg (47.3 kB)
Share
10 |10000 characters needed characters left characters exceeded
VINAY REDDY Dec 01, 2016 at 06:30 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 01, 2016 at 06:41 AM
0

Hi Vinay ,

I have already assign style to output option.

Thanks

Ruchi

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 01, 2016 at 10:50 AM
0

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


po-header.png (40.7 kB)
abc.png (18.0 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

standardtext1.png (20.8 kB)
standardtext2.png (21.9 kB)
0
Jelena Perfiljeva
Dec 02, 2016 at 10:51 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 06, 2016 at 09:04 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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...
0
VINAY REDDY Dec 13, 2016 at 07:53 AM
0

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.


sf1.jpg (39.9 kB)
Share
10 |10000 characters needed characters left characters exceeded