How can we change the input field on a view stop showing zeros

Hello,
       To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
Edited by: sap_learner on Mar 25, 2010 5:44 PM
Edited by: sap_learner on Mar 25, 2010 5:49 PM
Edited by: sap_learner on Mar 25, 2010 5:55 PM

hello Manas Dua,
                       Thanks for your help. I am able to resolve my problem.
My code will help  the future comers to resolve this kind of issues.
*The code is applied to method WDDOINIT of the default view.
  DATA lo_nd_terms_input    TYPE REF TO if_wd_context_node.
  DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
  DATA lv_zeros             TYPE wdy_attribute_format_prop.
  lv_zeros-null_as_blank = 'X'.
  lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
  lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
  lo_nd_terms_input_i->set_attribute_format_props(
    EXPORTING
      name              = `ENTER THE ATTRIBUTE NAME`
      format_properties = lv_zeros     ).
Edited by: sap_learner on Mar 26, 2010 5:02 PM

Similar Messages

  • I am using a 5s under IOS 7.1.1. How can I change the year field directly when editing an existing calendar entry?

    I am using a 5s under IOS 7.1.1. How can I change the year field directly when editing an existing calendar entry?

    Glad that helped.
    Enjoy your iPhone!

  • How can I change the name of a Materialized View?

    How can I change the name of a Materialized View?

    Oracle permitted renaming the snapshot in the earlier versions of 8i. However, it does not permit renaming the materialized view in 9i or 10g.
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • How can we change the state of records in view cache and entity cache

    Hi everybody,
    I am trying to achieve selective rollback, or selective commit. By this I mean that I am looking for a way to change the state of rows in view cache, so that the selective changed rows can be rolled back during comit.
    if anyone has tried anything in this please help me.

    I agree!
    I can't top this approach.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I change the "From:" field in iOS Mail?

    This is a weird one.
    I have a gmail work email account that has been set up for me. There's a primary email address assigned to it, and a secondary one (which is the one I want to use).
    No problem at all sending from the secondary account on my MacBook Pro. I just hit the drop down menu by the "From:" field, and I can select it from there.
    However, when I send from my iPhone, I'm only given the option of sending from my primary email address, not the secondary one. This is despite the fact that I've synced Mail accounts via iTunes.
    Any idea how I might fix this so I can send from the secondary account on my iPhone?

    First of all, please fill in the Computer Model and Operating System fields on your My Settings’s profile (and click Save). This is essential information that should always be provided when asking for help.
    Now, what does “I can't change it” mean? What appears in the From header of the messages you send is determined by your Mail > Preferences > Accounts > Account Information settings...

  • How can I change the input key language between different languages ?

    the language can't be changed when i press ctrl+alt

    The default keys to rotate the layout is a key combination (Ctrl+Shift or Alt+Shift) that can easily be used in Firefox to activate a menu item.
    It is better to disable the key sequence to rotate layouts (Alt+Shift or Ctr+Shift) to avoid an unintentional switch and instead assign a specific key (Alt/Ctrl + Shift + number) to switch to the keyboard layout.
    Control Panel > Regional and Language Options > Keyboards and Languages > Change keyboards > Advanced key settings > Change key sequence
    http://support.microsoft.com/kb/258824 - How to change your keyboard layout
    You can also use the Language bar on the Windows Taskbar.<br />
    You can make the Language bar visible via the right-click context menu of the Taskbar: Toolbars > Language Bar.
    * http://windows.microsoft.com/en-US/windows7/The-Language-bar-overview The Language bar (overview)

  • How can I change the from field in muse formular?

    I want to change the sender e-mail from my to the one who is actually sending the formular on a adobe muse site.

    Hi,
    There is no native feature in Muse to change this.
    Regards,
    Aish

  • How can I change the highlight color of grid view folders in the dock?

    Using OSX 10.10 Yosemite, the highlight color for a folder in Grid view is barely noticeable.
    Can you spot the highlighted icon below?
    I've grown accustom to clicking the applications folder in the doc then typing a few letters to get me close to the app I want- now it takes an extra few seconds for me to visually find the icon that got highlighted.
    Is there a way to change the highlight color here?

    I would open up the grid spacing slightly so everything does not run together. In System Preferences > General, try setting Highlight color: Red. This won't change the grey selection background around the icon, but it will turn the background behind the icon text to red. That stands out. However, the collateral effect is that text you select in this editor, and other OS X applications, will now have a red background too. Changing colors will require a killall Finder in the Terminal. Actually set mine to #ffff00 which is a vivid yellow, which is more practical when selecting text in a document.

  • How can I change the contacts app settings to view by groups?

    When I had an iPod Touch (3rd generation), I was able to sort my contacts by groups by using another app and then when I launched the default contacts app I could tap the "Groups" button and I saw a list of them (Family, Friends, Businesses, etc). That way, I could tap the group I wanted and only view those contacts. Now I'm using an iPhone (4th generation with iOS 6.1.2) and it is the most obnoxious contacts system in the world. I now have to unselect every group I don't want to see, and it's a pain-in-the-neck to get Facebook contacts assigned to groups as the app I use to assign contacts to groups isn't "permitted" to use those contacts that are from Facebook or those who don't have a Facebook link unless I add them and delete the old. I work with a nonprofit organization and I have a lot of contacts for various businesses through them but I shouldn't have to unselect 12 different groups just to view a single group. I've tried looking in settings and can't figure out how to change this. I must have over 100 contacts and this is a pain to deal with. Did Apple really think this was the best change they ever made to the contacts app? Considering they still haven't implemented the ability to assign contacts to groups...
    Another thought is why not also view contacts by business or "theme"? Such as, what if you have a large, extended family and might want to view just 1 section (like my cousins' family who have various last names due to marriage). This is why being able to view by group is so important to me but if I create 5 different groups for family and friends, that means I have to unselect 4 of them AND all the other groups for businesses, work, community, etc just to view the specific contacts. So, did Apple change this or am I just not seeing how to view them the way I want?

    I assume that you are in Germany ? Try going to the bottom of the Featured tab in the App Store app on your iPad and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select Germany.

  • How can i change the OS input language though java

    hi,
    i am working on Windowx XP and for multiple language input support i am using the windows language bar.
    How can i change the input language through the java itself.

    hi,
    for a solution:
    logText.getInputContext().selectInputMethod(Locale.FRANCE)

  • How can I change the height of the input box in a...

    How can I change the height of the  input box in a new version of Skype?
    Solved!
    Go to Solution.
    Attachments:
    Skype_input_box.png ‏4 KB

    lucasbgme wrote:
    I've tried 6.1.0.129
    6.1.0.129 version is disabled. All Skype versions older than 6.14 are now retired and can no longer be used. You can try to install the 6.21.0.104 version:
    http://download.skype.com/msi/SkypeSetup_6.21.0.104.msi

  • How can I change the disabled of a message text input base on a choice

    how can I change the disabled of a message text input when a dropdown list value is changed? I declare the primaryclientaction but I don't know how to make the event automatically change the disabled of the message text input to true or false.
    HELP!!!! IT'S URGENT....

    Hi,
    assuming you are using ADF Faces:
    Put a submit(); in the on-change javascript event of the dropdown.
    In the disabled property of the input text use some EL to reference the value of the dropdown eg disabled="{#{! bindings.Fruit.inputValue == 'BANANA'}"
    Brenden

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can I change the parameters in form

    Hi there,
    I´m creating a WD application with add and change data.
    The change form it´s ok and works fine, but I want to use the same form to add data too...
    But the change from has some element "read only", how can I change the parameter in this form and clean the other elements?
    Thanx a lot

    hi minoru.....
    consider you are having an input field....
    create an attribute of type string in the context.
    bind it to the read only property of the input field.
    now pass the value x to the input field, to make it read only  or pass '' to make it read write.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_read_only LIKE ls_context-read_only.
    * get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    *********read_only is the attribute name bound to the read only *********property of the input field.
    * get single attribute
      lo_el_context->set_attribute(
          name =  `READ_ONLY`
          value = '' ). *** you can pass x to make it read only
    ***** to clear the values
    lo_el_context->set_attribute(
          name =  `INPUT_MATNR` * this clears my input field.
          value = '' ).
    ---regards,
       alex b justin

  • How can I change the cardinality of Model Node?

    Hi everybody
    How can I change the cardinality of Model Node?
    Previous:
    I import a Model RFC, and some nodes has the cardinality 0..1, but with this configuration, when I bind to the text fields of my webdynpro and deploy, all my fields text are unables when I shows the webdynpro.
    I check RFC and all the fields and estructures are obligatories.

    Hi Jesus,
    You cannot change the cardinality of the model node. All  the properties of the Model node are derived from the Model object.
    Your input fields are disabled because you are not creating your model object properly.
    You can import the example project TutWD_FlightList, which is available in c:\Program Files\SAP\IDE\IDE70\eclipse\examples.
    Import it in NWDS and you can see how to initialize model object properly.
    Thanks
    Prashant

Maybe you are looking for

  • How to ignore the iOS 7.0.2 update on iPhone 5

    I do not wish to download the iOS 7.0.2 software update on my iPhone 5. How do I stop it reminding me? I no longer want a permanent red encircled 1 on my settings icon. Thanks for your help.

  • Read only permissions on a VIEW

    Are the permissions to other users to do a select on view become invalid when the view is updated. Or what may cause the permissions become invalid? Is there a way to find this?

  • IDVD says 'supported disk no available,' does not burn too DVD!?

    I have an Apple Imac G4 10.4.11, with iDVD 5. I have a 1 hour 20 minute 'AVI file on my computer that I want to burn to a DVD. I clicked 'Open New Project' on iDVD, then clicked 'File' and 'Import Video' and added my 'AVI file. I put in the disk ands

  • Generating full-size image from thumbnail using BLOB DB images

    Hi all, Assuming that all necessary steps were taken in other posts and tutorials to display images on a web page from BLOB objects stored in an Oracle 10g DB, how is it possible to set the size of the created images (from the servlet that creates th

  • Problem with javadoc comment

    Hi i have a comment like this *<li type="circle"> "31       32        33" (more than one blank space in between) */Now i want to put more spaces between numbers but java doc shows only one space! how can i insert more than one space ??