Blank in decimal field of a structure.

Hi,
I wish to show no 0 value in a field of a structure defined as decimal. At the moment I have a value zero but I prefer no value if this field has zero value.
Any idea?
Thanks in advance for your help.
Regards,
   Giovanni

Hi,
I do not display this field using write abap command but I wish to view blank value (no 0.00 value) in debugging mode because this is la output value viewed.
Maybe this is not possible or I can use "Currency/Quantity Field".
For example if I use CLEAR <linetable> and then I fill only some field on it the decimal fileds have no value.
Can I have this in my fields of my internal table defined as TYPE STANDARD TABLE OF <mystructure> INITIAL SIZE 0?
Thanks in advance.
Regards,
     Giovanni

Similar Messages

  • Can I know the precision and scale of a decimal field using ACEDAO?

    Using ACEDAO in VC++, I am trying to retrieve the field details of an Access database (.accdb file) table of which one field is of decimal type. I am able to get the details using the functions of
    DAO::_FieldPtr field;
    as follows:
    fieldName = field->GetName().GetBSTR();
    nType = field->GetType() // returns DAO::dbDecimal
    lSize = field->GetSize(); // returns 16
    lAttr = field->GetAttributes(); // returns 0x000002H
    nOrdinal = field->GetOrdinalPosition(); // returns 11
    bAutoIncrement = ((lAttr & DAO::dbAutoIncrField) > 0);
    DAO::PropertiesPtr props;
    DAO::PropertyPtr prop;
    int k, nProp;
    std::wstring propName, propNames;
    props = field->GetProperties();
    if(props)
    nProp = props->GetCount(); // returns 33
    for(k = 0; k < nProp; k++)
    prop = field->GetProperties()->GetItem((short) k);
    if(prop)
    propName = prop->GetName().GetBSTR();
    propNames += propName;
    propNames += L"\n";
    // After exiting the loop, propNames contain 33 properties as:
    // Value
    // Attributes
    // CollatingOrder
    // Type
    // Name
    // OrdinalPosition
    // Size
    // SourceField
    // SourceTable
    // ValidateOnSet
    // DataUpdatable
    // ForeignName
    // DefaultValue
    // ValidationRule
    // ValidationText
    // Required
    // AllowZeroLength
    // AppendOnly
    // Expression
    // FieldSize
    // OriginalValue
    // VisibleValue
    // GUID
    // ColumnWidth
    // ColumnOrder
    // ColumnHidden
    // Description
    // DecimalPlaces
    // DisplayControl
    // TextAlign
    // AggregateType
    // ResultType
    // CurrencyLCID
    //But does not have any property named "Scale" or "Precision"
    I could not find any function for retrieving the value for precision and scale for the decimal field.
    Though I am able to retrieve the field value as a decimal number and get the required information from the structure, I think it is not the right way. Because, what will happen if the data for field is not available in the table?
    Is there any other method to retrieve the precision and scale of a decimal type field using ACEDAO?
    Thanks.

    I cannot find a method or property in ACEDAO to retrieve the precision and scale of a field. Maybe you could try get the number of a decimal type and use some mathematical methods to get the precision.
    I find there are some way to get the precision by ADO or OLEDB.
    For ADO way, you could check this thread:
    https://social.msdn.microsoft.com/Forums/office/en-US/883087ba-2c25-4571-bd3c-706061466a11/how-can-i-programmatically-access-scale-property-of-a-decimal-data-type-field?forum=accessdev
    For OLE DB , you could use IColumnsInfo::GetColumnInfo to get DBCOLUMNINFO::bPrecision.
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms722704(v=vs.85).aspx
    Also people in C++ may not familiar with access development, the
    Access for Developers forum is good place for access develop issue. You could try there.
    Hope this helps some.
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to change the Display Pattern for Decimal Fields dynamically

    hi all,
    Can any one help me how to change the display pattern for decimal fields dynamically???
    Currently I am using z,zzz,zzz,zz9.999 Display pattern for Quantity Field. If the value is blank it is displaying as 0.000 on the Screen. But I don't want this to be printed.
    Please help me how to solve this ASAP.
    Thanks,
    Prabhu

    Hi,
    Alternatively you can handle it in the context.
    In the context area, click on the quantity. In the bottom, click on the conditions tab, and put a condition
    <quan field> NE initial.
    So the field will not be printed if there is no value.
    Regards,
    Vidya Chowdhary A.

  • Decimal Fields in screen

    Hi,
       I have developed a Module pool program. I have a screen field type DEC. I have two modes, EDIT and DISPLAY. In EDIT mode, when i enter 0.00 into this screen field and press save, the value displayed is BLANK and not '0.00' as required. In DISPLAY mode the value is displayed correctly as '0.00'.
       I tried changing the screen field to type CHAR. But the same field variable is declared as TYPE 'p' for underlying calculations. Thus it gives me an 'SCREEN FORMAT ERROR'.
       Any ideas how to diplay '0.00' in the decimal field in EDIT mode?
    Awaiting your responses.
    Regards,
    Sandeep

    What you are seeing is the stanard way the gui handles these fields in the particular mode(change,display).  You can not get around this using the decimal field.  Your only solution is to make are character field on the screen as well as character field in the underlying program. 
    Regards,
    Rich Heilman

  • Decimal field in Adobe interactive form

    I am making one report in which i am displaying decimal field , if that variable contains value then there is no problem but when the value is null then it is showing 0.00 so please suggest me any method by which i can remove these 0.00 and the space left blank.
    Thanks. Ankesh

    Do one thing...
    write the following code on "intialize" event of LSF field:
    xfa.host.messageBox( $.rawValue );
    if ( $.rawValue == 0.0 ) {
    $.rawValue = "";
    What is the message coming in messageBox in case of value is 0, write that value in if condition.
    Edited by: Amit on Jun 6, 2008 7:07 AM

  • Select Statement - from Decimal Fields into Char

    Hi
    I would like to run a SELECT from table T007A into an internal table which is of type TXW_TAXCOD.
    T007A has a decimal field in it ( TOLERANCE ) which is of data type DEC, length of 3 and 1 decimal place.
    This is the code in the standard program --
    select * from t007a
             into corresponding fields of table t_txw_taxcod up to 20 rows.
    I have to make the TOLERANCE field value in T007A land up in a character field in the structure, I have declared the TOLERANCE field in structure TXW_TAXCOD as a character field of type 5 (infact tried CHAR4 and CHAR8 etc etc) but I face a runtime error
    I cannot change the code in standard program, can you please tell me what other data type can I use to make this select work

    If LTXW0F02 is your program and form extract_txw_taxcod
    then
      select * from t007a
               into corresponding fields of table t_txw_taxcod.
      sort t_txw_taxcod.
      loop at t_txw_taxcod.
        select single * from t007s
                        where spras = sy-langu
                          and kalsm = t_txw_taxcod-kalsm
                          and mwskz = t_txw_taxcod-mwskz.
        if sy-subrc = 0.
          move-corresponding t007s to t_txw_taxcod.
        endif.
        call function 'TXW_SEGMENT_RECORD_EXPORT'
          exporting
            data_record = t_txw_taxcod.
      endloop.
    Within the function module TXW_SEGMENY_RECORD_EXPORT have implicit enhancements try to use then and make one more select to table t007s using key KALSM and fill the char field TOLERENCE
    select tolerence from t007a into v_tolerence
              where kalsm = t_txw_taxcod-kalsm.
       write: v_tolerence to t_txw-taxcod-tolerence.

  • Can we move space to decimal field

    Hi all
    can we move space to decimal field(0.00).
    regards,
    kiran

    hi santosh
    in output if  IVBAK-INCO1 is not equal to PUA.i should get values only for PUA.here i am geting values correctly for PUA.
    But other than PUA, if i am having CRF i am geting 0.00.
    instead of 0.00, i should get blank.
    i tried out this code.
    but it is not working.
    IF IVBAK-INCO1 NE 'PUA'.
    var = '  '.
       ENDIF.
    regards,
    kiran.
    Edited by: joginpally sai kiran on Nov 5, 2008 4:14 PM
    Edited by: joginpally sai kiran on Nov 5, 2008 4:18 PM

  • Can a .pdf created with Livecycle allow a user to enter a % symbol in a numeric or decimal field?

    What I've found so far is that the only way to get the % symbol into a numeric/decimal field at all is to set the "display pattern" to display the % symbol after numbers have been entered into the field.
    The reason I want the field to be numeric and not text is because I have to run a FormCalc caculation that populates a third field.
    (NumericField1 * Numeric Field2*) + NumericField1

    Thanks for the reply Niall.
    I ended up chanigng the numeric field to a decimal field instead, and added the following display pattern: num{zzzz9.99'%'}
    So although the user can't enter a % symbol into the field, a % symbol automaticaly populates when the user enters a number.
    My criteria involved ensuring that a user could not enter a number with more than two numbers after the decimal, so I also set a trailing digits max of 2 (in the Obect > Field settings)
    This is the FormCalc formula I used in the "calculate" event to calculate the salary increase amount request: (DecimalField1 * NumericField2) *.01 + NumericField2
    This formula is meant to calculate the salary amount a manager is requesting their employee's salary be increased to.

  • Length of a field in a structure

    Hi,
    Is there any restriction on the length of the field in a structure which is CHAR type ??
    Thanks.

    Sample
    report zrich_0001
           line-size 1023.
    data: begin of s,
          a(65510) type c,
          b(25) type c,
          end of s.
          s-a = 'This is field 1 asdfkljas;dfkja;sldkjf;aslkdjf;alskdjfa' &
                'asdfkajsd;kfjas;dlkfj;aslkdjf;alksjdf;lkasjdf;lasdfasdf' &
                'asdfkljas;dlkfj;askdjf;askjdf;lkasdjf;lkasj  thd end'.
          s-b = 'This is field 2'.
          Write:/ s-a.
          write:/ s-b.
    Regards,
    Rich Heilman

  • Data flow fails on packed decimal field moving iSeries DB2 data from one iSeries DB to another

    I' trying to use SSIS to move table content from one iSeries DB2 database to another.  I'm using the .Net providers for OleDb\IBM DB2 for i5/OS IBMDA400 OLE DB Provider in the connection managers for the source and destination and the test connection
    works fine.  When I try to run the data flow task however it fails on the first packed decimal field it encounters with the exceptions ...
    [select from hydro520 hydroweb2 blpmstr [16]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "component "select from hydro520 hydroweb2 blpmstr" (16)" failed because error code 0x80004002 occurred, and the error
    row disposition on "output column "MSPRIB" (55)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    [select from hydro520 hydroweb2 blpmstr [16]] Error: The component "select from hydro520 hydroweb2 blpmstr" (16) was unable to process the data. Pipeline component has returned HRESULT error code 0xC0209029 from a method call.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "select from hydro520 hydroweb2 blpmstr" (16) returned error code 0xC02090F5.  The component returned a failure code when the pipeline
    engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    ...in the progress tab.  Can someone kindly tell me what I need to do to get the connection manager to work with DB2 packed decimal fields?  Or is it a different issue all together?  Thanks tonnes for any help, Roscoe

    Hi rpfinn,
    From the Data Types mapping rules between SSIS and DB2, we can see that both the NUMERIC and DECIMAL data types in DB2 are mapped to DT_NUMBERIC data type in SSIS. Now that the source data in your DB2 database is NUMERIC data type, changing the DT_NUMBRIC
    data type to DT_DECIMAL is invalid. Besides, if we check the data types of the target External column and Output column from the Advanced Editor for ADO NET Source adapter, the data type should be defined as DT_NUMERIC with Precision as 9 and Scale as 2. I
    am not clear where you see the DT_NUMBERIC(9,0) e.g. DT_NUMERIC with Precision as 9 and Scale as 0, but it may be the cause of the issue. You need to make sure the DT_NUMERIC data type also has Scale 2 instead of 0.
    If you don’t know how to modify the data type, please elaborate the Data Flow Task of the package so that we can make further analysis. Besides, the error messages you posted are incomplete, it will be helpful if you post the complete error message.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Format of a numeric/decimal field

    Can we set the format of a decimal field to display zzz.999 without rounding off the value. For example,I have a decimal field with display & Edit pattern set as "zzz.999" and trailing digits limited to 3. If I enter a value 123.456, its ok. But if I put 123.4567 the value is rounded off and displayed as 123.457. Can we limit it somehow to truncate anything extra than 3 trailing digits.
    Thanks
    Shweta

    Maybe not automatically, but you should be able to do this with a little JavaScript in the form.
    Mike

  • Problem in Add/Delete fields in Extract Structure.

    Hi All,
    When I want to delete some fields from the extract structure it gives me " " error.
    Steps:
    1. In R/3, T-Code LBWE -> Browse till DS ( ex: 2LIS_02_ITM)
    2. Inactive the DS by clicking on 'Active' under Update column
    3. Click on 'Maintenance' link under Structure column.
    4. Remove a field MCEKKO-KUNNR from left side to right side of the window.
    5. Click on continue button.
    It gives the below error while generating the extract structure.
    "MC03BF0" must be a flat structure. You can not use internal tables, strings,references, or structures as components.-
    Plz help how to handle this error ? The same error msg is displayed if I want to add few fields to the structure.
    Thanks in Adv

    refer steps here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46

  • How to Identify a table name of a field in the structure

    Hi Guys,
    I have to identify a application table name of a field , the  field is directly mapped with the structure.
    please guide me where the physical data is stored.
    regards
    Vasanth

    HI Vasanth,
    You can select Data Type radio button in SE11 and click on search help F4) ..and provide field name or structure name and then select where Used list option .and select table check box..so that you can find multiple tables wherever this structure is used..
    U can get multiple tables here if this structures is used for multiple tables.So data related to your field will be storing in multiple tables.
    This information may be usefull..
    --Manohar

  • Need to add one field in standard structure???

    Hi Experts,
    I wanted to add one Z-field in standard structure. Anybody will suggest me how to do that step by step??

    open the table in se11 and press append structure in application tool bar
    press create button on pop up window.
    give the append name and include the fields u required.
    Yes, you can add the extra fields to the standard table.
    Create Z-Structure with the fields needed and append the structure to the standard table by using the option append structure within table display
    we can enhance the standard tables by using Append structures and customizing includes.
    Append structures allow you to attach fields to a table without actually having to modify the table itself. Table enhancements using append structures therefore do not have to be planned by SAP developers. An append structure can only belong to exactly one table.
    In contrast, CI_includes allow you to use the same structure in multiple tables. The include statement must already exist in the SAP table or structure. Table enhancements using CI_includes do, however, have to be planned by SAP developers
    regards.
    Rahul
    reward if useful

  • How to fill a new field in communication structure KOMPAZD

    Hi,
    I have added a new field ZKNRZE to structure KOMPAZD. It should be filled with the partner payer (KOMK-KNRZE) How can I fill this field? Which user-exit do I have to use?
    Thanks and regards.

    Hi Carmen Alvarez,
          You should use the USEREXIT_PRICING_PREPARE_TKOMP (module pool SAPLV60A, program RV60AFZZ) to move the value.
    Thanks,
    Mariano.

Maybe you are looking for

  • Is there a way to create a custom overlay within FCP?

    Simple question... Can u create a simple overlay (such as a square box) within FCP and have it work as an overlay, with alpha channel. Can't seem to figure it out. I've done it by making the object and then keying out the black, but is there a way to

  • Conditional Build Tags for Text Blocks Applied to Entire File

    RoboHelp 8.0.0.203.  This post also deals with conditional build tags, but in this case the conditional build tags have been associated with sections of text and text blocks within a topic.  The design was implemented originally in RH7 and the projec

  • Can I create a network for printing & music alone ?

    I don't have DSL or any type of broadband - still using dial up. If I buy an Airport Express can I configure it to wirelessly print and stream music or do I need a wireless network in the background to make this work ?

  • Looking into an Apple Macbook Pro 13" or Air 13" for photo editing.

    I am 15 years old and am in need of a new computer. Ive considered the new pro 13" and the new air 13" (the basic ones), and I need to know which one is better for holding the most amount of data, which is the fastest for editing jpeg and raw with li

  • Resource for International Export Compliance rules on Commercial Invoice

    Hi all, I'm looking for guidelines for a Commercial Invoice. We are an ITAR company so we probably have additional requirements, weights, ECCN, etc.. I've been searching the forums as well as all of google for the requirements but haven't found anyth