Skip to Content
author's profile photo Former Member
Former Member

Reg : Formatting Excel

Hi All,

I am sending a mail with an excel attachment. in the excel sheet i have done all the formatting stuff and i am displaying the numbers also in the excel correctly bu using the below code

g_format1 = g_document->create_simple_element( name = 'NumberFormat' parent = g_style1 ).

g_format1->set_attribute_ns( name = 'Format' prefix = 'ss' value = '0.00' ).

g_data->set_attribute_ns( name = 'Type' prefix = 'ss' value = 'Number' ). " Cell format

but when a cell in the excel is having a negative value the excel is not opening. can any one please tell me how to handle the negative value in the excel.

Thanks and Regards,

M.Phanindra

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2012 at 01:53 AM

    Hello

    In SAP the negative sign by default come after the number. In order place the negative sign before the number the following function module should be used.

    CLOI_PUT_SIGN_IN_FRONT

    Then send the value to the excel file

    Hope this works for you

    Thanks

    Sandeep

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.