FM for placing Zeroes info??

hi
i need to display VBELN ,in an classical report,but when data is displaying from ITAB,its removing the zeros,like 10 char are there in vbeln,but while display the zeros are removed,i had also used the FM for convterting it,but prob is same,while displaying,zeros are remoived.
move code:
loop at itab5.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT  = itab5-vbeln
      IMPORTING
        OUTPUT = wa1_vbeln.
    write:/1 sy-vline,2(10)  wa1_vbeln,
          12 sy-vline,13(50) itab5-arktx  CENTERED, 
  endloop.

use an intermediate variable of type N to write the value
data lv_vbeln(10) type n.
lv_vbeln = itab5-vbeln.
write lv_vbeln.

Similar Messages

  • Fm Req for placing equi numbers of zeros of total char in a variable???

    Hi
    Is there an SAP FM exist to place the equi no. of zeros in front of a value,pased in a variable.
    As I pass a matnr value = 123456,as matnr is of 18 char it automaticaly converts it to 00000000000123456.
    I am facing an prob like that,my code is not auto converting it in thsi format,so I am thinking to pass the value 1st to such FM is exits.
    If there is any other alternative please tell me fast.
    Regds.

    hi,
    first apply the follwing trick
    GO TO SE11 and double click on field on which you apply the FM
    FOR EG. MATNR of MARA !!
    Follow the path..
    MARA >> MATNR [double click on data element] >> double click on domain >> Convers. routine MATN1 >> see the FM it invloves to Change it internally...
    then use that FM to do the desired functionality..
    Still confused see the code below..
    by using the method aboe you would be able to find out that it uses
    CONVERSION_EXIT_MATN1_INPUT for addding zeros in front of it..
    now code like this
    DECLARE VARIABLES LIKE
    DATA:      FIELDVAL_MATNR TYPE MATNR,
                   V_MATNR TYPE MATNR,
    FORM ZF_GET_CURSOR .
      WINDOW STARTING AT 20 30 ENDING AT 130 60.
      SET PF-STATUS 'Z11_RM_ALV_STATUS2'.
      GET CURSOR FIELD FIELDNM  VALUE FIELDVAL_MATNR.
      CASE FIELDNM.
    *&--CASE ONE
        WHEN 'R_MATNR'.
    *PERFORM TO CONVERT MATNR FRMAT TO 18 DIGIT FORMAT
    PERFORM ZF_CONVERT_MATNR.   SEE THIS FORM ENDFORM
    *&      Form  ZF_CONVERT_MATNR
    FORM ZF_CONVERT_MATNR .
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
            EXPORTING
              INPUT        = FIELDVAL_MATNR   -->   8
            IMPORTING
              OUTPUT       = V_MATNR  -- >000000000000000008
            EXCEPTIONS
              LENGTH_ERROR = 1
              OTHERS       = 2.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    ENDFORM.                    " ZF_CONVERT_MATNR
    hope it solves your problem
    reward if helpful
    Rohan malik

  • I bought Lion and downloaded on my laptop, all is great. I was told by Apple tech I could put it on my family's computers (up to 4). However, I just tried to put on my daughter's and it asked for my billing info again. How do I avoid repeated charges?

    I bought Lion and downloaded it on my laptop. Apple tech said I could install it on family computer without buying again, they said it could be on 5. I just tried to install on my daughter's and was asked for my billing info again. How do I install on family computers without having to pay again?

    Your other computers must have Snow Leopard 10.6.6 or later installed. You open App Store and sign in using the same Apple ID used to purchase Lion. Click on the Purchases icon in the toolbar. You should now see an active Install button to the right of the entry for your Lion purchase.
    Here's a tip:
    Make Your Own Lion Installer
    1. After downloading Lion you must first save the Install Mac OS X Lion application. After Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing Lion.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    3. Locate the saved Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the InstallESD.dmg disc image to the flash drive as follows:
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the InstallESD.dmg disc image file into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable Lion installer that  you can use without having to re-download Lion.

  • HT5035 Why, when trying to download a "free" app from iTunes after it say's, "this apple id hasn't been used with the iTunes store" does it keep asking for credit card info???

    This is so frustrating! I have an itunes store account, etc. I lost all my info when I had to "restore" my iphone.
    I wasn't able to do the "restore" until recently, gosh it was about 6mos or more ago when my iphone died...
    So, as I get older I am having memory problems and haven't been able to access my itunes account.
    Obviously when I did the "restore" on my iphone I lost all my info with it... So, wanting to use my iphone for
    music, games, etc. I had to create a new apple id, fine, but when I wanted to download a "free" app it says
    my apple id hasn't been used with itunes so it keeps asking for credit card info.
    I do not remember ever having to have a credit card before!
    I am so frustrated... First it was not being able to access my account then having to create a new one, fine!
    But now I can't download "free" content without credit card information!?!?!?!?!?!?!?!?! UGH!!!!!!!
    Please, can anyone help...?!?
    Sincerely,
    "Distressed"

    If you are within 14 days of purchase you can still return the iPhone and get the phone that suits your needs, however, I think you will find that no matter which phone you get the content provider will want to know how you are going to pay for future purchases. For Android phones it is Google, and they will certainly want to know.
    To create an Apple account without a credit card see: http://support.apple.com/kb/HT2534

  • HT5925 I have an iCloud email on my iPhone that is now old as hacked and unused. I can't access anything as it asks for that account info and I don't remember the password etc. How do I delete it and replace it with my new iPad email? ! Help..

    I have an iCloud email and Yahoo email on my iPhone that is now old as hacked and unused. I can't access anything as it asks for that account info and I don't remember the password etc. How do I delete and replace it with my new iPad email? ! Help..

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.

  • I have an old version Adobe Creative Suite 3 Design Premium. I uninstalled it from my old computer and was trying to install it on my new computer. It copied all the files but I cant open them and it doesn't ask me for my registration info, which I have.

    I have an old version Adobe Creative Suite 3 Design Premium. I uninstalled it from my old computer and was trying to install it on my new computer. It copied all the files but I cant open them and it doesn't ask me for my registration info, which I have.  What shall I do to get Adobe up and running?

    when you were install your cs3 you should have been prompted for you serial number.  were you?
    if not, you probably didn't properly install cs3.  copying/migrating/moving etc is problematic.
    if yes, did you see any error messages during installation?
    if yes, attach a screenshot of the error message.
    if not, check you install logs, Troubleshoot with install logs | CS5, CS5.5, CS6, CC

  • Hi - for any photo, info in mountain lion shows a different file size than Photoshop does. I've tested with CS3 and CS6 and get the same problem. Doesn't happen with CS3 and OSX10.4 or any previous versions of Photoshop and OSX. Anyone know why?

    Hi - for any photo, info in mountain lion shows a different file size than Photoshop does. I've tested with both CS3 and CS6 on 10.8.2 and get the same problem. This doesn't happen with CS3 and OSX10.4 or any previous versions of Photoshop and OSX. Anyone know why?

    this one is actually a really rare symptom of a flaky connection to the ipod on a Windows PC. there's more going on in terms of hardware on nanos and 5th gens than in the earlier models ... so if the connection is flaky to precisely the right/wrong degree, itunes will see the ipod, but misidentify it as an earlier version of ipod.
    tracking down the cause of the flakiness can be tricky ... as you already know ...
    just checking. have you tried connecting with a different (known-good) USB cable? does that seem to have any impact on the rate of occurence of the problem?

  • UDF for leading zero's in message mapping

    Dear team,
    I need UDF for leading zero's in my message mapping.
    Source and Target both structures contains matnr field.But we have to maintain total 18 chars at target matnr , because RFC in R/3 needed.So I want to add leading zero's when mapping. Can anybody provide the UDF code.
    Matnr[source]--->split by value(eachvalue) ->UDF->Matnr[Target]
    Ex::if source matnr conatains value "9846538" ; I need matnr value at target side like "000000000009846538"[total 18 chars].
    -Drumi

    Hi Ambrish,
    Good day...
    I have enterd what you said and I got below error... and I gave "input" in place of var1, 18 in place of filedlenght in below program...
    =================================
    int len = Integer.parseInt(18);
    int inputLength = input.length();
    try {
    Integer.parseInt(input);
    // If it is an integer, add 0 (len - inputLength) times
    for (int i=0; i< len-inputLength;i++)
        input = "0" + input;
    return input;
    } catch (NumberFormatException numForEx) {
    // return as it is, if alphanumeric
    return input;
    ====================================
    ERROR:
    Source text of object Message Mapping: Lubrisur_SHPMNT_SHPMNT05_TO_WMMBXY_WMMBID02_TransferPosting | urn:bp:xi:dwn:lu:common:Logistics:100 has syntax errors:
    Function LeadingZeros, Line 1:
    cannot find symbol symbol  : method parseInt(int) location: class java.lang.Integer int len = Integer.parseInt(18);                  ^ 1 error
    =======================
    Please suggest

  • I've downloaded icloud for windows, what info from my pc merges with my iphone?

    I've downloaded icloud for windows, what info from my pc merges with my iphone when I sync?

    Just to add, i have also set up the two email addresses and verified them within my icloud account, but still no sync to my iphone or showing on the icloud account...

  • Restricting Authorization for a specific Info-object

    Dear All,
    I have a scenario where I have to restrict the account managers by specific channels.
    I have 2 info-objects, Sold-to party and Sales Channel. Sales Channel is defined as attribute of the the Sold-To Part info-object.
    I was exploring the BI authorizations concept in SCM 2007.
    I created a authorization called "Test" and assigned the info-object Sales Channel in the authorization and restricted it for one value. This authorization along with 0BI_ALL I have added to the role under BI authorizations.
    However in interactive demand planning, I cannot restrict by the sales channel. It allows me to load data for all the channels.
    If I remove 0BI_ALL object, then I cannot load anything in interactive planning.
    Does anyone have a step by step proceedure for using the BI authorization concept?
    Regards,
    Kedar

    Yes, 0TCAACTVT (activity), 0TCAIPROV (InfoProvider) and 0TCAVALID (validity) have to be made authorization relevant. For the info objects you want to use to control security, also make them authorization relevant in RSD1, imagine the object you want relevant is ZZ_VKORG (sales organization).
    Then use RSCEADMIN transcation and 0BI_ALL will include the objects from above, copy 0BI_ALL into a object such as Z_1000 and then change the value for the specific info object that you want to control, imagine that you want sales org 1000 only to be allowed within Z_1000.
    Now, you have 2 choices: You can use the normal security maintenance (SU01, PFCG) and you can asssign RSRS_AUTHBIAUTH and set BIAUTH requal to Z_1000 or you can use user maintenance directly within RSCEDAMIN and assign Z_1000 to the user. Either way, it becomes part of the authorization of the user.
    You may find that you need to introduce colon authorization concept ( for mixed levels of data and that is just a matter of adding a second line to the allowable values and setting it like "EQ :".
    Things to consider:
    1. This authorization concept is water tight and will do everything you need, but will do at the expense that if you don't model it first, you will kill yourself trying to make it right. This becomes evident when you trace a security issue (via RSCEADMIN) because the way BI7.0 works is that it will build a minimized superset of authorizations, so it is best to know where you want to get to, rather than starting off by where you know you need to go.
    2. To control change or display mode, you will need to influence 0TCAACTVT, even though you might think to use C_APO_SEL3 for ACTVT, the BI7.0 concept works within the BI space and 0TCAACTVT doesn't impact it.
    3. If you activate more info objects, 0BI_ALL will get updated automatically but your custom  authorization objecst will not. So, it is best to activate them all at the same time so that you don't have to manually change them.
    4. Do the work in development and transport it to the TEST/QA/PROD environments, there are transprt tools within the RSCEADMIN.
    This is probably enough to get you going, reply back if you have specific questions or issues.
    I've been thru this in a painful way, sometimes the best things learned are learned the hard way

  • HT201209 I want to use a gift card but it's asking for credit card info. I do not have a credit card. what do I do?

    I want to use a gift card but it's asking for credit card info. I do not have a credit card. what do I do?

    Hi Toastcafe,
    If you are having issues setting up an iTunes Store account without a credit card so you can redeem your gift card, you may find the following article helpful:
    Apple Support: Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Regards,
    - Brenden

  • App for placing orders?????

    I work at a church that records video and audio of each service and provides DVD/CD's to be available for pickup at a later date (once edited). Our current process for placing orders is a small booth with a stack of carbon-copy forms and we would just like to make it a little easier and more streamline for the church member.  Is there an app out there for the iPad that will allow me to create a form for a person to fill out and submit (to be emailed to me) so we could replace our carbon-copy forms?
    Also, if there was a credit card payment option where they could swipe and pay (i currently use Square for photography gigs in my personal business) that would be amazing (but not necessary).
    One final request... if this app exists, is there a way to lock the user into that app so they can't just start playing with the iPad?  We were thinking of building a nice looking case (podium of sorts) that sits in front of a larger LCD monitor utilizing the HDMI adapter mirror display for the iPad 2 but would also allow us to lock the iPad down and also maybe even hide the fact that they are even using an iPad... very ambitious i know and understand that I might need to hire a programmer...
    Any suggestions would be GREATLY appreciated!

    AWESOME! thanks so much!  the LocPad is EXACTLY what we need... the kiosk is almost there but not quite... check out this link to see more or less what we have and want in APP form... http://etcolumbus.org/#/media/media-orders
    I guess we could actually just use LocPad to keep them on this page of the website huh?  it would definitely keep things simple...

  • What is the source table for repository browser info?

    Hi guys,
    I need to create report for everyday's data refresh, mostly like what repository browser does. So what is the source table for repository browser info? I am in OWB 10gR2. Thanks a lot.

    I believe the runtime audit browser uses the views that start with "RAB" in the control center.
    But it would probably better if you used the Audit Execution views. More information can be found in the "API and Scripting Reference" document...
    http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/api_2runviews.htm
    In order to get access to the Public views from SQL Plus using a schema other than the control center, I believe you need to grant the ACCESS_PUBLICVIEW_BROWSER sys privilege to each OWB user. Look at Note:434718.1 for more information.

  • So let me get this straight. I own 5. And I own 6. But when I try to open 6 am being prompted for my subscription info. When I ask for support I get referred to a forum. Remember, two licenses. Oh and since I started the project in 5, It's repeatedly fail

    I own 5. And I own 6. But when I try to open 6 am being prompted for my subscription info.Otherwise am locked out. When I ask for support I get referred to a forum. Remember, two licenses. Oh and since I started the project in 5, It's repeatedly failed to manually save, the audio just disappears, it loses the program monitor, fails to save renders, timecode window burn doesn't work, and that's just for starters.
    Thanks Adobe.
    What makes you people think this is acceptable?

    If you have the serial number version of CS6, and you have ever had even a Cloud trial installed... read Cloud takes over https://forums.adobe.com/thread/1584746

  • I cant download new app because it keep asking  for my billing info an when i put it in again it continue to ask for it again

    i cant not get into my app store because it keep asking for my billing info an when i put it in again it pops back up asking for my billing info again

    Be sure to enter the security code for your credit card as well as your other information.  If you don't it will keep prompting you.  Also be sure the billing address and phone number match your credit card statement exactly.

Maybe you are looking for

  • Two separate videos in the same frame, and large format video.

    Hello.  I'm very new to this program. I've only done basic editing, such as this video where I took scenes from 3 different computer game replays and spliced them together. I own an eyefinity system (triple monitor) and record replays from games. The

  • Work flows-kk

    Hi, Good day experts,                            iam working on abap. i would like update my knowledge. i have no idea on Work flows.can any one give me good idea on workflows. give me step-by-step idea on workflows.                             if an

  • Why the drastic file size reduction in cropped images?

    I just cropped a 9MB image a TINY amount and the resulting image was 756KB. Why? Is this normal?

  • 300 Series Switch VLAN Setup

    Hello, I  am trying to setup vlans on sf 302 switch and been unsuccesful. My idea  is having 2 separate networks and both connecting to internet 192.168.2.0/24  Gaming Network 192.168.3.0/24  Work Network Router ( Linkys) connected to port 8 on the s

  • Questions about OS upgrades

    I currently have an 2.4 GHz Intel Core 2 Duo desktop running OS Snow Leopard (10.6.8). I'm happy with it, although when I wanted to download an Adobe Illustrator free trial today, it said I needed at least 10.7. I'm just wondering about the philosoph