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: 

Format SO10 Text

former_member393841
Participant
0 Kudos

Hello All,

Could any one tell me how to format SO10 text.

My Requirement is to send a log file to external mails.

I am able to send the mail successfully to the concerned email's but the format in the mail is wrong.

I need the mail display as shown below

But mail body is in wrong format as shown below

Could any one help me out on this.

Thanks in Advance.

Harsha P

1 ACCEPTED SOLUTION

former_member393841
Participant

My issue is resolved

9 REPLIES 9

Former Member
0 Kudos

Write the output to spool in ABAP and then convert it to PDF and attach?  Would that be acceptable?

Neal

0 Kudos

HI Neal,

Thank you very much for your Quick Response.

Here we are not sending any attachment just we are sending information in mail body.

If i am going in a wrong way please advice me.

Thanks in Advance.

Harsha P

0 Kudos

From my experience,

You can't just write output.  In order to be successful, for instance with what Alok suggested, you'd have to do character point counting and variably adjust your tabs.  That would be insanely difficult.  You could get it to work most of the time without that but is wouldn't work all of the time.

Prashant's is the simplest solution for writing directly into the body.  You just got to know your HTML!

My method is something that you will need in the future, so it could be a good thing to traverse to.  It's one of those things where you need to get a feel for how far you are reaching and not over reach.

Hope this Helps!

Neal

alok_patra
Participant
0 Kudos

Hi,

You can create a style with the required font size and other formatting parameters. Use the style in SO10 to create standard text SO10->Format->Change Style.

Regards,

Alok

former_member386202
Active Contributor
0 Kudos

Hi,

Use HTM format instead of RAW and use HTML tag to format the output.

Regards,

Prashant

Former Member
0 Kudos

I think you want the email to be displayed in such a way that semicolons are vertically aligned.

Arial font:

total file          : 3

success file        : 3

Same text in Courier New font:

total file          : 3

success file        : 3

Try sending email in HTML format. The semicolons will be aligned when monospaced font like Courier New is used.

SPAN tag in email could have font specified like this:

<span style="font-family: courier new,courier;">

This wiki article has html email example that specifies font using SPAN tag.

former_member393841
Participant

My issue is resolved

former_member393841
Participant
0 Kudos

My issue is resolved

former_member393841
Participant
0 Kudos

My issue is resolved