Remving Default Zeros for Currency Field

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.

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

Similar Messages

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • Negative sign for Currency fields

    Hello experts,
    If a currency field containt -Ve sign (86.47-) then, i have to move it this sign to Left sinde. I have do this as follow by moving the currency field value to Charractor field
    DATA:  w_total1 (18).
                 MOVE w_total To w_total1.
                 IF w_total1 CA '-'.
                   SHIFT w_total1 RIGHT CIRCULAR.
                 ENDIF.
                 CONDENSE w_total1 NO-GAPS.
    But don't want to move this to Chanddacter field for other pupepose. Now how can i **** the -Ve sign to left side for currency field, IF bsid-shkzg EQ 'H'.
    Thanks.

    Hi sandhya ,
    Try this :
    DATA:  w_total type string ,
          w_total1 type string.
    w_total = '1,4567.7-'.
                 MOVE w_total To w_total1.
                 IF w_total1 CA '-'.
                   SHIFT w_total1 RIGHT CIRCULAR.
                 ENDIF.
    *             CONDENSE w_total1 NO-GAPS.
                 write : / w_total1.
    Hope all your issues are fixed now .
    Regards ,
    lokesh
    Edited by: Lokesh Pattnayak on Oct 11, 2010 10:23 AM

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • Search help for currency field

    I am not able any search help for currency field , CUKY of lenght 5
    If anyone knows it please tell

    You can use the data element WAERS / refer to field BKPF-WAERS.  The search help will show up automatically as the field BKPF-WAERS, has check table TCURC.
    Also see the "Origin of Input help" column in "Entry help/ check" tab in SE11 for table BKPF, it says - "Input help implemented with check table".
    For example in tcode FB01, the currency field on the selection screen is BKPF-WAERS. The search help is displayed
    Hope it helps

  • How can i avoid leading zeros for a field in smartform?

    how can i avoid leading zeros for a field in smartform?

    Hi,
    Using the Symbols.
    &symbol(Z)&  Omit Leading Zeros  &symbol(S)&  Omit Leading Sign 
    &symbol(<)&  Display Leading Sign to the Left 
    &symbol(>)&  Display Leading Sign to the Right 
    &symbol(C)&  Compress Spaces 
    &symbol(.N)&  Display upto N decimal places 
    &symbol(T)&  Omit thousands separator 
    &symbol(R)&  Right justified 
    &symbol(I)&  Suppress output of the initial value 
    Regards,
    Shiva Kumar

  • OBIEE Presentation Services : Default formatting for numeric fields

    Hello all.
    I need help in setting default formatting for numeric fields in criteria. If a user adds an numeric field, it does not have any formatting associated with it. I want to know how do you set default formatting (for example if user adds sales measure it should appear in default format like $1,000 or even with decimal places).
    Please help.
    Thank you.

    Hi,
    1) We have so many subject areas. If we select "system wide default for this data type", is this change going to reflect in all subject areas.No should do this subject area wise.
    2) Will this effect if we migrate from dev to prod environment.Yes it will effect.
    I hope u will follow this to-
    http://forums.oracle.com/forums/ann.jspa?annID=939 :)
    Regards,
    Srikanth

  • Default Data for Document Fields D_CUII_TYP

    Hi experts,
    I am trying to define default data for document fields in Export Switzerland.
    Source field is G_IMPCN,  target field is D_CUII_TYP.
    I create the following master data, i.e.
    G_IMPCN = 39095000
    D_CUII_TYP = FREI
    meaning if G_IMPCN is 39095000 then Legal Document Type FREI is being created automatically.
    Then I run the default data function on document level but nothing happens.
    The log shows G_IMPCN with value 39095000 but D_CUII_TYP = FREI is missing.
    Do you have any idea what else I should do to resolve this issue ?
    Many thanks for help which is much appreciated.
    Best regards,
    Corinne

    Hi Corine,
    Be careful with the logs, they are quite confusing as sometimes it displays the value it is looking for and sometimes the value it has foud. And sometimes the green and red lights are wrong or put in a logic that is confusing.
    Most likely it does not find the value because it is looking in the Import numbering in the import scheeme. Did you try with STAWN ? At any rate, if I may suggest, you need to setup the system with having the commodity code in the Declaration, because if you do not have the Scheme CHEXP defined in the Scheme for commodity code you are going to face trouble when trying to retransfer the Tarification to the feeder System.
    Keep me posted.
    Regards,
    Marc

  • Dynamic displaying of decimal points for currency field in ALV

    Hi,
            In ALV output there is a currency field and displaying data of different countries. It should display decimal point according to the country's currency. But at a time it can display data of different countries.

    Hi Dilip,
    I think your question is about currencies with different number of digits after decimal point. If you have the currency field in the ALV row, you have to give it's name as currency reference for the value field in the field catalog.
    After creating the field catalog, call a form and do something like this (change fielnames accordingly).
    <pre>
    *&      Form  alv_fieldcat_enhance
          Individual Enrichment of field catalog
    FORM alv_fieldcat_enhance
      CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv.
      FIELD-SYMBOLS:
        <alv_fieldcat> TYPE slis_fieldcat_alv.
      LOOP AT pt_alv_fieldcat ASSIGNING <alv_fieldcat>.
        IF <alv_fieldcat>-fieldname(5) = 'KBETR' OR
           <alv_fieldcat>-fieldname(5) = 'SKBTR' OR
           <alv_fieldcat>-fieldname(5) = 'DMBTR'.
    Company code currency
          <alv_fieldcat>-cfieldname = 'BWAER'.
    Document Currency for conditions, net value and taxes
        ELSEIF  <alv_fieldcat>-fieldname(5) = 'KWERT' OR
                <alv_fieldcat>-fieldname    = 'NETWR' OR
                <alv_fieldcat>-fieldname    = 'NPAX_MWST_AMNT'.
    Document Currency
          <alv_fieldcat>-cfieldname = 'WAERK'.
        ENDIF." <alv_fieldcat>-fieldname(5) = 'KBETR' or
      ENDLOOP." at pt_alv_fieldcat assigning <fieldcat_alv>.
    ENDFORM.                    " alv_fieldcat_enhance
    </pre>
    Regards,
    Clemens

  • Setting default value for form field assoc with a table column

    On a "Create Record" situation I was trying to set the default values of some form fields using a page level "Process". These form fields have Source Type = Database Column. It wasn't working, I could only set non-db assoc form field values no matter when the "Process" was set to exec. From some other posts it seems that this is by design, ie. not being able to programatically set the initial values of form fields that are sourced to db columns. I was hoping to have just one "Process" that would exec to set these initial values in one place rather than scattered about for each field that needed a default value. These particular default values come from ref tables and may be different for each user.
    So, it looks like I have to use a "Default Value" plsql chunk for each field on the form itself or else set their value on the calling form's Redirect in the "Set these Items" area.
    Is this correct?

    You could define a database function which accepts the name of the item and the user ID of the user running the application. Based on the item name and the user ID have the function return the appropriate initial value. Invoke this function in a "Default Value" PL/SQL block.
    Does that help in centralizing your initial values? You could have one function per page or one function per application. I would do one function per application.

  • Set default value for parameter fields

    Good day!
    Situation:
    1. I have 2 parameter fields in reports (dateFrom and dateTo)
    2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
    3.I use for this source:
    foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
                            CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
                            string ParametrName = crParam.Name;
                            crParametr.Name = ParametrName;
                              crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
                             CrystalReportSource1.Report.Parameters.Add(crParametr);
    4. And repurt run without request value parameter fields.
    5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
    How do this?
    Thanks

    I believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
    slv

  • Default values for a field in itab

    Hello everyone!
    In the declaration below,
    DATA: BEGIN OF itab OCCURS 0,
             belnr   LIKE bkpf-belnr,
             myField,
          END OF itab.
    The belnr field will be filled by using SELECT statement but myField will have a default value, for example, "1,000".
    Is it possible to do without looping around the itab?
    Thanks!

    > HI,
    > We can not set a Default value for a Internal table
    > field, after selecting all the records in to the
    > Internal table, Loop the internal and pass the
    > constant value to that field and modify field
    >
    >
    > Regards
    >  sudheer
    I see.. Is it really necessary to loop? I would like to avoid looping because it takes so much time...

  • Smartform-Suppress Zero and Display Zero for same field in Diff Conditions?

    Hi,
    I have a scenario in smartform, where for a quantity field of length p15 and Dec3, needs to display ZERO for one scenario and display SPACE for another condition. To display ZERO i have made it as &quantity(c)&, so that i can display zero. It displays ZERO, but for another condition, when i want to display space, there also it displays 0.000 ! how to display SPACE there ?
    thanks,
    Padma

    Hi,
    I think then in that case we need to use (NZ) I am not sure. But however why don't you use the Condition Tab in the Text by Including the Condition Quantity > 0.000.
    Please let me know if anyone of this works for you.
    Regards,
    SRinivas

  • FCAT for Currency field

    Hi Experts,
    I have prepared filed catalog for a currency field as given below, Is this correct or anything need i pass it.
    Program is going into dump.
    Total Actual Costs
      ADD 1 TO WC_COLUMN.
      FS_FIELDCAT-REF_TABNAME   = 'ZCO_VALUES'.
      FS_FIELDCAT-FIELDNAME     = 'TOTACTCSTS'.
      FS_FIELDCAT-CFIELDNAME    = 'TWAER'.
      FS_FIELDCAT-CTABNAME      = 'COSS'.
      FS_FIELDCAT-JUST          = 'R'.
      FS_FIELDCAT-KEY           =  'X'.
      FS_FIELDCAT-DO_SUM        =  'X'.
      FS_FIELDCAT-COL_POS       =  WC_COLUMN.
      FS_FIELDCAT-ROW_POS       = 1.
      FS_FIELDCAT-HOTSPOT       = SPACE.
      FS_FIELDCAT-SELTEXT_L     = 'Tot Act Var'.
      FS_FIELDCAT-TABNAME       = 'INT_REPORT_HEADER'.
      APPEND FS_FIELDCAT   TO   INT_FIELDCAT.
      CLEAR  FS_FIELDCAT.
    Thanks,
    Sekhar.J

    Hi Sekhar,
    No need to fill somany fields.
    Just fill it like this.
    w_fcat-fieldname
    w_fcat-tabname
    w_fcat-ref_fieldname
    w_fcat-ref_tabname
    w_fcat-seltext_m
    w_fcat-cfieldname--->Field with currency unit
    append w_fcat to t_fcat.
    clear w_fcat.
    Try this and get back to me incase of any queries.
    Dont forget to reward points if found useful.
    Thanks,
    Satyesh

  • Default value for a field in Purchase order

    I want that while creating purchase order system should suggest one value for the field ' prior vendor ' in retail tab. I don't want to use user exit. Can anybody help?

    Hi,
    if that button is clicked then give the values in the work area of  table control and then append it to the table control
      in pai of the screen.
      if r_rad eq 'X'.
        fs_tab = ur value.
    append fs_tab to it_tab.
    endif.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:39 PM

Maybe you are looking for

  • Why can't I edit photos that I saved from the internet?

    I'm completely new to this, so dumb it down as much as is possible. I am working on setting up a webpage and have had to manually go into the client's old web page and save any images on there. Now when I open them up in photoshop, it won't let me ed

  • How to see lock in oracle 10g

    hi, i m working on an application made in oracle 10g developer, & database is oracle 10g on aix , some times i get some problem when user save any data through forms it gets hanged , so tell me how to get rid of it , when i try to do it from sql navi

  • Bapi for VF01 of internal credit note IG

    Hi, i'm looking for a bapi/function module that does the same thing as transaction VF01 with : billing type : IG (internal credit note) document from : an invoice. I know the the bapi's for creating an billing doc from a sales order, but can ik use t

  • IDVD for commercial use?

    Just wondering if it's legal to sell dvd's created in iDVD and using one of the Apple provided themes? The other content of the DVD would be copyrighted material owned by me...just wondering how Apple feels about their consumer product being used to

  • Cannot "validate Configuration"

    Hi After having selected "New Flex and PHP project", I filled out the Create PHP Project form. Pressing "validate configuration" button fires a warning message on the top of the popup "Cannot validate the configuration. The test file....." My web roo