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

Formatting Excel Attachment output in SO_DOCUMENT_SEND_API1

Former Member
0 Likes
881

Hi ABAPers,

I'm hoping someone can get me started with a requirement. I"m using SO_DOCUMENT_SEND_API1 to email a file as an excel attachment. I'm required for a four digit code to show as (0003). Instead, when I open the excel attachment, it displays as 3. Would anyone know how to set the document to show all fields as text? Any help would be appreciative.

Thanks,

Meezy

7 REPLIES 7
Read only

Former Member
0 Likes
809

In addition, I need the fields to display this way as default when the document is opened. The requirement is to not have the business perform this action.

Thanks,

Meezy

Read only

venkat_o
Active Contributor
0 Likes
809

Hi Meezy, When u r building Excel attachement, take one variable of type N with length 4 and pass to excell file. Then only it is possible. Regards, Venkat.O

Read only

Former Member
0 Likes
809

Hi Venkat,

The program is sending the 4 digit code perfectly through excel in debug mode. However, when it's when I open the file that it get's cut off. 3000 shows up fine. Only codes with leading 0's are cut off. 3000 shows as 3000 but 0003 shows as 3.

Thanks,

Meezy

Read only

Former Member
0 Likes
809

I've figured it out.

Read only

0 Likes
809

Meezy,

I am also loking for same solution, can you please let me know what needs to be done.

Thanks!

Thiru

Read only

0 Likes
809

Hi Meezy,

Even I am trying to format my excel attachment created through FM 'SO_DOCUMENT_SEND_API1'. Can you please share your solution? Any additional tips on formatting (like framing, coloring or making the fields bold) would be helpful.

Thanks,

AMol

Read only

Former Member
0 Likes
809

Hi Meezy,

Can you please post the solution which you worked out.

Hope to hear from you soon!!!

Thanks

VJ