Removing zeroes

hello,
i have used the module 'CONVERSION_EXIT_ALPHA_INPUT' for padding with zeroes.Now when my table control is populated with values from the table i still get padded values.
is there any module for removing the zeroes from the  matnr for display.

Hi,
Use SHIFT statement.
SHIFT c LEFT DELETING LEADING c1.
SHIFT c RIGHT DELETING TRAILING c1.
Ex:
SHIFT l_f_string LEFT DELETING LEADING '0'.
or
CONVERSION_EXIT_ALPHA_OUTPUT
itab-matnr = '000001234'
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = itab-matnr
IMPORTING
OUTPUT = itab-matnr.
here output would be only '1234'.
and u can also try no gaps statement before move statement in your internal table.
or
use
unpack <field> to <field>.
Regards,
Chandru

Similar Messages

  • Remove zeros in LOVs of BW Infoobjects on Webi report

    Dear Experts,
    My BW infoobjects(0GL_ACCOUNT) showing preceding zeros in the BI4.1 WEBI Prompts LOVs, so user don't want the zeros and they need only values and also they compare BEx analyzer with BO since BEx analyzer LOVs shows only values without zeros.
    Is there any function or setting either in BO or BEx designer to remove zeros in the BW infoobjects? so that in BO LOVs display only values without zeros.
    Currently values is 0000123456 in BO LOVs and user want only 123456 as per BEx analyzer.
    BEx query as semantic Layer
    Platform: BI4.1 SP01
    BW: BI7.3 SP6
    Please help
    Thanks in advance.
    Regards
    Karuppiah N

    Hi
    Try to make use of custome display fomrat option in business layer.
    Find the below link for custome date format...same process for Numeric objects also
    BI4.1 Business Layer Enhancements - Create Display Format

  • Remove Zeroes in Sales Quotation PLD

    Hi Members,
    I have designed the sales quotation PLD in which i have configured for two decimal places.
    If i use suppress zeroes option in PLD, The decimal places zeroes are also not getting displayed.
    example if the amount is 256.00,if i use suppress zeroes option,its displaying only 256,which i don't need.
    I need to display 256.00
    Please kindly suggest an solution.
    Regards,
    Venkatesh.R

    Hi
    U can try with substring formula also.... Round(F_XXX,0)...
    Check this link;
    Re: Remove Zeros in PLD
    Re: Purchase Order Number Zeros
    Giri

  • Removing zeros from data stream

    Hi
    I have incoming data (plz see attached diagram which shows the 2 states of the for loop '0' and default) which is a 1-D array of 64 bit real data .....it goes through the loop which removes zeros from the array.
    As I have 3 elements in the 1-D array (call them x,y,z ), the loop works very well for all values of 'y' and 'z' .
    However when x gets towards 1 and below say 10e-3 (it never is a negative number), the loop is rounding everything to 1 and then when the value gets between 1 and 0 (10e-3 for example) the loop leaves it out altogether and I just get y,z  values saved.
    Plz help me sort this out .
    Cheers
    Baz
    Attachments:
    zeros.PNG ‏25 KB
    zeros.PNG ‏25 KB

    If you want a tolerance comparison, try the attached VI.  I rewrote it from one in vi.lib after an earlier post.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    CheckForEquality(DBL).vi ‏23 KB

  • Remove zero in conversion file

    Hi experts
    Can you help me with a way to remove zero in conversion file, let me explain, I want to load transactional data from BW but I have a charateristic with 10 character but in BPC side my dimension have 8 character, technicaly in BW the file is like this:
    BW
    0012345678
    BPC
    12345678
    How can I remove left zeros for the characteristic?
    any input will be apreciated.
    regards
    Lucio Martinez!!

    Hi Lucio,
    I will present my scenario. I want to remove the leading Zeros from the Customer ID and while transferring the values in BPC, I want to prefix the value (after removing the zeros) with 'C_'. eg: 000012345 so I want to transfer that as 'C_12345'.
    In transformation file, I had done the mapping as
    ID=*str(C_)+ID
    which works fine, if I dont have to remove the zeros. I added code in the Conversion file
    EXTERNAL                      INTERNAL
                                 js:PARSEINT(%external%)
    But it is giving me an error message that validation has failed for transformation file and it is giving a message that:
    Line 1 :Detected duplicate member ID 'NaN' .. Line 3560 :Detected duplicate member ID 'NaN'
    Can you please help me out in this situation? Any suggestions how can I achieve this?
    Your replies will be much appreciated.
    Thanks,
    Abhishek

  • Command for remove zeros in sapscript

    Hello:
    I need to remove zeros of a variable in a sapscript,
    TALGN = 0000427795776
    and I need to remove the zeros so:
    TALGN = 427795776
    But sometimes will be 3, 4 or more zeros, is there a way to do it with a sapscript command? or this should be done in the program?
    Best regards and thank you for your help.
    Miriam

    Hi Miriam,
    In SAP Scripts , you have Layout Set Symbols which you can use for doing things like :-
    Getting Offset - &SYMBOL+4&
    Length - &SYMBOL(5)&
    If symbol is initial ,output nothing - &SYMBOL(I)&
    Suppress Leading zeroes - &SYMBOL(Z)&.
    And many more such symbols.
    Hence, you dunt need to write the code in your driving program  and pass to the Script.
    You can directly use these symbols in your script and get things done in simple manner.
    Hope this helps...
    Regards,
                 Samreen...

  • Removing zeros on the excel download

    I wanted to know how we can remove zeros from the kebtr at the excel download through ALV without converting it to a type c. for now I am converting it to type c and then validating it this way :
    if tb_main-kebet = 0.
        tb_main1-kebtr = space.
      endif.
    But because of this the formats are not ok and user insists that it should be a numberic field for him.
    Thank you very much.

    Hello Kris,
    I am able to see the data properly in XLS File.
    Use fieldcatlog no_zero = 'X'.
    Now run the transaction -> click on XL Icon ( if you do not get the data properly using navigation),now see the results here.
    you can save same xls file into local machine too.
    Thanks
    Seshu

  • Removing zeros at the begining

    hi,
    How to remove zeros at the begining of a variable value irrespective of the length of that number
    for example,
    data:var type int4.
    var = '0000012434'.
    var= '0003423365'
    var= '0436509843'.
    I want to remove all zeros at the beginning.
    the purpose is I am passing this to a function module which can not allow intial zeros.
    Please help me with code

    Hi,
    CONVERSION_EXIT_ALPHA_OUTPUT
    converts any number with zeroes right into a simple integer.
    Ex:
    '00001234'-->1234
    CONVERSION_EXIT_ALPHA_INPUT
    converts any number into a string fill with zeroes, with the number at the extreme right
    ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.
    Example:
    (Input field and output field are both eight characters in length)
    '1234 ' --> '00001234'
    Regards,
    Omkaram.

  • Remove Zeros

    Is there any function module i can use to remove zeros in a dec field.
    For example
    I need to convert 12.300  to 12.3
    Thanks.

    Hello,
    [code]
    DATA:
       L_MENGE_P5(16) TYPE P DECIMALS 5,
       L_MENGE_P3(16) TYPE P DECIMALS 2,
       L_ANDEC     like T006-ANDEC value 2.
      L_MENGE_P5 = '56.42000'.
      CALL FUNCTION 'ROUND'
        EXPORTING
         DECIMALS            = L_ANDEC
          input              = L_MENGE_P5     "over here u need to pass other than char
         SIGN                = '+'
       IMPORTING
         OUTPUT              = L_MENGE_P3
       EXCEPTIONS
         INPUT_INVALID       = 1
         OVERFLOW            = 2
         TYPE_INVALID        = 3
         OTHERS              = 4
      IF sy-subrc <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    WRITE:/ L_MENGE_P3.
    /code]
    Regards,
    Deepu.K

  • How to eliminate or remove zeros from 1D array

    How to eliminate or remove zeros from 1D array. Let say I have 1D array having foolowing elements
    "0 0 0 0 0 4 0 0 9 0 0 1 4 0 0 0 0 0 0 0 0 10 9 0 0"
    So after removing or eliminating zeros it will become as follow
    "4 9 1 4 10 9"
    So can any body guide me how can I do that? See attached Image for details.
    Thanks 
    JK

    altenbach a écrit :
    hchiam wrote:
    Here are 2 example .vi's I made based on altenbach's removeZeroes.png in this discussion thread: 
    It seems pretty pointless to post those because no new useful information is given.
    Currently, only the input is defined in the connector pane, making them useless as subVIs.
    unlike my example using integers, an "=0", like any "equal" comparison, is potentially dangerous with DBLs.
    Reshaping a 2D array to 1D before removing zeroes is pretty pointless because a 2D output cannot be recovered. A more interesting scenario would be to remove some columns or rows (e.g. that are all zeroes) from a 2D array.
    You should also clean up the front panel, e.g. properly zero the upper left corner, make the controls/indicators nicely labeled, sized and arranged, and maybe even add scrollbars to the arrays.
    Thank you for those comments.
    Now the input and output are defined (in the updated attachments) for use as example subVI's.  I also cleaned up a few visual details, but I leave the rest for others to cater to their specific uses if they don't want to use this as a subVI (or at least as-is), such as changing the icons or changing to integers instead of doubles.
    I'm not sure about what you mean exactly with "=0" being "potentially dangerous with DBLs".  I'm guessing you had a certain case scenario in mind.  Although the subVI's seem to work fine within my larger program and situation, my situation may not generalize with regards to this point.
    I reshaped from 2D to 1D, with a 1D output, because it could be helpful for things like when later processing just needs a 1D array.  For example, in my situation I had to remove a huge spike of unnecessary "0"'s from a previous subVI that were affecting the output display of a certain histogram.  So it turned out a 1D array output was helpful, and you never know what problems come up, so I included the 2nd example.
    Hopefully if someone is looking for this, they can just use or play with an example subVI (granted that they know how to plug things in for their context).  I was hoping to post a subVI people could put to direct use.

  • Remove zeros before integer

    Hi,
    I have an integer like "000123" i wanted to remove zeros and want to get just integer value.
    Thanks in advance.
    Regards
    Khizer

    String.valueOf( Integer.parseInt( strInteger ) );This brings another advantage: you'll get a NumberFormatException, if your String includes not only unwished zeroes, but also letters ...
    You robably haven't built this string yourself but get it from outside.
    So you should also proof the correctness of its format.

  • Remove zeros from right side

    Hi all,
    I want to remove zeros from right side.
    like : if value is '0.055500000000E+04'.
    then the output should be '0.0555'.
    How can i get such output.
    Plz help me....

    Hi,
    the problem here is u are dealing with a datatype of format F (i.e floating point ) and the output u desire is in packed format .
    You cannot delete the zeros of such data typesas type F instead u can move them to the packed datatype and get the result.
    do one thing declare a variable of type p and move the value of type f which u have right now to the variable u have declared as type p.
    data : v_val type p decimals 4.
    v_val  =  "               <------ assign the type f to type p over here .
    hope this helps .
    regards,
    vijay.

  • Removing Zeros from a quantity field in ALV

    HI ,
    i have req of removing the zeros after decimal point in while displaying in ALV.
    e.g 3.000 --> '3' .
    I do not need the decimal values.
    Is there any FM or field catalogue parameter to control this.
    I am using CL_GUI_ALV_GRID for ALV display.
    Thaks.

    Hi,
      Whay you can do is...
    Copy the Quantity with out zeros into Char field and display.
    Thanks & Regards,
    Vamsi.

  • To Remove zeroes after decimal in screen field

    I need to remove the zeroes after a decimal like for a field of the type VBAP-KWMENG the is shown as 200.000 i need to show it as 200.I have to display this value inside a Table Control.

    hi,
    you can user "write to" statement with formating option.
    In your case,
    write  VBAP-KWMENG to l_var1 DECIMALS 0.
    so you will get l_var1 without any decimals and now you can populate this variable in your control.
    Please reward points if you find it useful.
    Regards,
    Jigs.

  • Remove "zero" from word reports in nav 2015

    Hello Friends,
    I have a problem with reports made in Word nav 2015.
    When a texts is added to the salesline with no items or prices attached, the report generated in Word shows a "zero" at the end of the line for each field in the report.
    In the RDLC report builder there is a function BlankZero, how do you get this functionality in Word ?
    Hope you have some tricks to solve this issue :) 

    Hi
    you can use the function Module
    CONVERSION_EXIT_ALPHA_OUTPUT in the start routine
    to test this go to SE37  --- give the CONVERSION_EXIT_ALPHA_OUTPUT -
    >display -
    > F8
    in the input give 000000456
    and execute
    the out put will be 456
    for getting Zeros you can use
    CONVERSION_EXIT_ALPHA_INPUT--- to remove leading zeros
    Santosh
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:52 PM
    Edited by: Santhosh Nagaraj on Oct 29, 2009 10:54 PM

  • Want to remove zero line item from invoice

    Hi All,
    While creating invoice from delivery, items with zero quntities are also appearing in invoices. I need to remove this items with zero quantity. I am not getting any user exit ,customer exit and badi where i can modify VBRP.
    Thanks
    SVS

    Hi SVS,
    Try using the BAdi SD_CIN_LV60AU02.
    Reward if useful.
    Thanks and Regards,
    Maddineni Bharath.

Maybe you are looking for

  • How to insert the sysdate time into the database

    hi all, when i execute the following query, insert into table_name (date_field) values (to_date(sysdate, 'yyyy/mm/dd hh24:mi:ss')); The value is inserted as 08-02-12 12:00:00. In this query, it always stores the default time as 12 a.m. But i need to

  • How do I make a submit button work on a mobile oriented page?

    How do I make a submit button work on a mobile oriented page?  I have the .html file and the .data file (and one other kind), but it just spins and spins and spins when I try to send the form in (for an absence).  I'd like it to work on all devices. 

  • Invalid subreport name Error code:-2147483086

    The setup used in this particular environment is to run reports via Crystal reports server 2008. We call the servers via the rassdk_java_dg_12_en and the setup works just fine BUT in one particular case. The report that fails have a main report with

  • Auditing the Error Records

    How can I audit the bad records that are getting rejected from the target table. ie) i want to store the bad records rejected out to a separate table. i tried checking it out in the wb_rt_error_sources table in runtime repository, but it holds only t

  • Export reports in query ready mode

    Hi, Is there a way hide hidden rows when you export a financial report in query mode. Currently all hidden rows are getting displayed. Thanks in advance.