Padded zeros which is removed need to be replaced by spaces

Hi Friends,
My requirement in XI is : Padded zeros which is removed need to be replaced by spaces.
for removing padded zeros I used the UDF:
int i = Integer.parseInt(a);
return (Integer.toString(i));
It is working fine.
Please help as how to go abt in coding : whatever zeros get taken off , need to be replaced with spaces.
Thanks in Advance,
Meghna.

Hi Raj,
According to the logic given by Henrique, its working. But the point to the noted is that :
The number of spaces need to be equal to the number of zeros removed, where it not happening in this case.for the below Ex when applied it returned '  12345' instead of '    12345'.
For ex. source field is '000012345' then the target field need to be '    12345'.
the Type declared in the data type for the receiver field is integer with length 15.
Is it possible to move the field value to the right justified, so the the padded zeros code when applied will automatically load spaces.Becoz the code written for removing zeros contains String due to which it is left justified i think.
The code written for removing zeros is :
int i = Integer.parseInt(a);
return (Integer.toString(i));
please suggest in this regard.
Regards,
Meghna.
Edited by: meghna swaraj on Feb 27, 2008 6:05 PM

Similar Messages

  • Pad Zeros in user Exit

    What is the syntax to pad a value with zeros in a user exit code.
    I have a value of MONTH 01,02, 03...12.  Then to get previous month I do MONTH-1 but this gives me 1,2,3...12.  and I loose the zero which i will need when I concatenate with year to get what I need...
    help please

    hi,
    check the links,
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/4f/d5276c575e11d189270000e8322f96/frameset.htm

  • A query on removing additionally padded zeroes from the pernr.

    Hi ,
    How can i remove the padded zeroes from the pernr, Ex pernr is 8 chars and if pernr has 6 chars it has to remove appended 2 zeroes from the left and should only print the 6 chars with no appended zeroes
    Thanks

    Hi Khaleel,
    Use FM <b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
    Reward if useful.
    Thanks
    Aneesh.

  • How can we give a padding-right:28px; to a frame in firefox, while all the other browsers are supporting the padding style which firefox Mozilla browser doesn't . can anyone help me on this.

    How can we give a padding-right:28px; to a frame in firefox, while all the other browsers are supporting the padding style which firefox Mozilla browser doesn’t . can anyone help me on this.

    That should be working.<br />
    Can you post a link?
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25<br />

  • Padding zeros

    Hi friends,
    I need a small help.
    My requirement is like,I need to pad zeroes in front of a quantity value.
    I am using CONVERSION_EXIT_ALPHA_INPUT.But,it is going into dump,because
    I am passing a quantity field as input.
    Can any one suggest any function module,to pad zeroes to a quantity value or decimal value.
    Points guaranteed,
    Imran

    hi masood,
    first Convert that Quantity field value into Char type and then pass it to conversion routine..
    ex:
    data: var(length) type c.
    var = quantity field.
    and then pass it to conversion routine.
    <b>Reward points if useful</b>
    Message was edited by:
            Chandra

  • I am trying to use a website on my ipad which says it needs Adobe Flashplayer but I can't download Adobe when I click on it

    I am trying to use a website on my ipad which says it needs Adobe Flashplayer but I can't download Adobe when I click on it

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

  • In R12 which file we need to modify as there is no jserv.properties

    In 11i we used to set some proxy settings like proxy host, proxy port etc... where as in R12 there will be no jserv.properties.. so where and which file we need to set these settings.
    can you plz guide me

    Hi,
    in R12 all the JVM parameters can be changed in $ORA_CONFIG_HOME/10.1.3/opmn/conf/opmn.xml
    But if you are talking about proxy and the rest then please check in $INST_TOP/ora/10.1.3/j2ee/oafm/config/oc4j.properties
    Thanks
    Edited by: EBSDBA on Dec 18, 2012 12:30 PM

  • Before i buy the complete creative cloud, how many computers can i install it on with the one subscription? i have a macbook pro laptop and a iMac desktop, which i both need it on.

    before i buy the complete creative cloud, how many computers can i install it on with the one subscription? i have a macbook pro laptop and a iMac desktop, which i both need it on.

    Creative Cloud Help | Creative Cloud / Common Questions
    "Can I use the software I download from Creative Cloud on more than one machine?
    Yes. Creative Cloud desktop applications can be downloaded and installed on multiple computers, regardless of operating system. However, activation is limited to two machines per individual associated with the membership. See the terms of use for more information. Learn how to deactivate a Creative Cloud license on a machine."

  • Hi all, I'm trying to download a film from iTunes onto my iPad but downloaded the HD version instead of SD and don't have the room to download it. Have removed everything I can to make space but still need another 1.2 GB. How can I delete it??

    Hi all, I'm trying to download a film from iTunes onto my iPad but downloaded the HD version instead of SD and don't have the room to download it. Have removed everything I can to make space but still need another 1.2 GB. Is there any way I can delete it so I can delete the version I wanted, or even better change to the SD version? The film is still queuing in the downloads list. I've tried edit and delete but that doesn't work. I also can't re-download the film from iTunes.
    Any suggestions very welcome!

    Try to connect in recovery mode, explained in this article:
    iOS: Unable to update or restore
    Before that, back up your device, explained here:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    How to back up your data and set up as a new device
    You can check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • HT1338 Hi everybody..i have an enigmatic problem since i bought MacBook Air..i can't watch youtube videos and i did install the latest adobe flash player BUT when i start to install it the system keeps asking me to enter a password ? which password i need

    Hi everybody..i have an enigmatic problem since i bought MacBook Air..i can't watch youtube videos and i did install the latest adobe flash player BUT when i start to install it the system keeps asking me to enter a password ? which password i need ??????

    Your admin account password.

  • In which situation I need to active objects after transport

    Hi Experts,
        I'm wondering in which situation I need to active object after transport?  In some cases, I have to active transformation, DTP, infoobject, multiprovider....  Does any one make a conclusion of that?
        thanks in advance.
    Eric

    Sometimes, because of impact of a transport some other objects will be deactivated, then we need to manuaaly activate the objects after transport.
    Also, sometimes transport after import process could not be able to activate the objects, then also we have to activate them manually.
    Or suppose, you have moved and infoobject, due to which some other objects become inactive (where ever infoobjects is being used), then we have to activate them manually, if you dont want to transport them.

  • In which case we need a class with all methods defined as abstract ?

    In which case we need : A class with all methods defined as abstract (or should we go for Interface always in this case)

    The concept of interface and abstract class overlaps sometime, but we can have the following thumb rule to use them for our specific need:
    1) Interface: This should be use for code structuring. They standardize your application by providing a specific contract within and outside. If you think abstract class also provide structure, then reconsider as it limits the structure re-usability when there are many super-classes to inherit from. Java allow multiple inheritance by interface and not by Abstract class.
    2) Abstract Class: This should be use for code-reusability. Interface doesn't have any code so can't be used for code-reusability.
    Actually we can use both to provide the best.Taking a refernce to J2EE framework, the "Servlet" is an interface. It laids down the contract/structure for any code to be a servlet.
    But the "GenericServlet" class is an abstract class which provides implementation of some of the methods defined in the "Servlet" interface and leave some method abstract.
    Thus we see that the "Servlet" interface standardise the structure and the "GenericServlet" abstract class gives code re-usability.
    Original Question:
    In which case we need a class with all methods defined as abstract ?To this question, as all methods are abstarct we don't have option for code-reusability. so why not add standard structure concept to your application. So if there is not any restriction on making the field variable(if any) as final, we should go with the interface concept.

  • Need help on which adobe download needed to view content in pdf file

    I needhelp deciding on which adobe download need to view pdf file

    Go to the download page here ---> Adobe Reader Install for all versions
    Be sure that it shows your OS to get the proper download. Also, you want to deselect the "Optional" offer that is selected by default unless you want it of course.

  • Which scenario we need to choose ?

    Hi experts,
    For inventory which scenario we need to implement i.e
    1.Inventory management with non-cumulative key figures or
    2.Inventory management with SnapShots.
    Please guide me what is the difference and which is the best.
    Full points will be assigned.
    Thanks & Regards,
    V N.

    Hi,
    Please go thru these links;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/93ed1695-0501-0010-b7a9-d4cc4ef26d31
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Thanks..
    Shambhu

  • Which cables are needed to connect macbook 13" to HDTV

    Hi, was wondering which cables i needed to connect my 13" aluminium macbook to a samsung HDTV. There's so many on the apple store, not entirely sure what I need. Any help would be appreciated.
    thanks

    Can you clarify whether you're using a MacBook Pro or a PowerBook?  Your post is ambiguous.  For good measure please tell us when it was purchased new.

Maybe you are looking for

  • How to use previous year keyfigure data in current year for other keyfig

    Hi Expert, I have 1 requirement wherein I need to use previous year data for some keyfigure calculation. Details are as follows: I have designed query with CKFs Turnover & UVG (in rows) & Fiscal year period in columns. Suppose Keyfigure Turnover data

  • Crash Help?

    Process:         Adobe Illustrator [1680] Path:            /Applications/Adobe Illustrator CC/Adobe Illustrator.app/Contents/MacOS/Adobe Illustrator Identifier:      com.adobe.illustrator Version:         256 (17.0.0) Code Type:       X86-64 (Native)

  • IE7 and CSS

    I looked the forum for a topic like this but I didn't find it. I've heard that IE7 does not support correctly the CSS. Is it true? Can I tell my customers to install it? Some of them doesn't want to use Firefox-

  • Is drop user cascade DDL statement will be reflected in physical standby DB

    Hi, Oracle 10G Physical standby database When issuing drop user cascade in Primary DB , Will the same be reflected in physical standby ? or there is any exceptions of applying DDLs and DMLs ? Thank you in advance, Mohamed

  • Greek Fonts in the Developer FORMS

    Dear Collegs; Does anyone have the idear how to get the Greek fonts in the Developer Forms, like Alpha, beta, delta, I need thoes font in some scientific fomular. Ming null