A field of type I is showing Zero in display mode

Hi,
I have module pool program, with create, change and display buttons.
Here I have a field PERNR type PERNR_D.
This field is not a mandatory field. so, I am creating a record without entering any value in this.
But when I go into display for this record, it is showing '0'.
How to remove single zero in display mode?
I tried with the following code but it is not working for me.
if zstruct-zpernr eq '00000000'.
  write zstruct-zpernr to zstruct-zpernr no-zero.
  endif.
Please advise me here

I tried all the ways except using char08.
as permy spec, I should not use this type.
So,
I tried to remove  '0' by using the following code.but it is giving error as follows.
Please help me
Code:
if Zstruct-zpernr CO '0'.
  if ( Zstruct-zpernr eq '00000000' )  or (Zstruct-zpernr is initial ).
  write Zstruct-zpernr to Zstruct-zpernr no-zero.
endif.
error log:
Value  is not numeric
Message no. E2135
Diagnosis
A value that is not numeric has been entered for a domain with a numeric data type. This is not allowed.
System Response
The system cannot accept the value.
Procedure
Correct your entry. You must enter a numeric value.

Similar Messages

  • 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

  • Why not all fields dimmed or show in display mode after system status TECO and CLSD for Project

    Dear All,
    When Sets the system status TECO or even CLSD all fields for WBS Elements are not goes to Display mode. User can still edit them or change then.
    The fields are:
    1. WBS Element Description, technical name: PRPS-POST1
    2. Person responsible number, technical name: PRPS-VERNR
    Other Progress and Customer enhancement tab pages for WBS Element all fields there also editable in TECO and CLSD system status.
    The client do not want to set LOCK system status for master data option.
    Is there any enhancement or standard way of doing that?
    Regards
    Saqib Usman

    Dear Saqib,
    Its a standard behavior of the system. In CLSD status, transactional data like Procurement gets restricted along with WBSE no and its scheduling details. But it allows to you change like WBSE desc./Responsible person.
    Also go thru the below link for clarification of WBSE system status:
    http://help.sap.com/saphelp_470/helpdata/en/ee/41f82246ee11d189470000e829fbbd/content.htm
    For locking all master data, as above experts suggest, you should use MDLK/LKD.
    Regards
    Shishir

  • Excise invoice utilization pencil icon is showing non display mode

    Hi Expert
    when i create export invoice and when i create excise invoice with an go for utilization that pencil icon is showing in non display mode because if i want to change this bond,no bond, deemed export,Lou then it is not happening. I maintain configuration for that in default excise group and series group i maintained Export Under bond to specific sales area and excise group,series group and shipping point also.
    but i cannot change to bond.no bond.Lou.and deemed export as per the requirement. if any solution please answer me asap

    We cannot change this field from display to change. Once the excise invoice is captured the excise invoice number is freezed.
    It is SAP Standard & to break this you would need the access key from SAP.
    If the change in excise invoice number is by user mistake, please cancel the excise invocie and capture the new one.
    Thanks & regards
    Hameed Parvez

  • Not to show the wage type when amount is zero in payslip

    Hi Gurus,
    I am not sure what's wrong with the rule below, my intention is to display the text and the wage type amount when the wage type amount is not Zero, and not to display the text and the amount when wage type amount is zero.
    Below is the rule i apply to the wage type text, but it only works when the wage type amount is not EQ 0. When the WT amount is zero, the WT text text still appear
    rule   no. Table    field  Typ CO   Value1   table     new value
    1      1 RT BETRG N      NE            ' 0       TEXT      10 (TEXT 10 is the WT text)
    1      2 RT BETRG N      EQ            ' 0       TEXT      34 (text 34 is blank line)
    I apply the below rule for the amount and this is working fine
    rule   no.  Table  field    Typ   CO     Value 1    table new value
    2        1       RT   BETRG  N    NE         ' 0           RT      BETRG
    2        2       RT   BETRG  N      EQ       ' 0                      SUPPRESS PRINTING
    I need some pionters to the rules to make it work. Thanks a lot.
    Rgds,
    C
    Edited by: Team HR on Sep 13, 2010 9:29 AM

    if the amount is 0 than there is no wage type in RT right than wht is the need of going through the rule

  • In WebI report, is that possible to show ZERO in NULL fields?

    in WebI report, is that possible to show ZERO in NULL fields? crystal report has no issue, but i could not find a way to set ZERO to NULL field
    can you tell?

    Bram,
    This formula you used above is corrcet but is returning you a character '0' and when a descending sort is applied character values will be at the top.
    So , apply the formula 'ToNumber' on the value returned form the above formula :-
    ToNumber(above formula)
    And then it will change 0 to number and give you the exact sort order.
    Thanks,
    Rohini Haksar

  • How to show the LOV display column in a field of type ''popup''

    Hi All,
    I've defined a form (no matter table/master-details/procedure) with a text item of type "popup", and have chosen a specific LOV.
    At runtime, after the user chooses a value within that field, He sees the return column, (not the display column) of the LOV.
    This behavior is different in field type combobox,
    where the user sees the display column, ( this is the expected behavior when dealing with LOVs ).
    How can I, in a popup type field, show the user the LOV display column rather than its code ?
    Any help will be appreciated !

    I had a Tar on this a while ago. Oracle's response is that's the way it is, but :
    The problem is that form is storing the ID in the table but when customer queries the form, the ID is displayed, which means nothing to the user.
    This is working as it should by design.
    An alternative is to add a non-database field to the form to display the name based on the ID fetched from the table or to build the form in a manner that it will query
    from both tables, the one storing the ID and the one storing the name, as a loookup table.
    Suggested review Notes: 125272.1, 124072.1, 263923.1.
    I believe Note:125272.1 would work for you if you have a primary LoV displaying the name but populating the ID from the first table. The second LoV can query from the table storing the name (instead of making it a non-database column). When the first LoV is used, the second will be refreshed, displaying the actual name on the for
    m on your non-database field, just for display purposes.

  • Vendor code in Purchase order changed after invoice,net price showing zero.

    Dear Experts ,
    In one purchase order , user had done GR & invoice for a line item ( service ),item category "D" , and
    thereafter somehow the system allowed user to change the vendor code. The PO line is now having amounts in
    the sub-service line items , but net price for the line item is showing as zero. Since the PO was made
    directly without any contract/RFQ/PR , there is no reference document or info record shown against the line
    item.
    In the conditions tab of Item details,the condition for basic price is not seen & since there are no amounts
    applicable for the other conditions such as insurance , octroi etc., the NET price shown for the item is
    Zero, which is also getting printed in the PO as zero , which is not acceptable , as we can not send to the
    vendor PO copy having prices for individual services printed correctly but the total gross price showing
    zero.
    Pl advise what can be done so that Net Price is shown correctly & not zero.

    I think the new vendor is having a different pricing schema than the old vendor. Check the pricing schema for the old vendor (in purchasing view in field 'Schema Group. vendor) and compare it to the new vendor. I think they're different.
    If it is then what i think happening is the user already input the price for the condition type in pricing schema A, then the vendor is changed and the new pricing schema is kiciking in thus making the old condition type missing.
    Try to either:
    A. Change to the old vendor back,
    B. Change the pricing schema of the new vendor to be the same with old vendor

  • Show zeroes in a control table (Module Pool)

    Hi all.
    I need showing zeroes in a control table.
    I declared fields type char in the control table (and in the internal table) and it shows zeroes, but I need declare it type QUAN (control table and internal table).
    With all types (except CHAR) I couldn't show de zeroes there.
    If anybody can help me, I Will be grateful!

    Hi,
    In your PBO, inside LOOP ENDLOOP, have a module for screen modifications and for the last row that has totals, you set screen-invisible = 1 inside LOOP AT SCREEN. ENDLOOP.
    For example,
    If your screen has following PBO Logic,
      MODULE ...
      MODULE ...
      LOOP ...
    ****New module here for screen modification if does not ****exist already.
        MODULE modify_screen.
      ENDLOOP.
    and then in MODULE modify_screen.
      MODULE modify_screen.
    ****Basically check MATNR EQ 'TOTAL' or some thing like ****that
        IF <your condition for totals line>.
          LOOP AT SCREEN.
    ****Note instead of screen-name, you can assign a screen ****group to all columns w/o totals and then use
    ****SCREEN-GROUP1 EQ <your grp> logic
            IF screen-name EQ <your column name w/o totals>.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDMODULE.
    On another note, since you are already disabling this fields in the last row, you have all the screen modification logic already I guess, so just add SCREEN-INVISIBLE = 1 for all fields w/o totals..
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Updating custom field bill type in standard table ERCH

    Hi All,
    I need to update the custom field bill type in table ERCH depending upon the bill transaction( if bill transaction is periodic,bill type will be updated as P and so on for other cases)
    I am implementing a BADI ISU_DEF_BILL_PERIOD and i have used case statements(when abrvorg is P,bill type is P). While debugging i saw that the importing parameter bill document is generated but if i enter the same bill document number at that point in time in table ERCH, it shows no entries found. Thus sy-subrc is retrieved as not zero and hence the custom field bill type does not get updated.
    I would like to know how do i go about this requirement since it seems that the bill document entry is made in table ERCH outside this BADI.I used x_new_billing_doc-erch-zbill_type = 'P' in the code but it says that it cannot be changed. Any structure which can be used to be filled here?
    Thanks,
    Shreeraj

    Sheeraj,
    You're using a wrong enhancement for your requirement. ISU_DEF_BILL_PERIOD is used to specify billing key date of a billing or print document depending on your requirements,.
    SAP provides enhancement EBIA0001 for any custom enhancements to billing document. You can update the custom fields  in the billing document before the document is updated.
    Best,
    Sai

  • Purchasing Cube -- 0PUR_C01.. "Added record" is showing zero in request

    When i try to load the data to this cube, my trasfer record is showing values while Added Record is showing zero values. Whats the problem. Please advise !!

    Hi,
    Check whether do you have defined the industry sector in R/3. This has to be done before filling the setup table. search the forums with note no 353042.
    This is done with the help of Transaction MCB_ which you can find in the OLTP IMG for BW (Transaction SBIW) in your attached R/3 source system.
    Here you can choose your industry sector. 'Standard' and 'Consumer products' are for R/3 standard customers, whereas 'Retail' is intended for customers with R/3 Retail only.
    You can display the characteristics of the process key (R/3 field BWVORG, BW field 0PROCESSKEY) by using Transaction MCB0.
    If you have already set up historical data (for example for testing purposes) by using the setup transactions (Statistical Setup Programs) (for example: Purchasing: Tx OLI3BW, material movements: OLI1BW) into the provided setup tables (for example: MC02M_0SCLSETUP, MC03BF0SETUP), you unfortunately have to delete this data (Tx LBWG). After you have chosen the industry sector by using  MCB_, perform the setup again, so that the system fills a valid transaction key for each data record generated. Then load this data into your connected BW by using 'Full update' or 'Initialization of the delta process'. Check, whether the system updates data into the involved InfoCubes now.
    If all this is not successful, please see Note 315880, and set the application indicator 'BW' to active using Transaction 'BF11'.
    Regards,
    Anil Kumar Sharma .P

  • Limit SC showing Zero value in report SC per cost centre in SRM portal

    Hi SRM Gurus,
    On executing SC per cost centre report avaialble in SRM 5.0 Portal I am getting value of limit SC as zero. while in all other follow on documents i.e. PO and Invoice its displaying the value.
    Is it due to the fact the for Limit Items we don't have any GR/confirmation i.e zero quantity? and the value column field has Sigma symbol on it. so maybe it is multiplying quantity with the value here?
    Is this SAP SRM standard for limit items to show zero value in this report ?
    Please let me know. Thanks for the help.
    Regards,
    Varun Dhawan.

    SRM experts please help in this regard. Any insights on LIMIT Shopping carts??

  • Withholding tax showing zero value in vendor line item display report

    Hello Friends,
    I have facing one strange issue in withholding tax, when im executing report of vendor line item display(fbl1n tcode) the column for withholding tax is showing zero value for some documents even though the tax is been deducted which is clearly visible in f-02 entry.
    Kindly help me on this!
    Regards,
    Sunny

    Hi,
    1.Please check the WHT config has been done properly.
    2.Check the vendor master and varify tax fields are filled up.
    Regards

  • Rebate  : Scale base value is showing zero

    Dear Friends,
    While configuring Rebate Processing I am getting following problem :
    Description: We are Maintaining Condition record on basis of Product Hierarchy for Rebate agreements.
    Problem : When we want to view Rebate Payments -> Verification level, the Quantity under Scale Base Value is showing zero but appropriate accruals is coming.
    My end user wants apart from Cond.base value & Accruals the Scale Base Value (which shows Quantity) should also come so that he can have a idea on what value and quantity the rebate is been given.
    Note: For each Product hierarchy we are maintaining one of the SKU relevant for Product hierarchy in material for settlement field.
    Expecting a good answer from u all sap gurus.....
    Thanks in advance.
    Regards...
    Tushar

    Hii There
    This kind of problem was existing in my system too.
    I raised this with SAP people and they told me to apply SAP note no.# 970384 after which the scale base quantity was appearing.
    You could try this out.
    Thanks & Regards
    Gaurav Manocha

  • Showing Zero values in columns and rows in BW report

    Hi,
    the BW report is showing all rows and columns all Zero's..... so what does it mean till target the data is fine but in the report it  is showing 'zero' in all fields.... so let me know the reason...
    Regards
    vishali

    Can you please check the Key figures value? Is it Zero or as per the selection/filter the values are coming "Zero".

Maybe you are looking for