Command for removing preceeding zeros .

hi good evening to all off u .
i am facing one problem in text display . when i am retriving the text data
i am getting
00000 00000000000000 0000000000000000000000 0 450 MM WIDTH , LAST PURCHASE ORDER NO. PC06Y-00088.PREVIOUS INDENT NO. IP07Y-00883 DATED 26-02-08
i want to remove the leading zeros so i have use the code
REPLACE ALL OCCURRENCES of '0' in fs_readhead with ' ' .
condense fs_readhead  .
after that  i am getting
45 MM WIDTH , LAST PURCHASE ORDER NO. PC6Y-88.PREVIOUS INDENT NO. IP07Y-883 DATED 26-2-8
i just want to remove preceeding zeros

Hi,
Here is the complete code:
data:
  w_str type string value '000345',
  w_flag type c value '0' ,
  w_char.
  while w_flag ne 1.
    shift w_str left by 1 places.
      w_char = w_str+0(1).
     if w_char eq '0'.
       w_flag = 0.
     else.
       w_flag = 1.
     endif.
   endwhile.
    write:
      / W_str.
Regards,
Rama Chary.Pammi.

Similar Messages

  • 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...

  • How to remove preceeding zeros?

    Hi,
    Any function to remove the preceeding zeros from a number type.
    I cannot be using integers because i need to append it to a string.
    Thanks and regards,
    Ronita

    Hi Ranita,
    U can use anyone of the following options.
    DATA:num(10) value '0000000100'.
    SHIFT num LEFT DELETING LEADING '0'.
    WRITE:/ num.
    Or
    DATA : num(10) TYPE n VALUE '0000000100'.
    DATA : l_num type n.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = num
    IMPORTING
    output = l_num.
    write: l_num.
    If it is helpfull pls reward pts.
    Regards
    Srimanta

  • Removing leading zeros for the quantity field

    Hi all,
    In my script form there is a quantity field, of 13 and 3 decimals , on the out put its taking that much space un neccesarily,and messing up.
    how to make this adjustable in the provided space.
    It always 3 digits and 2 decimal points in our case.
    Please help me out,
    Thanks,
    Praveen

    Hi,
    For removing leading zeros
    &V_VARIABLE(Z)&
    Thanks,
    Naren

  • Remove leading zeros in report

    Hi all,
    I do a clasical reoporting. Data in the internal table numeric types. But when writing in the report, is appearing as 000056 etc. I want to remove this leading zeros in the report output. Any helps?
    Regards,
    Mic.

    Hi Michael,
         u can use the function module for removing leading zeros
          CONVERSION_EXIT_ALPHA_INPUT (adding zeros)
          CONVERSION_EXIT_ALPHA_OUTPUT (removing zeros)
    Regards
    Nagesh

  • Remove Leading zeros for Material in Transformation

    Hi Experts,
    I'm using DTP first time. I don't have much exp on DTP & Transformations.
    I'm creating infocube with some objects. I want to remove leading zeros for zmaterial.
    In 3.x writen update routines as fallows:
    data: zmat(18) type c.
    zmat = COMM_STRUCTURE-/BIC/ZMAT.
    shift zmat left deleting leading '0'.
    result value of the routine
      RESULT = zmat.
    I'm confusing in Transfermation where to write this routines.
    I'm writing in Transformation as fallows:
    data: zmat(18) type c.
    zmat = SOURCE_FIELDS-/BIC/ZMAT.
    shift zmat left deleting leading '0'.
    RESULT = zmat.
    But it's getting remove zero's.
    Anybody suggest on this.
    Siri

    Dear Sir,
    No confusion at all.
    Just double click on the Target Infoobjct i,e Material object in Transformation, you will see a wizard popping up.
    There you will see a option called "RULE TYPE" and the default value will be "Direct Assignment". In the same check box click on the drop down icon and select "Routine".
    The moment you select the routine option, it will open up ABAP workspace where in you can write your routine and get the desired result.
    Hope it helps.

  • [svn:bz-trunk] 21277: Added ds-console source to package-oem and removed copy command for datavisualization .swc which doesn't exist in the specified location.

    Revision: 21277
    Revision: 21277
    Author:   [email protected]
    Date:     2011-05-18 11:35:28 -0700 (Wed, 18 May 2011)
    Log Message:
    Added ds-console source to package-oem and removed copy command for datavisualization.swc which doesn't exist in the specified location. I do not find it in the most recent package-oem.zip neither
    Modified Paths:
        blazeds/trunk/build.xml

    Gusar wrote:No, it's not. I have actually seen cases where software rendering gave a higher glxgears score than hardware rendering (and no, it wasn't about vsync). Of course, with *actual* apps on the same machine, software rendering sucked compared to hardware rendering.
    Please do not jump to conclusions and make assumptions here like 'when will people finally get it??'.  I never said it was a benchmark.  I have also seen many examples of where it's results do not go with conventional performance.  I have a Radeon 9000 that goes faster on glxgears than a Geforce FX 5600 running Nouveau.  Which is the faster card?  The FX by miles.  It is not a benchmark as it can not be compared between configurations.  What I know is that on this individual system, from prior experience over many years when 3D acceleration is working glxgears gets between 300 and 400 fps.  When it is not working it gets less than 10.  That is a fact but does not mean it is benchmarkable.  Yes, a Quake 3 timedemo (I have these numbers too and they very much correlate to glxgears performance for this system given just how slow it is) would be a benchmark but when it runs less than 0.1fps and even the 2D rendering means that navigating the menu is impossible, there just isn't the time to find out.  Hence if playing around with drivers on this system I would use glxgears to check that 3D acceleration is working but not to benchmark.  Glxinfo does not give you all this evidence.
    But to clarify, I wouldn't use glxgears as a benchmark, benchmarking is different and I do a lot of that too.

  • How to remove leading zeros for an item number within quickviewer

    how to remove leading zeros for an item number within quickviewer. Pls help

    ask your abap guy to do  it. not portal guys business.

  • SAPSCRIPT - Symbol for removing leading spaces/zero's?

    Hi,
    How do you remove leading spaces/zeros in a variable that is sent from the print program?
    Do you use symbols and if so, how (i've never worked with symbols, ever)?
    Please help.
    Thanks,
    John

    I think the "Z" symbol will remove the zeros in the sapscript form.  For example,......
    /     &EKKO-EBELN(Z)&
    Regards,
    Rich Heilman

  • Command key for REMOVING INSERTED EFFECTS

    Hi,
    Bypass an effects = Opt+Click on that effects in the slot of channel strip; But what's the command key for Removing/Deleting the Effects that i've inserted into Channel Strip?
    Thanks!!!!

    Use "reset channel strip" in the menue that opens when you long click the top of your channelstrip. It can´t be assigned to a keycommand unfortunately.

  • I want to remove Trailing zeros from a charecter value

    Hello ,
              i want to remove trailing zeros for a prticular value.Following is my code :
    DATA: V_FLOAT TYPE F VALUE '4.8240000000000000E+03',
               V_CHAR(25) ,
               P10_4(10) TYPE P DECIMALS 4.
    CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR'
    EXPORTING
    FLOAT_IMP = V_FLOAT
    FORMAT_IMP = P10_4
    ROUND_IMP = ' '
    IMPORTING
    CHAR_EXP = V_CHAR.
    SHIFT V_CHAR RIGHT DELETING TRAILING '0'.
    WRITE : V_CHAR ."NO-ZERO.
    <u><b>Output:</b></u>
    if we pass the value '1.3000000000000000E+01' it should be 13.0
    ex2: '1.3400000000000000E+01' it should be 13.4
    ex3:'4.8240000000000000E+03' it should be 4824
    is there any way to get the solution without functional module. If so Please tell me with code.

    hi
    u can do it in number of ways.
    Use TCODE SU3
    Select default tab and select radio button 123467.89 in decimal notation and save it.
    or u can try :
    if you want to do this through ABAP program.
    1. to delete trailing spaces.
    SHIFT <V_VARIABLE> RIGHT DELETING TRAILING '0'.
    to delete leading zeroes,
    SHIFT <VARIABLE_NAME> LEFT DELETING LEADING '0'.
    only for one abap program, u can use set country command
    for all programs :
    sap menu>system->go to user profil->own data>default --> and choose ur format.
    hope this helps u.
    Regards,
    Prasanth
    Reward all hepful replies

  • How to remove leading zero from Material Number

    Hello Everyone,
    I need to figure it out how to remove leading zero from material number. Cureently extractor is sending material number as 100663. But when comes into BI i am getting as "000000000000100663" and similariy in report it is appearing as "000000000000100663". Now my client wants me to exclude preceeding zero for a material in all the reports.
    Is there any setting in query desinger to handle this issure or in the backend.
    Need your inputs.
    Thanks,
    Lasya.

    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

  • Removing Leading Zeros in ADOBE Forms

    Hi all,
               I am working on Purchase Ordders adobe form. At line item level, for Items leading zeros are appearing in the form
    How to remove thease leading zeros. Can anybody jelp me in this regard its high priority.
    I need to display text in the last page even though the current page is not filled fully, How to trigger new page in this case?
                                              Thanks
                                              Ranganadh

    Ranga,
    Fill the table itself without leading zeros. Or you can remove the leading zeros using SHIFT command before display.
    If you are using footer, in condition tab you can use 'Only on Page'  option.

  • How can I set up a keyboard shortcut for 'Remove Tween' in Flash Pro CC 2014?

    I'm trying to set this up, as I have in previous versions of Flash, but the 'Remove Tween' command (among other commands) is not available in the Keyboard Shortcut window.
    Is there some other way to add this shortcut?
    Thanks,
    George

    I don't think this had a keyboard shortcut even before (checked in CS6). There's an alternative though.
    1. Create a JSFL file with following code and save it in the commands folder as 'Remove Tween'.
         fl.getDocumentDOM().getTimeline().setFrameProperty('tweenType', 'none');
    2. Now goto Edit Menu > Keyboard Shortcuts..
    3. Search for 'Remove Tween' and assign a keyboard shortcut to it.
    Now everytime you press the assigned key - jsfl script is executed which essentially removes the tween from selected frame. (works for Classic and Shape tween but not Motion Tweens)

  • Remove Leading Zeros

    Hi ,
    I am working on BW3.5
    One of my Info object ( Product ID ) is displaying the value aftre adding some number of zeros
    For Ex:
    When user enters PROD ID as 43013 ,its coming as 000000000043013 to datasource and and same is extracting to BW.
    Can anyone help me how can I remove these zeros in BW. My client wants to see just43013 in report.
    I have  searched forums and understand that i will have write routine. But I am not clear wt to do
    Thank you in advance
    Satya

    Hi Satya Vani
    You can check fofr the Alpha Conversion in two places. Check for the Box at Transfer Rules level. Secondly, Check the Edit Info Object screen if there is any conversion defined.
    Also do a check in R/3 what conversion routine is used by going to SE11. Give the domain name as the field name and then chk for the conversion routine.
    The conversion routine defined should be the same in R/3 and in BW.
    Hope this helps.
    Harika.

Maybe you are looking for

  • A Problem with a K7T-Turbo 2

    HI I have a K7T Turbo2 (MS-6330 Ver5.0) and I'm with a problem here: When I'm botting, the POST screen shows my Cyberdrive 48x CD-Rom as a ATA-33. This is ok but, when I'm in the Windows XP Professional or in the Windows 2000 Professional, I cannot s

  • CVP Record Agent Greeting Failing

    I'm setting up the default Record Agent Greeting application with CVP 10.0, UCCE 10.0, Finesse 10.5.  I can dial the entry point number from Finesse and it goes to the ICM script.  I hear the message "Please select the greeting you wish to hear or re

  • How XI is better than BAPI method

    Dear all, How XI technology is better than BAPI method, with the help of BAPI we can connect Non SAP system with SAP then why XI is better and in what respect. Thanks, RP

  • Call WDJ from WDA

    Hi Is is possible to call Web Dynpro Java components from Web Dynpro ABAP ones?  We currently have an SAP Portal based on NW2004 and are just upgrading to ECC6.0 and wish to use WDA.  However, it is likely we will want to integrate the WDA components

  • Windows 2000 prof. I noticed that I have both versions 3.6 and 6.02 installed when i checked the this in the add/remove program in the control panel. Can i remove the v3.6?

    I have windows 2000 professional operating system version 5.0.2195 service pack 4 build 2195. I usually logged on as "user1". When i clicked on firefox it will try to install update but will return a message that update cannot be installed "please ma