Data Type NUMC from R3 to BW

Hi Expertts,
The datatype NUMC holding a value 00000 in R3 becomes
SPACE or NULL by the time it reaches to PSA.  Is there
a way to prevent this from happening.  I want the value
intact when and the same when it reaches the PSA up to
the cube.
Thanks for your reply.
Best regards,
Rose

hi Rose,
try to use 'domain' in r/3 without 'convers. routine' = ALHPA if it's your customized extraction.
you can double click the field used in r/3 and then double click 'domain'.
or check if remove ALPHA from conversion routine in bw infoobject used to map to that field.
hope this helps.

Similar Messages

  • Why is there a data type NUMC?

    Hi ABAP masters,
    working in database support for several years I've very often seen the problems that arise from the awkward data type NUMC.
    A numeric type stored as characters.
    What I always wondered is: what is this data type really good for?
    The leading zero output display alone is hardly a valid reason to waste storage and complicate the usage of the data of that type.
    I cannot imagine any use for this data type that wouldn't be better done by using integer types.
    So, if you know what the reasoning behind this data type is, please let me know.
    thanks and best regards,
    Lars

    NUMC data type can be used to maintain positive numbers with leading Zeros
    Most of SAP's important numbers like Sales Order numbers, Customer numbers, Delivery documents,
    Material numbers, Sales Org, Division, Company Codes, Distribution Channel are CHARs only
    But if their Data is containing only digits, SAP Transactions will automatically add Leading zeros for them and store in the database as Raw data.
    If those SAP numbers contains at least one non-digit character, then leading zeros will not be added.
    Example: if 54 is assigned to BUKRS it will be stored in DB as 0054
                   if 5A is assigned to BUKRS it will be stored in DB as 5A only
    Leading zero concept is very useful for Date and Time calculations.
    Month, Day, hours etc., must be declared as NUMC for better calculations
    Example:
        PARAMETERS p_year TYPE I.          "instead of Integer we can use type N LENGTH 4 also here
        DATA  v_month TYPE N LENGTH 2.
        DATA  v_day     TYPE N LENGTH 2.
        DATA  v_year    TYPE N LENGTH 4.       then calculations will be easy
        DATA  FDATE   TYPE D.
        v_year = p_year.
        v_day  = 1.              "1st day of Month
        DO 12 TIMES.
            v_month = sy-index.           "Leading zero will be added automatically
            CONCATENATE v_year  v_month  v_day  INTO  FDATE.
            WRITE / FDATE.                "Every month 1st day of selected year
        ENDDO. 
    Example:  Customer number contains uneven digits.  It should be converted to a 10 digit number
                     with "C" as 1st Character.  Logic will be
                     PARAMETERS custno TYPE I.               
                     DATA  v1                     TYPE  N  LENGTH  10.
                     DATA  str_custno         TYPE C LENGTH 11.
                     v1 = custno.       "customer number will be converted to 10 digit number
                     CONCATENATE 'C'  V1   INTO  str_custno.
    please correct me, if I am wrong
    Thanks and Regards
    Nagababu Tubati

  • How to store and retrieve blob data type in/from oracle database using JSP

    how to store and retrieve blob data type in/from oracle database using JSP and not using servlet
    thanks

    JSP? Why?
    start here: [http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html]

  • Info Object: Change of Data Type (NUMC to CHAR)

    We have a scenario wherein one of the Info objects is defined currently as NUMC. Due to the change in the Source system, the info object is now defined with data type as CHAR. The info object in consideration is the "Cost element".
    As the current info object contains data, it will not be possible to change the data type from NUM to CHAR.
    Is there any pre-defined way of doing this data type change without loss of data (in the info object as well as the info cube(s) where the info object is used)?
    Regards
    Bala

    Hi Balakrishana,
       Try this:
    Insted of changing the definition of infoobject(NUMC to CHAR), why cant you change the data itself from CHAR to NUMC...?? If length is same.
       You can write a simple routine in transfer rules and you can convert.
    Hope it Helps
    Srini

  • Fact table data type changed from int to nvarchar -- rebuild on cube fails

     I change one of my data types in the Fact table from INT to Nvarchar... When I look at the properties it appears
    correct but when I try to Process it fails still thinking it's data type INT.
     How can the DSV be refreshed( I did try REFRESH  and it noticied the change to field) to reflect new nvarchar data type without
    having to rebuild entire Cube.
    SSAS 2005
     Thanks.

    Did you try to view the code on the Data Source view and cube that it is reflecting the correct data type on both places? if not you can change there and save it.
    prajwal kumar potula

  • DATE type returned from function does not return the time component

    Hi,
    I'm dealing with a strange problem. I have a PL/SQL function (running on Oracle 8.1.4.7) which returns a DATE value. Like we all know the DATE datatype includes a date component and a time component.
    The function I used for testing is like this:
    FUNCTION ReturnDate return Date is
    dReturn Date;
    Begin
    select sysdate into dReturn from dual;
    return dReturn;
    end ReturnDate;
    When I call this function from .NET using ODP.NET the date value I get does not have the time component included only the day-month-year components.
    This is a code-snippet that calls the function :
    command.CommandText="Schema.ReturnDate";
    command.CommandType=CommandType.StoredProcedure;
    command.Parameters.Add("Return_Value",
    OracleDbType.Date,0,ParameterDirection.ReturnValue);
    command.ExecuteNonQuery();
    I use the OracleDbType.Date type which I think is the most logical choice, because the type in the Database is after all DATE.
    However this does not include the time componet. But if I change the OracleDbType.Date to OracleDbType.TimeStamp I get the time component. I'm not happy with this "hack" because I'm not sure what will happen when we upgrade our version of the Database to Oracle 9i which uses the new TimeStamp datatype.
    Is this a bug that the OracleDbType.Date does not include the time component??

    How do you examine the output Date value?
    If it is from the string, then the time components will
    not show because the NLS_DATE format in the client
    machine does not contain the time components.
    In American, the Date format is 'DD-MON-RR' by default whereas, the TimeStamp format is 'DD-MON-RR HH.MI.SSXFF AM' by default.
    Can you take a look at the time components from the OracleDate by accessing the time properties, eg. OracleDate.Hour, OracleDate.Minute..etc to see if the time values are there?
    Thanks
    Martha

  • Extracting data of data type 'real' from the sql server database

    Hi,
    In my job, my source is a sql server database.
    I am connecting to the source sql server database using ODBC (sqlserver driver) in the datastore.
    In one of my source tables i have a field of data type real.If one of the value is 3.45678 , data services brings it in as 3.456780, which is OK, but if the real value is 4.7 in source, data services brings it  as 4.699997. I want it to be brought in as 4.700000 and not as 4.699997(i.e it is expanding upto 6 digits after the decimal point).
    Is this a default behavior of how data services reads the 'real' data types or is it because of how the ODBC sql server driver reads the data ?
    Is the above problem connected to an option in the DS.config file called
    LAZY_DECIMAL_CONVERSION which is set as true in our file.Should i set as false and will it solve this problem?
    Thanks in Advance.

    I tried reproducing your case, I read a value with real datatype from sql server DB. For me the values are coming fine, 4.7 is read as 4.700000 or 4.528 as 4.528000. I have also checked the value of LAZY_DECIMAL_CONVERSION, it is true. So I dont think it is a problem with that being set to true. Try something out with the Column properties in Query transform.
    I am using DS 3.2/ SQLSERVER 2008.
    Edited by: Lakhan Lalla on Oct 31, 2011 12:04 PM

  • Can i load data type names from Excel worksheet ?

    HI,
    I have like 100+ fields in my excel worksheet. Is there any way to load these in XI while creating data types rather than typing each of them ?
    thks

    hi, you cannot get de DT, but you can get the MT developing a SAP module and call it from file sender adaptse.
    see this blog that will hekp you to understand better.
    i develope my own read xls file module as generic. it return
    <ROW>
    .....<col1>
    ....<col2>
    <ROW>
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    thanks
    rodrigo

  • Data Type Mapping from SQL server to Oracle

    I am using Oracle 12c with heterogenous services connecting to SQL server DB. Some of the columns in the SQL server SB are defined as 'nvarchar(max)'. These are coming over to Oracle as 'long' type columns. I would like these to be 'varchar2' types in Oracle so I do not have any of the restrictions related to 'long' type fields when using. I can create a view in SQlServer to convert the data type ie. nvarchar(100). What is the highest value I can use to make the data show in Oracle as varchar? BTW  I tried nvarchar(4000) but that still showed as long. I tried nvarchar(1000), and that did show as varchar.

    The maximum value for a nvarchar2 in Oracle is 2000. The mapping -if the remote column is mapped to an Oracle varchar/nvarchar- depends on the data type returned by the ODBC driver. When the driver returns SQL_Varchar, then the maximum precision is 4000 and when it will map it to SQL_WVarchar then it is 2000.
    As your Oracle database uses AL32UTF8 as character set you will get the nvarchar(max) mapped to Oracle longs as the content of your SQL Server nvarchar is stored using UCS2 character set which is covered by the Oracle database charset UTF8. So it shouldn't really matter if the returned string is mapped to an Oracle varchar or nvarchar.

  • Unsupported Data Type (migration from Access 2000)

    Hi,
    I'm trying to convert an MS Access 2000 database, which contains a table with 2 'Binary' data type columns.
    The OMWB does not seem to know this Data Type, and the GUI does not allow me to add it. Is there any other way to add this Data Type ??
    I should somehow get it to convert to Oracle RAW.
    Generating the Oracle Model with the 'Binary' type in the xml file generates errors.
    thanx in advance,
    esther

    Log a ticket with support at otn.oracle.com/migration and give details of this. Include a test case to ascertain whether it is a bug or not.
    B

  • Data type conversion from packed to numeric

    Hi Experts,
    i have a question on data type conversion. My requirement is:
    i have fields of type packed decimal in my internal table itab. I need to convert the values of packed decimal fields in itab to numeric type.
    Example:
    Data: begin of itab occurs 0,
                ebeln like ekko-ebeln,
                ebelp like ekpo-ebelp,
                menge(15) type p decimals 2,
                netpr(15) type p decimals 2,
              end of itab. 
    if itab-menge has a value of 2.00, i need to convert that value to '         200'.  Right justified.
    if itab-netpr has a value of 1,234.56, i need to convert that to '         123456'.
    The above internal table itab is passed to the Function module GUI_DOWNLOAD and the itab data is downloaded to a text file.
    Please let me know how to acheive this objective.

    Hi ,
    You can use
    SPLIT at '.' into v1 v2
    concatenate v1 v2 into vv1.
    REPORT ZDN_TEST_001 .
    data: lv_var1(15) type p decimals 2 value '123.00'.
    data: lv_var2(15) type p decimals 5 value '123.12121'.
    data: lv_varc1(15) type c.
    data: lv_varc2(15) type c.
    data: lv_varc1d(2) type c.
    data: lv_varc2d(5) type c.
    data: lv_varc11(15) type c.
    data: lv_varc21(15) type c.
    write:/ lv_var1.
    write:/ lv_var2.
    *1)write & REPLACE.
    write lv_var1 to lv_varc1.
    write lv_var2 to lv_varc2.
    REPLACE '.' WITH SPACE INTO lv_varc1.
                 CONDENSE lv_varc1 NO-GAPS.
    REPLACE '.' WITH SPACE INTO lv_varc2.
                 CONDENSE lv_varc2 NO-GAPS.
    write:/ lv_varc1.
    write:/ lv_varc2.
    *2)split & concatinate
    write lv_var1 to lv_varc1.
    write lv_var2 to lv_varc2.
    split lv_varc1 at '.' into lv_varc1 lv_varc1d.
    concatenate lv_varc1 lv_varc1d into lv_varc11.
    split lv_varc2 at '.' into lv_varc2 lv_varc2d.
    concatenate lv_varc2 lv_varc2d into lv_varc21.
    write:/ lv_varc11.
    write:/ lv_varc21.

  • Dynamic Data Type declaration from Parameter value

    Hi,
      I have a silly question..
    Is it possible to dynamically declare a variable based on the contents of a parameter...like:
    Tables: RSDUPD.
    Parameter: p_Daty like RSDUPD-DATU
    Data: l_last_day like (p_Daty)
    Thanks

    ok....thanks for the answer but its time to make the question harder. 
    I have the following code:
    DATA: it_query_results TYPE REF TO data.
    PARAMETER: prxy_cls(30).
    CREATE DATA it_query_results TYPE STANDARD TABLE OF (prxy_cls).
    ASSIGN it_query_results->* TO <l_it_query_result>.
    ....I do all sorts of processing with <l_it_query_result>.....then
    CALL METHOD o_query_result->execute_asynchronous
        EXPORTING
           output = <l_it_query_result>.
    only problem is method execute_asynchronous doesnt expect a type ref and only expects table type ZBWCOPA9030V00_QUERY_RESULT1...which is what I am entering in the parameter prxy_cls..
    need help badly..
    thanks

  • Data type conversion from bigint to varchar

    Hi all,
    I need an advice from experts around here..what is the best and quickest option to do this task?
    I have  a table  with 10 columns - size of table is nearly 750gb with 25 partitions/Filegroups with (atleast 150 millions row in each partitions roughly)  Index size is around 150gb
    I have a task to convert one of column from  bigint to varchar
    could you please suggest me best possible advice.
    Thanks

    Can be very problematic... If the column is a part of the index you need to drop index first, issue ALTER TABLE to change the datatype and then create an index again,
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Data type NUMC

    Expets,
    Ineed to create Info Object with numc[30,2]. can i take numc with lenght 32 or 33. does that be in a correct format.does Dot appear when i take numc.
    because if i take it as a KF numc have lenght 8.
    Thanks

    Dear KV,
    If you dont want you can hide the decimal places.
    Double click on that Key Fig > Change > Additional Properties tab > Decimal Places = 0.
    Observe the other options too.
    You can hide the decimal values at the reporting level too.
    Regards,
    Ramkumar.

  • How to supress Zero in NUMC data type which contains some values as Char.

    Hello Friends,
    Some custom fields have been added in table BUT000 ,
    out of which one field has data type as NUMC..
    When i see some of the entries in the that field, it has values like '0000000000000000ENT'.
    I want to supress Leading zeros of that.
    i tried using
    1 ) FM CONVERSION_EXIT_ALPHA_OUTPUT &
              CONVERSION_EXIT_ALPHA_INPUT .
    2 ) Also tried coding  like this:
    data:var1 type ZBU_00LV36AT,           "this field has data type NUMC of length 40
           var2(40) type N.
    var1 ='00000000ENTRY'.
    VAR2 = VAR1.
    SHIFT VAR2 LEFT DELETING LEADING '0'.
    Nothing works ...gives output as blank.
    Is there any solution for it....
    Any valuable asnwer will be rewarded...
    Regards,
    Mayank

    Hi Marcin,
    I have tried i think problem it solved with your solution.
    Let me try for some more cases if it works fine i will get back to forum.
    Regards,
    Mayank

Maybe you are looking for

  • Issue with MIR7(BADI or User exit needed for stop SO data updating)

    Hi, While using MIR7 to post invoice, corresponding sales order item data is changed ,such as 'Billing date'. We don't want this happen. Please let me know if there is any BADI or Uer exit for achieving this. Thanks in advance.. Regards..

  • Insurance document at the time of GR?

    Dear SAPIENTS, Please suggest for this scenario. Goods reciept has been done for the material. Material found in damage condition.Now I want to claim insurance. At the time of goods reciept what is to be done. I want an insurance document is to be ge

  • Why can't I restore a file from Time Machine?

    I purchased a new Macbook Pro a month ago. I migrated all my stuff from my previous Macbook that was running Maverick. All went well. However, I was looking for a particular file. Apparently I had removed it from my old Mac at some point, but I found

  • Why laptop Updates everytime computer turns on

    Everytime I turn on my LPtop it pops up on the screen do not turn off your computer updating 1 of 30 even if I have used it 30 minutes earlier. How do I stop this?

  • Spry collapsible wont expand down IE

    I made a website recently, and I was extremely excited about using the spry collapsible panel for it. It worked great in everything EXCEPT for Internet Explorer. Here is the website: http://cogginchurch.org/missions.html Can someone help me? Please