Leading zeros in data uploading

hello experts,
i am uploading the data for the business partner using lsmw
here my issue is while i am uploading the data i am feeding the system for the business partner like '0000001' but when i finish the uploading and when i check the records it is saving in the sap data base as '1'
how to get the business partner no.s with the leading zeros .
Thanks in advanse
Naveen

That is weird.  In your LSMW,  look at the "Converted Data"   How does this number look at that point?   How are you seeing "1",  in the database via SE16?   At row view?  Or Record View?  You may be seeing the conversion routine, depending on how you are looking at the data.   If you go to SE16, enter the table name,  and then enter your "1" as the field value, hit execute.  You now see the row for the record.  How does it look here?  This will give a true representation of how the data is being stored.  If you double-click on this line, you will see the record with the conversion routines ran against it.  Here I would expect to see "1" instead of "000001".
Regards,
Rich Heilman

Similar Messages

  • Leading zeros from data downloads

    Hello!
    While downloading data from the ABAP tables, Excel removes the leading zeros automatically but in some SAP tables (NAST for example), those leading zeros are necessary to find the required associated data. Is there any way to prevent Excel from removing these zeros?
    Thanks a lot!

    Hi,
    There are two ways to solve it.
    1) select complete columns in the Excel sheet and then assign the number format as ' TEXT ' in the sheet.Then u ll be able to see the leading zero's
    2) If u donot want to wrk in Excel the way i have mentioned,then in the abap program just use the FM
    "CONVERSION_EXIT_ALPHA_INPUT" over that field before uploading in  a table.
    By mistake i have told u the wrong way.the first way is for copying the data from text file to excel file and preserving the leading zeros.
    regards
    kanishak
    Edited by: Kanishak Gupta on May 6, 2009 5:36 AM

  • Leading zeros-master data

    Hi All,
    We have a characteristic 'Material'(custom defined master data infoObject) of length
    10,Conversion routine:ALPHA, datatype :CHAR,& output length:10.
    Requirement is Material number should be displayed as 10 digit number(characters ) in Bex
    report.
    but for some of the materials,we  don't have 10 digits for example we have a material
    123(this 123 should be seen as 0000000123 in Query output).
    When i am displaying infocube contents or master data contents i could see 123 as
    0000000123. but with F4,it shows 123 as 123  and in Query output also as '123'
    1.actually How data will be stored in infocube and master data tables? (either 123 or
    0000000123)
    2. one soution to display matarial as 10 char in report is  with  transfer/update routine by
    adding leading zeros.
    Is there any other way to achieve this without using routine ?kendly let me know.
    correct me if my above asumption is wrong.
    thanks

    Hi Murali,
    the Alpha Conversion ist used to convert data between an internal and an external view. The internal view is how the data is physically stored in the database. The external is i.e. how the data is displayed in reports.
    At some point the Alpha Conversion (if defined for the characteristic) is automatically used - you can not change it. This means that in this cases you can only see the external format. The BEx Reporting is one place and the F4 help another.
    In some places within the BW system (no enduser view) you have the option to see the data in the internal format. One of these places ist the cube content. There you have a flag "Do not use any conversion". If this flag is activated you will see the data in the internal format. But this is NOT the format a user will see in reporting.
    In your case the internal format is the value "0000000123" and the external "123".
    Hope that helps
    Regards
    Adios

  • Adding leading zeros before data loaded into DSO

    Hi
    In below PROD_ID... In some ID leading zeros are missing before data loaded into BI from SRM into PROD_ID. Data type is character. If leading zeros are missing then data activation of DSO is failed due to missing zeros and have to manually add them in PSA table. I want to add leading zeros if they're missing before data loaded into DSO.... total character length is 40.. so e.g. if character is 1502 then there should be 36 zeros before it and if character is 265721 then there should be 34 zeros. Only two type of character is coming either length is 4 or 6 so there will be always need to 34 or 36 zeros in front of them if zeros are missing.
    Can we use CONVERSION_EXIT_ALPHPA_INPUT functional module ? As this is char so I'm not sure how to use in that case.. Do need to convert it first integer?
    Can someone please give me sample code? We're using BW 3.5 data flow to load data into DSO.... please give sample code and where need to write code either in rule type or in start routine...

    Hi,
    Can you check at info object level, what kind of conversion routine it used by.
    Use T code - RSD1, enter your info object and display it.
    Even at data source level also you can see external/internal format what it maintained.
    if your info object was using ALPHA conversion then it will have leading 0s automatically.
    Can you check from source how its coming, check at RSA3.
    if your receiving this issue for records only then you need to check those records.
    Thanks

  • Suppressing Leading Zero in Date

    We are currently having a problem when running a query in BEX.  The date which displays as MM/DD/YYYY is suddenly displaying with the leading zero in the month and day supressed, for example "3/5/2006" instead of "03/05/2006".  This is interfering with macros in our workbook.  We recently implemented support packs but don't know if this is related.  Does anyone know how to fix this?  When running the same query from the Query Designer the dates display correctly, without the leading zeros suppressed.

    Hi adadms,
    Plz check ur system settings.
    Go to control panel : regional options-Date
      check with short date format.
    it may be d/m/yy.
    Thanks,
    sekhar.

  • Any way to not get leading zeros in dates?

    When displaying a date or time, I'm always getting leading zeros. Is there a simple way to not have them?
    For example:
    SELECT TO_CHAR(SYSDATE,'HH:MI PM') FROM dual;
    Will show 02:07 PM. I'd like it just to be 2:07 PM
    The flip side, that I don't want to see would be not having the zeros in minutes... I don't want 2:7 PM.

    I don't know if there's a better way...
    SELECT decode(substr(TO_CHAR(SYSDATE,'HH:MI PM'), 1,1), '0' ,substr(TO_CHAR(SYSDATE,'HH:MI PM'), 2) , TO_CHAR(SYSDATE,'HH:MI PM')) FROM dual;
    thanks,
    Narayan

  • Adding leading zeros to the display data

    hi folks,
    I have the character variable of size 9, if I get the value of the variable less than 9, I need to add leading zeros to it accordingly before displaying the numeric value stored in it. I tried to use the 'SHIFT' command for that it did not work out.
    here is the code..
             data: len type I,
                   amount type C,
                   addspace len type I.
              len = strlen( amount ).
              write: ' the length of the string',len.
               if ( len < 9 ).
               addspace = 9 - len.
               write: addspace.
    SHIFT amount BY addspace Places LEFT.
    Thanks in advance.

    Hi Santhosh,
    All the suggestions here will work. Make sure that your number is on the right justified to your character field. Here is an example.
    DATA: v_char09_left_justified(09)  TYPE c,
          v_char09_right_justified(09) TYPE c,
          v_numc09(09)                 TYPE n.
    START-OF-SELECTION.
    *-- in case the value is left justified in the field
      v_char09_left_justified = '9        '.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                input  = v_char09_left_justified
           IMPORTING
                output = v_char09_left_justified.
      WRITE:/ 'V_CHAR09_LEFT_JUSTIFIED from FM =', v_char09_left_justified.
      v_numc09 = v_char09_left_justified.
      WRITE:/ 'V_NUMC09 =', v_numc09.
    *-- in case the value is right justified in the field
      v_char09_right_justified = '        9'.
      SHIFT v_char09_right_justified LEFT DELETING LEADING space.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                input  = v_char09_right_justified
           IMPORTING
                output = v_char09_right_justified.
    WRITE:/ 'V_CHAR09_RIGHT_JUSTIFIED from FM =', v_char09_right_justified.
      v_numc09 = v_char09_right_justified.
      WRITE:/ 'V_NUMC09 =', v_numc09.

  • Downloading data from internal table to xls file leading zeros are not disp

    Hai abap gurus,
    when i am downloading data from internal table to excle file. some field values in a column are with leading zeros and some others dont have leading zeros.but in the output it is showing without leading zeros. then how to get with exact values.
    Ex:
    <b>ECC Code.</b>
    045234
      88567
    098456 
    but output is giving like this:
    45234
    88567
    98456
    how to get the actual values.....
    plz help me in this matter.

    Dear Kiran,
    Those field in the internal table having Leading Zeroes, make those fields' datatype as character.
    Then use the function module to download the content of the internal table to the excel file.
    Regards,
    Abir
    Don't forget to Reward Points  *

  • Leading Zeros Missing - When exporting data from ALV grid display to Excel

    Hi,
    Am exporting the data from ALV GRID DISPLAY to Excel sheet using standard toolbar icon 'Local file'
    the leading zeros displayed in the ALV output is missing in the EXCEL sheet.
    (eg)  in ALV o/p - 0029. 
            in Excel - Only 29 is appearing.
    As per the requiement i have to show the leading zeros in excel also.
    Pls help on this issue.
    Thanks in advance..

    Hi ,
      Please set the property  :
      wa_fieldcat-lzero = 'X' .
    when you are creating field catalog for display alv data .
    your prob will solved .
    Regards ,
    Nilesh Jain

  • Leading zeroes when loading data

    Hi ,
    I have infobject 0gl_account being used in production . I am now using it in a custom ods also.
    however , when i load data into the ods , GL account field gets loaded with leading zeroes.
    when i load master data to 0gl_account, there are no leading zeroes . My ODS activation gives
    an error saying NO SID exists for gl acct 000999999 , whereas gl acct 999999 exists in the
    master data.
    I can change settings of 0gl_account as it is already being used in production . is there
    a way to resolve this without creating a custom infoobject .
    pls guide
    thanks

    Hi,
    this sounds very strange, because normally the master data should come with leading zeroes. Additionally the conversion exit ALPHA is switched on for infoobject 0gl_account. Make sure that everything is set up correctly and your master data gets loaded correctly.
    regards
    Siggi

  • Leading zeros from Adobe form web service data connection

    I created a web service for BAPI_PRODORD_GET_DETAIL and used it as a data connection in an Adobe form. When executing the connection using request parameters of:
    Number = [Production Order #]
    OrderObjects.Operations = 'X'
    no production orders are found.
    I debugged and discovered the BAPI only found production orders when the Number importing parameter contained padded leading zeros. After searching the forums, I suspect (1) I have the wrong field type and / or pattern for the production order number input field or (2) SAP Note 1050826 may apply.
    Does anyone have suggestions on which field types and patterns to use? I have tried each of Text, Numeric, and Decimal. When using Numeric, I set the data format to Float instead of Integer. I tried data patterns such as: num , the data displays with leading zeros but does not pass to the BAPI with them.
    I was also thinking a Formcalc or Javascript may be the solution.
    Livecycle version: 8.1.2
    Component SAP_APPL: 603 (for SAP note relevancy)
    Thank you,
    --- Scott

    Hello,
    maybe it would be the fastest approach here to work with the value as a string and check the length of the "string" and if needed add some leading zeros. You may try some validations, so the value entered by the user is denied if not in the respective format.
    For a smooth start with scripting start here:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Regards, Otto

  • BPC 7.5 NW: Master Data with leading zeros

    In BPC 7.5 NW, is it still an issue to have Master data with leading zeros?
    In other words, is it still not advisable to have leading zeros in the Master data.
    Let me know your views.
    Thanks.

    I was also having the same issue almost in the same version.
    Other than what you mentioned, the master data was also jumbling up like 0120, 0130, 0145, were set up as 120, 145, 130....
    The workaround that we took was to put a leading alphabet, when the data comes into BPC.
    Try doing that, it will surely help.
    Hope this helps.
    Thanks.
    Anand

  • ** Please help urgently  ** Budget upload field with leading zeros

    We need to load a characteristic that has leading zeros.  For example 0000350.  When saving down to CSV, we lose the leading zeros (0000) so that only 350 is loaded into BW.  Saving the codes as 'text' in excel does not seem to help.
    We cannot therefore see the name for any of these codes when refreshing the workbook in BW.
    Could some please urgently tell us the correct method to save the file for loading into the BW infopackage, with all zeros intact ?
    Regards, Frederick

    Hi Frederick,
    Just some additional thoughts,
    assuming field A1 in Ecel contains 350 and you want to create a string with 8 digits, you could use formula '=text(A1;"00000000")' in an empty column and copy it back to column A. Then 00000350 should be provided in A1. This can be saved in a normal .csv file and be opened with a text editor (e.g. notepad) in order to check content.
    If you don't want to manipulate Excel data, transformation to a field with leading zeros can be easily be processed with a routine in transfer rules.
    Regards
    Joe

  • Truncating leading zeros for the data

    hi ,
      I am doing a conversion project from oracle source system(DB2) to BI system. I have a situation here:
      I am extracting material numbers from source system(DB2) into a ZXXXX characteristic and in the transfer structure i checked the conversion as well and for infoobject ZXXXX, i am using ALPHA conversion. but the data i get is truncating material numbers. For example, 050302 is coming as 50302 and truncating leading zero. I am not sure what needs to be done here.
    Please advise..
    Thanks in advance...

    Hi J Dorson,
    This is the expected bahaviour if your InfoObject is configured to have ALPHA conversion. If the zero's in front of the material number is needed, then turn-off ALPHA conversion in your InfoObject (e.g. by removing the conversion exit).

  • Leading zero being truncated on IRECORDSET return data

    I am using EP6 SP14.  I have a RFC call from the portal to R/3 that brings back a table (availresult).  One of the elements in the table is the UPC code.  When I run the bapi using SE37 in R/3 the UPC code has a leading zero(s).  However, when the iview displays the UPC code the leading zero(s) are truncated.  The data is processed as type IRECORDSET. All the other data on the iview is correct just the UPC code is truncating the leading zero(s). 
    Here's a sampling of my code.
    IRecordSet availResult = (IRecordSet)output.get("AVAIL_RESULT");
    lvecAvailResColNm.add(1,"EAN_UPC");
    int counter = 0;
    if(!availResult.isAfterLast()){
         availResult.beforeFirst();
         while(availResult.next()){
    lvedAvailResDataRecord = new Vector();
    lvedAvailResDataRecord.add(1,availResult.getString("EAN_UPC"));
    lvecAvailResData.add(counter++, lvedAvailResDataRecord);
    The availResult.getString("EAN_UPC")); comes back with a UPC code with the leading zeroes truncated.
    Any suggestions would be greatly appreciated.
    Thanks
    Angie.

    I'm having the exact same problem with UPC codes being returned by an RFC, did you ever find a solution?

Maybe you are looking for

  • How do I find out the name of my wireless chipset/interface?

    I'm doing a install of Arch and I need to setup my WLAN. So the wiki says: "After finishing the rest of this installation and rebooting, you can connect to the network with wifi-menu interface_name (where interface_name is the interface of your wirel

  • Additional field in report S_ALR_87011990 - Asset History Sheet

    Hi This is with reference to report S_ALR_87011990 - Asset History Sheet . I want to add quantity, location etc in this report. can anybody guide me how to add these additional field in this report as in configuration no such option available. Regard

  • Running FCP HD 4 on Intel Mac?

    Hello Not sure where I should post this.... I recently acquired FCP HD 4 (retail) for a screamin' deal. I was hoping it would run on my Mac Pro. It installed fine but when I try to open it, I get configuration error with hardware/software is missing

  • CS5 Booklet printing

    I have just printed 24 pages. It didn't do what I wanted. How do I print the other side? I wanted to send six sheets through then turn them over and print the remaining spreads imposed on the back. Can't figure out how to do this. Thanks in advance.

  • List of new/updated/fixed features in 1.1.2?

    Hi all, Is there a website that list all the updates specifics of the 1.1.2 release? I mean what should I be expecting? Thanks,