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: 

Excel file attachment withiout losing leading zeros

Former Member
0 Kudos
688

Hi Expert,

Can anybody tell me how to create the Excel file attachment for email generation without losing the leading zeros.

Regards,

Jyotsna

1 ACCEPTED SOLUTION

OttoGold
Active Contributor
0 Kudos
217

Hello,

you can use this approach: /people/otto.gold/blog/2010/02/11/happy-reporting-with-excel-ii

Regards Otto

5 REPLIES 5

Former Member
0 Kudos
217

Add apostrophe at the starting of the field to make the excel consider the field as a Text

0 Kudos
217

thankx 4 reply.

i got this but it take value like '0123456

so i want to remove special character(apostrophe).

Thanks,

Jyotsna

0 Kudos
217

In the excel, the apostrophe wont be displayed. It just indicates that the field should be cosidered as a text by the excel. Is the apostrophe being displayed in the excel attachement?

Vikranth

OttoGold
Active Contributor
0 Kudos
218

Hello,

you can use this approach: /people/otto.gold/blog/2010/02/11/happy-reporting-with-excel-ii

Regards Otto

Rocky1
Product and Topic Expert
Product and Topic Expert
0 Kudos
217

Hi,

If you want to pass a variable with leading zeros to excel sheet, please use the following:

CONCATENATE '=TEXT(' l_variable ',"000")' INTO g_errcode1.

It will display the leading zeros in excel sheet. I have done the same way in one of my program and it is working fine..

Thanks & Regards

Rocky Agarwal