Adding zeros addition

Hi All,
there is a variable with length 2,
if variable having single charcter value like '1'  need to make the variable value '02'
how to check the variable length and add the zero if variable having only one character.
please help me
regards
krishna

Hi,
try the following code..
data : var type i,
var2(3) type n.
var = 2.
if var < 10.
var2 = var.
endif.
write /: var, var2.
var2 will ouput with leading zeros...
Regards,
Viji

Similar Messages

  • Adding one additional row to table control of VA01

    HI all,
    I am working on free goods N:N senario which is not supported by sap standard.
    so we have decided to club all the material on the basis of material group and PSTYV = 'tann' in the table control of va01 and at the end of tann we have to display the free goods .The user exit is USEREXIT_MOVE_FIELD_TO_KOMP.
    Please help in in adding the additional row in table control of va01 (TCTRL_U_ERF_AUFTRAG).
    Even i have gone through all the thread in sdn and tried all the solution but none of the solution is working .
    plz quote solutions....
    thanks..
    Kundal.

    The user exit is USEREXIT_MOVE_FIELD_TO_KOMP
    Are you adding condition records, or adding free materials to VBAP?  If free materials to VBAP, you're in the wrong exit, I think....look for routines that allow you to add to internal table XVBAP in includes named like MV45AFZ*, and remember to set you UPDKZ to 'I'-insert if you're adding new rows.
    Not sure what you mean by not supported by SAP standard;  SAP does support free goods, via config!
    Edited by: BreakPoint on Mar 14, 2011 4:11 PM

  • Trying to extend the WLAN range by adding an additional Airport Extreme second gen with Ethernet as backchannel.

    Hi,
    I'm trying to extend the coverage of my home WLAN by adding an additional airport express. I want to use Ethernet as the back channel but whatever I do this ends up in a situation where the WLAN dies completely. I have been able to extend the range by using WLAN to WLAN extension but this reduced the bandwidth a lot.
    I have an VDSL modem and uses a airport express as access router. with this unit operating by iteself everything works fine.
    It is when I add a second airport express (both second gen) that I get in trouble.
    Any idea of what goes wrong?

    It is best to set up the extra AE to create a wireless network. You should use the same name (SSID) as you did when setting up the first one. Also use the same password and encryption.
    Put the network channel selection on automatic or select different channels for both networks.

  • (ADI) JOURNAL UPLOAD IS ADDING ZEROS TO SEGMENT VALUES

    제품 : FIN_GL
    작성날짜 : 2003-09-16
    (ADI) JOURNAL UPLOAD IS ADDING ZEROS TO SEGMENT VALUES
    ======================================================
    Problem Description
    ADI에서 Journal Import를 시도할때, Account segment value값에"0"를 자리수만큼 채워서 upload를 시도하는 경우가 있다.
    예를들어, segment value가 300 인데, ADI에서 Journal Import시
    0300 으로 바뀌는 경우이다.
    이 경우, Segment Value중에 0300이라는 값이 없기 때문에, upload시
    에러가 발생한다.
    재현방법 :
    Responsibility = General Ledger Super User
    ADI path = Click on the Ledger Book from the ADI toolbar/Enter Journals
    1. Log on to ADI as the General Ledger Super User.
    2. Proceed to the Create Journal Worksheet form using the above navigation.
    3. Choose the appropriate journal type and click on the green check mark to
    continue. This will load Excel and the appropriate journal template.
    4. Enter your Journal information in the header and body. Place the value of
    the segments that you would like in the segment value portion of the journal.
    5. Once the journal is completed, click on the Ledger Book from the ADI toolbar
    and select the green arrow to upload the journal.
    6. Once the journal upload is complete, you notice that the values that were
    uploaded for a certain segment have a zero added to them.
    Solution Description
    "0"가 자릿수만큼 채워지는 것을 막기위해, ADI setup중 "Zero Pad" 기능을 uncheck한다.
    Responsibility = General Ledger Super User
    ADI path = Click on the Hammer and Screwdriver(망치와 드라이버가 그려져 있는 Icon) from the ADI toolbar/General
    options/Settings
    1. Log on to ADI as the General Ledger Super User.
    2. Proceed to the Settings form using the above menu path.
    3. Uncheck the Zero Pad check box on this form.
    4. Save your changes and repeat the journal import process for this journal.
    Explanation
    "Zero Pad"기능은 check되었을때, 해당 Segment의 Maximun Size만큼 "0"으로 채워준다.
    이 기능을 uncheck하면, "0"의 추가확장 없이 입력된 그대로를 사용하게 된다.
    Reference Documents
    Note : 113051.1

    Hi,
    Are you choosing Functional Journals template and trying to upload Foreign Currency journals or vice versa? Please check
    Regards,
    Sridhar

  • Adding zeros to filenames when exporting in Lightroom "Filename-001" "Fliename-002" etc?

    Hi, does anyone know if it is possible to add zeros before numbers when exporting files eg: "Filename-001" "Fliename-002" etc? The default setting is "Filename-1" "Filename-2" ect. The reason I want to have zeros in the number sequence is that certain software will display files in the wrong numerical sequence eg: "Filename-1" "Filename-10" Filename-11" etc and then "Filename-2" after "Filename-19". If zeros are added the files will always be displayed in the correct sequence "Filename-001" "Filename-002"... "Filename-009" "Filename-010" "Filename-011" etc.

    Just customize the filename using the template editor, and use the Sequence token set to the number of leading zeroes you want, as shown.

  • Adding a additional iCloud  address book account.

    short and sweet:
    - have anybody added a second icloud account on the address book preferences?
    - I already have my icloud account set up in Lion (and works perfectly), trying to add my partner's address book (only) on
    the application preferences (see: http://www.macosliontips.com/wp-content/uploads/2011/10/lion-address-book-google -contacts-sync-removed.jpg)
    - trying to get some advice, has anybody try this?, did it messed up your contacts?, I need some advice, what would happen?, afraid of doing it, and messing all of my contacts.
    thx.

    *an additional.

  • Adding an addition feilds n the field status group

    Hi all
    I want to know, how to add a new field in the in the field status.
    e.g.
    in the standard  feild status group G001 we have fields namely general data, material managenment,addition account assignment,ect
    In additional account assignment i want to add some new feilds like Charges,dimension,etc. apart from the standard fields like Fund Center,Commitment item,Cost center
    But when i checked,their is no provission for adding the new fields.
    Can any one help out in this regard.......
    Its a urgent requirment ............
    Thnx
    Regards
    Praeen

    Hi
    You have to extend the coding block of the BSEG table with the required fields.
    You can then use there fields in the field status
    Regards
    Ole

  • Application installation when adding an additional RD Session Host to a collection

    I am in the process of adding a second RD session host to a collection in my Windows Server 2012 R2 RDS deployment. When doing this should I install the applications I wish to publish as remoteapps before adding the host to the collection or after?
    There doesn't appear to be a way to add the RD session host role before adding the host to the collection.
    I am concerned that if I install the applications before adding to the collection, the server may not install them in 'change user /install' mode. However if I install them afterwards, users may be load balanced to the new RD Session host before the
    applications are installed.
    I was just wondering what procedures others use when adding additional RD session host servers to existing collections?
    Thanks

    Hi,
    First you install RD Session Host on the new server, then applications, then add it to collection.  You can install RDSH via Server Manager -- RDS -- Overview -- Deployment Servers -- Tasks -- Add RD Session Host Servers.
    -TP

  • Adding zeros to the external material number

    Hello Friends,
    I needed your assistance with  a routine in BI 7, Infosource Transformations or in the Infoobject transformations (update Rules).
    I have data comming from a  flat file without the leading zeros for an infoobject.I need to have the leading zeros but i need a code that will do a record count and then accordingly add the zeros.
    EX:     1)  67909344 i need it to look  like  000067909344
              2) 505289 then i need it to look like 000000505289
    Basically, if its 8 digit number then i want 4 zeros before it and if its a 6 digit number then i need 6 zeros before it, those are the only tyoes ill have 6 and 8 digits
    Thanks alot.

    Hello Ronit,
    You can use FM CONVERSION_EXIT_ALPHA_INPUT.
    Declare a variable to contain that value, for example, 67909344.
    If you declare a variable like CHAR10, and use it like this:
    lv_variable = '67909344'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING                                  
      INPUT  = lv_variable                        
    IMPORTING                                  
      OUTPUT = lv_variable.                       
    The result will be 0067909344.
    If you declare the variable as length 12, the result will be 000067909344.
    And it goes on...
    See if this can be helpful to you.
    Kind regards,
    Bruno
    Edited by: Bruno Garcia on May 27, 2008 5:54 PM

  • Adding zeros to a character string

    Hello friends,
    I want to add leading zeros for a field.
    the field is a character string.
    for example ,
    data: A(5) type c.
    now when A  = 'ab' (non-numeric value)
    i want this to be converted in '000ab'
    so, is there any standard Function module or any other way for doing this conversion ?
    I tried the FM   'CONVERSION_EXIT_ALPHA_INPUT' but this FM does not work for non-numeric inputs..
    Thanks.

    Hi,
    The packed field is transported right-justified to the character field, if required with a
    decimal point. The first position is reserved for the sign. Leading zeros appear as
    blanks. If the target field is too short, the sign is omitted for positive numbers. If this is still not sufficient, the field is truncated on the left. ABAP indicates the truncation with an asterisk (*). If you want the leading zeros to appear in the character field, use UNPACK instead of MOVE.
    UNPACK
    Converts variables from type P to type C.
    Syntax
    UNPACK <f> TO <g>.
    Unpacks the packed field <f> and places it in the string <g> with leading zeros. The opposite of PACK.
    Regards,
    Bhaskar

  • Saving custom fields to MSEG added in additional TAB in MIGO transaction

    Hi Experts,
    I am facing an issue with an enhancement in MIGO transaction for which i need help. I have gone through several threads with similar issues but none of them have solved my issue. I have worked around with all BADIs of MIGO and user exits available but to no avail so I am posting a new thread.
    The requirement is pretty straight forward of adding a custom TAB in item details section of MIGO transaction. I have done that using BADI: MB_MIGO_BADI, method PBO_DETAIL. I created a screen with my custom fields and passed them in this method. The TAB appears as expected with all the fields. The custom fields are in MSEG table which has been enhanced and it needs to be updated with the user values on the screen.
    The issue creeps in when there are multiple materials in the purchasing document and user works around with them. Say he clicks on the second material and in the custom TAB changes its details in custom fields. Now he clicks on the fourth material and changes its details. Continues this for all the materials in random order. How do i identify in my custom screen [developed separately and called in PBO_DETAIL of the BADI] which details belong to which material or line number. The only way to do it is by using the purchasing order number and line item number. These are not available in my custom screen and needs to be exported from somewhere and imported there. I have not been able to identify the point where export can be done.
    Can anyone help me out with this problem? Either the point where export can be done or any other way of identifying the link between the line number / material number and the custom field details entered by the user.
    Thanks,
    Ritvik

    Hi Ritvik,
    you will not need it.
    The item methods will process exactly the item what the addional item data are related to. In PBO_DETAIL and PAI_DETAIL, use parameter I_LINE_ID for the item reference.
    Note: Not only read SCN etc,  also the parameters desciption of the methods used.
    Regards,
    Clemens

  • I need help adding an additional button to a web template

    Hello,
    I am trying to add an aditional button to a web template I inherited.  I am not a web person just trying to fill a gap at the company.
    If you look at my test server www.pondviewtech.com I want to add another button above the request demo one.  I have tried a bunch of things:  making the button smaller, adding a similar line to my index file as the same button, deleting the "Welcome to" text.  The best I could get was this www.pondviewtech.com/buttontest.html .  I have attached my buttontest.html file.  I couldn't figure out how to paste a few lines of code in this page.
    I didn't create the template so if it is a mess don't worry about my feelings.
    Thanks for any help or suggestions.

    Change this -
            <p><u>Welcome to Automated Compliance Solutions</u></p>
            <p><a href="contactacs.htm"><img src="button.png" width="266" height="56" border="0" align="right" /></a></p>
    to this -
            <p><u>Welcome to Automated Compliance Solutions</u></p>
            <p><a href="yourlink.htm"><img src="yourbutton.png" width="266" height="56" border="0" align="right" /></a></p>
            <p><a href="contactacs.htm"><img src="button.png" width="266" height="56" border="0" align="right" /></a></p>
    Be aware that my suggestion here is NOT valid XHTML, but since you are not a web developer, and the 'invalid' markup that I have suggested will not affect the rendering or operation of the page, I decided to keep it simple for you.  In my suggestion, "yourlink.html" refers to the page to which you want this button to link, and "yourbutton.png" refers to the filename of the button image (obviously you'd want to change this to correspond to the filename and extension of the image you have created).

  • Adding an additional name to a BT account - is it ...

    Hi everyone
    I'm helping my Mum setup internet for the first time on her phone line and she is going to go with Infinity.
    She is completely technophobic so I will be ordering it and setting everything up for her. If there are any issues I will also be dealing with the technical support and sorting it all out.
    She is with BT at the moment just with a phone and will be wanting to order Infinity with the anytime phone package.
    What I want to know is can I be added to her account so if there are any problems, or anything to order it can be done in my name or joint names rather than hers?
    For example she doesn't want to pay by direct debit so pays an extra £5.00 a quarter, I'm quite happy to have the bill in joint names and for a DD to come out of my account if it makes it cheaper.
    Can that be done? Most importantly, if we can how long does it take to do and it won't lock her into any new contract by doing that will it?
    Thanks very much!
    Any replies will be much appreciated, I'm quite excited to get her motoring into fibre territory and relatively lowering her bills at the same time! 
    Solved!
    Go to Solution.

    If you would like to try Live Chat they should be able to help you.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Adding an additional STB

    I currently have a splitter with one input feeding 3 outputs for my TV's and 1 output for my computer/router.  I would like to add an additional television output.  What type of splitter do I need?  Should I get on with 1 input and 5 outputs or should I take one of the existing TV outputs and split that into two signals.
    Also, is there a preferred splitter that I should use?

    you could either use a 5 way splitter or add and additional 2 way splitter as long has they are 1000 mhz. Any splitters that are less that 1000 mhz will eventually cause pixelation
    Frank
    Verizon Telecom
    Fiber Solution Center
    Notice: Content posted by Verizon employees is meant to be informational and does not supercede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • Webdynpro ALV - Adding an additional row

    Hi Friends,
    I want to develop an ALV report in Webdynpro ABAP as per the format mentioned in the below link. I want to have an additional row after the subtotal in ALV to show some calculation.As per the format below in the output after subtotaling the total operating revenue and total other income i would like to have an additional row to show the Total revenue(total operating revenue + total other income). Similarly after subtotaling the cost of sales, I would like to show the gross profit(total operating revenue - cost of sales) in an additional row. Please let me know whether this is possible in ALV. If so please advice me how to achieve it.
    http://www.imagebanana.com/view/gpl4ynnk/report_layout.jpg
    Regards
    SAPTechies

    Hi,
    I'm not sure but have you tried implementing the code you want after the total inside  end of page.
    There is another event called 'AFTER_LINE_OUTPUT' , try using them.
    Refer the below links for understanding how to use them.
    END-OF-PAGE
    http://help.sap.com/saphelp_470/helpdata/en/9f/dba04f35c111d1829f0000e829fbfe/content.htm
    Thanks.

Maybe you are looking for

  • Max No of Columns allowed in MAXDB 7.5.00.18

    Hello, How many Maximum No of Columns are allowed for a Table in MaxDB.And also tell me how many bytes a float,double,small int  etc takes in MaxDb.     I have seen in help of MaxDB that a table allows 1024 columns including primary key.But the Inter

  • Itunes stops when computer sleeps

    Before updating both iTunes (v11) and Apple TV (v2) I could stream videos fine using Home Sharing when the computer was asleep. Now iTunes appears to lose its connection as soon as the iMac goes into sleep mode. I have to awaken the computer every ti

  • Missing Apple Application iPod touch (2nd generation

    Help, I can't find the App Store /Safari icons on my Ipod Touch (2nd generation) anywhere. I tried to enable/disable Restriction several time and the icons are still missing ? I even tried to reset the ipod touch and it doesn't seems to work still. t

  • Drag and Drop nodes in JTree

    Is there a way to drap and drop JTree nodes without resorting to hacks? http://www.javaworld.com/javatips/jw-javatip97.html outlines a hack to get drag and drop working but it is kinda old. I am wondering whether there is a now a way to do this in Sw

  • How to hide value of characteristic in CV04N

    Hi, Regarding  a characteristic connected to a class in class type 017.   The characteristic has a value with sensitive information that should not be seen by all that have access to the trx CV04N or display document. We have set up the authorisation