How to align the number to the right

Hi,
Can anybody tell me ,
1. if the field is related to number, align the value to the right and complete it to the left with 0.
2. if the field is related to description, align the value to the left and complete it with "spaces".
Please reply ASAP.
Thanks,
Madhu

Hello Madhu
If a field has a numeric type its contents is, by default, right-aligned.
If a field has a alphanumeric type its contents is, by default, left-aligned.
In order to remove leading spaces (2) you can use the CONDENSE statement.
In order to add leading zero (1) you can use the OVERLAY statement.
For details please refer to: [Processing Character Strings|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3357358411d1829f0000e829fbfe/content.htm]
Regards
  Uwe

Similar Messages

  • Date - how to get the number of the week

    I have a Date - string - w/e can be convered thats not the problem
    but how do I get the number of the week cuz the database holds events per week so I need to know the number of the week.
    I tried going true the api but I failed to find the right fuction, aldoh I recall seeing it somewhere a while ago.
    anyways got a deathline so easy dukies, first come first serve.

    how's this then?int weekOfYear = 0;
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); //your String format
    Date date = null;
    String dateString = "2003/06/16";
    try {
      date = sdf.parse(dateString);
    } catch (ParseException pe) {
      //hande bad date format
    if (date != null) {
      GregorianCalendar calendar = new GregorianCalendar();
      calendar.setTime(date);
      weekOfYear = calendar.get(Calendar.WEEK_OF_YEAR);
    Warning: Be careful of your locale settings when using week of year, you may need to investigate setFirstDayOfWeek(int value) and setMinimalDaysInFirstWeek(int value) to ensure you get the results you expect.

  • Indesign CS3: How to get the number of the current layer?

    Hallo!
    How to get the number of the current layer in a page?
    Thanks,
    Alois Blaimer

    InterfacePtr<ILayerList> layerList(documentUIDRef, UseDefaultIID());          <br /><br />int32 layerCount = layerList->GetCount();<br /><br />To findout layer name use<br /><br />IDocumentLayer* documentLayer = layerList->QueryLayer(layerIndex);<br />                         <br />PMString layer=documentLayer->GetName();

  • How to hide page number in the table of content

    Hi,
    I'd like to know how to hide page number in the ToC. They show automatically, but at least for the headings of third ad fourth order I'd like to suppress/omit them.
    Thanks for any advice!

    You have in the Inpspector > Document tab > TOC > uncheck button for #'s

  • Call waiting says "multiple calls" rather than listing the number or the contact.  Does anybody know how to fix this?

    Call waiting says "multiple calls" rather than listing the number or the contact.  This error is not consistent, sometimes it says "multiple calls" and other times it lists the contact.  This is happening on a coworker's iPhone 4s.  Does anyone know how to get it to list the contact every time?
    Thank you,
    Dan

    It sounds as though it may not be ending calls correctly, I would try restarting the phone, and then resetting all settings.

  • My iphone was stolen and called police. Now the ditective needs to know my IMEI number. I need to know the number of the stolen one. How can I get the IMEI number?

    My iphone was stolen and called police. Now the ditective needs to know my IMEI number.I need to know the number of the stolen one. How can I get the IMEI number?                   

    Quickest place to look is in the label attached to the box the phone came in.
    Not around anymore? Maybe the carrier you used the phone with can facilitate the information. Also, when under contract, the IMEI is listed in the paperwork. Apple, alas, is quite unhelpful with that information.

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How to know the number of the week in iCal ?

    Hi !
    I'm very enjoying iCal. But, there is something very important for me that I can't find in iCal !
    I need to know the number of the week (in Month, Week or Day views).
    Is that a way to easily see it ?
    Regards,
    ant
    iMac G5   Mac OS X (10.4.2)  

    there's no option for a week view in iCal, but John Maisey wrote this applescript.
    paste it in the Script Editor (Applications --> AppleScript --> Script Editor) and run it once...
    if your weekview starts on an other day change this line:
    set daysText to "MonTueWedThuFriSatSun"
    to (example)
    set daysText to "SunMonTueWedThuFriSat"
    --Copy below this line into Script Editor and click run --
    --Annual Week numbers
    --John Maisey
    --4/2/5
    set numberOfWeeks to 1000 -- change as needed
    set daysText to "MonTueWedThuFriSatSun"
    set aDate to (current date)
    set day of aDate to 1
    set month of aDate to January
    set aDay to weekday of aDate
    set weekNo to 1
    --Day of week as num. starting with 0
    set aDayText to (characters 1 thru 3 of (aDay as text)) as text
    set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
    if dayOff is less than 5 then
    set StartDate to aDate - dayOff * days
    else
    set StartDate to aDate + (7 - dayOff) * days
    end if
    tell application "iCal"
    set newCal to make new calendar at end of calendars with properties {title:"Week No."}
    set myCal to (count of every calendar)
    end tell
    repeat with myCount from 1 to numberOfWeeks
    if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
    if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
    set weekText to "Week No. " & weekNo
    tell application "iCal"
    tell calendar myCal
    make new event at end of events with properties {start date:StartDate, allday event:true, summary:weekText}
    end tell
    end tell
    set weekNo to weekNo + 1
    set StartDate to StartDate + 7 * days
    end repeat
    --

  • I created a book at the Ibooks author. But there are pages where the number of the page does not appear. How I can solve this problem? I thank you very much for any tip.

    I created a book at the Ibooks author. But there are some pages which the number of page is not visible. What can I do to see the number of the page?

    Have you changed the template?
    Some pages may not have numbers in place as default.  If you have changed the page or the template page, you may have added a object which as pushed the number out of view, or an image may be in a layer on top of the text.
    If you select one object on the page...then go to Edit, select all, you should see the outlines of any content no matter that content may not be seen. Look at the bottom for a page width rectangle outline.. IF its there, you need to shuffle the content until you find that box, and use Arrange > bring to front.

  • How to extract the number of the image which looks like a number

    Now,I can generate a image which contains a random number,but I can not extract the number of the image.Any one can help me?

    [url http://forum.java.sun.com/thread.jspa?threadID=779212&messageID=4433641#4433641]Crosspost.

  • How to write a number on the keypad, when the service is shown?

    Hi!
    I develop idle service for 7941, everything works fine. But I have problem, users are accustomed to first dial the number on the keypad, then press the call. When the page is displayed on the screen, dial impossible. The keyboard is blocked. Can I hide a page of service, when the set of numbers?
    Thanks.

    Hmm.. there is something undocumented that you could try out.. if you look at the latest schema (for the 7.0 ip phone services developer guide) you there's an element called KeyItem which you can have for pretty much any CiscoIpPhone object (basically those that also can have SoftKeys).. the type is CiscoIPPhoneKeyType, you can have 0 - 32 such items, and there's an attribute that seems to indicate where the keys go.. keypadTarget can go to application (default), applicationCall or activeCall.. perhaps one of the latter two allows keys pressed to go to the telephony context and not the app context.
    CiscoIPPhoneKeyType has a key (can be any of the physical keys.. you'll find a listing of what the values are in the schema file), then an url, and an urldown url.
    So, either you manage to simply define those keys with some url (perhaps it can be empty? to be tested..) and manage to have them routed to the telephony context with the attribute I mentioned, or you could simply define a KeyItem for each key you want to be active, define an url for each and make this a notify url.. that way your app gets a notification about the key pressed, and you can do with it what you want.. this requires some additional logic on your end as you need to gather digits and decide when to initiate the call, but it still sounds doable.
    If you go down that route, please let us know your findings because as I said, those things are only in the schema and there's no documentation that outlines the use - thus it would be useful for the rest of us if you could tell us your findings.

  • Alert about the loading time & Restrict the number of the rows retrieved

    Hi everybody, maybe the question is stupid, but I didn't find yet an answer...
    I'm using BIP 10.1.3.4.1
    Because I have many reports with a huge amount of data to display (in HTML format) and customers once clicked on "View" have to wait a lot of time, they asked me if there is the possibility to do the following things:
    1. restrict the number of the rows retrieved (this for each report); this request has to be dynamic (different rows' number for each report and for each user); so, I can't modify the query into the data template in order to retrieve a fixed number of rows;
    2. show an alert who says for example " The data loading will take 5 minutes. Do you want to proceed ? YES - NO" This to inform the users how much time they have to wait if they click on Yes.
    I checked under the Administrator TAB...but I didn't find nothing "native" about the two questions above.....
    So, I ask you if there is a way to activate these features (if they exist "native") or a workaround to implement what I described above.
    Any help will be appreciated.
    Thanks in advance
    Alex

    Hi Vetsrini, thanks for your answer.....but what does it mean ? There are no solutions for my requests ? I remember that Discoverer had the possibility to have an alert as I would like to have with BI Publisher and there was the possibility to choose how many rows it was required from the customer....Is it possible that with BIP is not applicable ?
    Have a good day
    Alex

  • I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account. why is this?

    I've got an iPad and iPhone 4S, both of which are set up for facetime. When someone calls me, both the iPad and phone ring, even though the phone is set to receive facetime calls on the number and the iPad is set for an email account.
    How can I change the setup so on the email only the iPad rings and on the phone number only the phone rings?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • After VLSP, to find the number of the master delivery

    We are using VLSP tcode for splitting a single delivery to multiple deliveries. Say that we know the number of the multiple ones but we don't know the delivry number of the master delivery. How can we find it? Is there a table that creates a record for keeping the delivery number of the master one?
    Thanks in advance for the answers....

    Hi,
       Kindly consider that the delivery split produce "results" & "remainder" delivery documents, the most probable that the remainder document is the original master doc before the split so it should be the one with oldest serial number.
    Best regards.

  • Can you please tell me the best way to increase the number of the downloads of my free ibook

    Since I got the green light in iBook store my free book has been
    Downloaded about 50 times in 10 days.
    What is the best way to increase the number?
    The title is : monter a cheval
    It's in French
    Thanks for the help

    Do you, or anyone ese, have experience in this service? And how's the paid vs free services they have?

  • Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (a

    Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (and on top the page reads JRun Servelet Error).  What does this mean? What should I do next?

    Hi.  I purchased Adobe Acrobat Xi Pro from a store (card).  I submitted the number (under the scratch area on the card) on the adobe website, with my personal details etc.  When I submitted the form, I got an error message:  413 header length too large (and on top the page reads JRun Servelet Error).  What does this mean? What should I do next?

Maybe you are looking for