cancel
Showing results for 
Search instead for 
Did you mean: 

Remving Default Zeros for Currency Field

Former Member
0 Kudos

Dear All,

I have one attaribute in context with type CPET_PRICEQUOT. This is the currency field. When the application is executed in portal it appears as 0.00 . How do I hide this 0.00 . I need this field for further calculation.

Regards,

Raghvendra.

Accepted Solutions (0)

Answers (4)

Answers (4)

vivekananthan_sellavel
Active Participant
0 Kudos

hi,

right click the input field

Refer this link:

http://www.flickr.com/photos/tjung/3406716217/

Rgards

Vivekananthan.S

Former Member
0 Kudos

Hi,

type this code in WDDOINIT


DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.

* get element via lead selection
  lo_el_context = wd_context->get_element( ).

** get single attribute
  lo_el_context->set_attribute_null(
    EXPORTING
      name =  `NEW` ). " NEW is the name of attribute

Your problem will be definitely solved

Regards,

Rohit

vivekananthan_sellavel
Active Participant
0 Kudos

hi '

In the attribute property

Dispaly defalt value. Zero as blank

http://www.flickr.com/photos/31042772@N08/3409510992/

Regards

Vivekananthan.S

Former Member
0 Kudos

Hi,

In the latest version, there is a new feature added for context attribute property as FORMATTING-

Please try to use the context attribute property for that field -

FORMATTING -

DISPLAY LEADING ZEROS - Select the option Zeros as blanks

Hope this solves your problem.

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

I have already done this but still 0.00 is appearing.

Any other way.

Regards,

Raghvendra

Former Member
0 Kudos

Hi,

How about using the NULL property of the context attribute.

Regards,

Lekha.