Converting DECIMAL field in R/3 into CHAR field on BW

Hi all,
   We have a field in R/3 which is defined as :
      Data Type : Decimal
      Length      : 6
      Decimal Places : 2
     I want to receive it into CHAR field on BW side.
     How could I convert it, please. What should be length of this CHAR field in BW?
Thanks in advance.

Hi Venkat,
Create a character infoobject of length 18. Include the infoobject in your data target and map the key figure value to the character infoobject by writting the following update routine for the character infoobject.
Result = comm_structure-xxxxxx (xxxxxx = key figure infoobject you want to map for example say comm_structure-net_price if key figure is 0net_price)
Please assign points if it helps,
Neelima
Message was edited by:
        Neelima Ravipati

Similar Messages

  • Converting from NUMC field in R/3 into  CHAR field on BW

    Hi all,
       We have a field (COST) which is defined as NUMC 6 with DECIMAL 2 like12.50 in R/3. I want to receive it into CHAR field on BW side.
      What is the simplest way to convert it, please. What should be the CHAR length in BW?
    Thanks in advance.
    Regards.

    Hi Venkat,
    I don't have any sample code for this. You will create one local variable in the trasnfer routine. Accept the NUMC value in that local variable and then assign that local variable to the final destination i.e. to CHAR InfoObject.
    PB

  • ..how do you group fields together in xml into one field? (sql:- address_line1||', '||address_line2||', '|| )

    afternoon Gurus.
    I take it by the errror messages produced I'm not able to do this..
    select ....
    address_line1||', '|| address_line2||', '|| address_line3||', '|| city|| Supplier_Address
    from...
    ..in my XML Publisher xsl Data Template file..
    Caused by: org.xml.sax.SAXParseException: <Line 13, Column 20>: XML-20201: (Fatal Error) Expected name instead of |.
    So how can I acheive putting several fields into one like you can in SQL?
    THanksForLooking..
    Al

    Untested, but try the following:
    SELECT DISTINCT
           fnd.CREATION_DATE
          ,fnd.user_name
          ,fnd.start_date
          ,per2.last_updated_by
          ,per2.last_update_date
          ,per2.employee_number
          ,per2.EMAIL_ADDRESS
          ,per2.full_name
          ,fnd.LAST_LOGON_DATE
    FROM fnd_user fnd
    where fnd.End_Date is null
    left outer join per_people_f per2 on (     fnd.employee_id              = per2.person_id
                                           and SUBSTR(per2.LAST_NAME, 2, 6) not like 'some characters'
                                           and per2.EMAIL_ADDRESS           LIKE '%priddle%' )
    ORDER BY 2 ASC;Investigate multiple outer joins using the LEFT OUTER JOIN syntax
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/queries006.htm#SQLRF52354

  • Putting 7 table fields into one field with line breakes included!

    Hi People
    I Need to assamble 7 fields from a view, into one field with some line brakes in Reports, how do I do that???
    E.g :
    Field names : Name, Collection1, StreetName, StreetNo, ExtraCity, ZipCode, City
    Should be put into one field called address and be displayed like this
    Name
    Collection1
    StreetName StreetNo
    ExtraCity
    ZipCode City
    I hope someone can help me *S
    /Stig :-)

    The following should give you some idea. It might depend if you run your report on Windows or Unix.
    select
    Name        || decode(Name, null, null, chr(13)||chr(10))||
    Collection1 || decode(Collection1, null, null, chr(13)||chr(10))||
    StreetName  || decode(StreetName, null, null, ' '||StreetNo||chr(13)||chr(10))||
    ExtraCity   || decode(ExtraCity, null, null, chr(13)||chr(10))||
    ZipCode     || decode(ZipCode, null, null, ' '||City )
    from MyView

  • Select Statement - from Decimal Fields into Char

    Hi
    I would like to run a SELECT from table T007A into an internal table which is of type TXW_TAXCOD.
    T007A has a decimal field in it ( TOLERANCE ) which is of data type DEC, length of 3 and 1 decimal place.
    This is the code in the standard program --
    select * from t007a
             into corresponding fields of table t_txw_taxcod up to 20 rows.
    I have to make the TOLERANCE field value in T007A land up in a character field in the structure, I have declared the TOLERANCE field in structure TXW_TAXCOD as a character field of type 5 (infact tried CHAR4 and CHAR8 etc etc) but I face a runtime error
    I cannot change the code in standard program, can you please tell me what other data type can I use to make this select work

    If LTXW0F02 is your program and form extract_txw_taxcod
    then
      select * from t007a
               into corresponding fields of table t_txw_taxcod.
      sort t_txw_taxcod.
      loop at t_txw_taxcod.
        select single * from t007s
                        where spras = sy-langu
                          and kalsm = t_txw_taxcod-kalsm
                          and mwskz = t_txw_taxcod-mwskz.
        if sy-subrc = 0.
          move-corresponding t007s to t_txw_taxcod.
        endif.
        call function 'TXW_SEGMENT_RECORD_EXPORT'
          exporting
            data_record = t_txw_taxcod.
      endloop.
    Within the function module TXW_SEGMENY_RECORD_EXPORT have implicit enhancements try to use then and make one more select to table t007s using key KALSM and fill the char field TOLERENCE
    select tolerence from t007a into v_tolerence
              where kalsm = t_txw_taxcod-kalsm.
       write: v_tolerence to t_txw-taxcod-tolerence.

  • Converting Normal field into amount field

    Hello Gurus,
    I need urgent help.
    I want to conver the Normal field into Amount filed.
    DATA : AMOUNT(13),
    DATA : WRBTR LIKE BSEG-WRBTR.
    So I want TO Convert Normal field into amount field.
    This is urgent. please help me.
    Thanks in advance.
    Best Regards,
    zubera

    Hi,
    Use FM HRCM_STRING_TO_AMOUNT_CONVERT
    pass the char(amount) and decimal separator, thousand separator.
    you get the char converted to amount/currency
    Regards,
    Satish

  • Convert quantity field to char field

    Hi folks ,
    i have a requirement where i need to convert quantity field value to char field value so as to send in idoc.
    plz help me .its urgent
    regards,
    chandra

    data: f1(17).
    f1 = qauntity_field.
    lenth of the field f1 is the same or gr8 than quan_field also add one more place for decimal .
    ex-
    ur quan_filed like 13 and 3 decimal place than ur char field must be
    13 + 3 + 1(for decimal) = 17

  • How to convert the text field into currency field

    Hi,
    I have an requirement to converting the text field into currency.
    If I convert directly it gives dump.
    If I convert this to Numeric means it takes the decimals also as whole value.
    Is there any FM to convert the text field into Currency field.
    Please advice me.
    Thanks in advance.

    Hi,
    I am on an SRM sytem, which unfortunately does not have th FM: PSSV_TEXT_INTO_FIELD_CURRENCY.
    But I also need to transfer a string value like '12,99' to a field with type curr.
    Can i Do that manually, or is there another FM?
    I have already checked code with write to or pack/unpack.
    But without success yet.
    Something like this:
    DATA: g_str(11) type c.
    DATA: g_p type p.
    WRITE '12,99' TO g_str CURRENCY 'EUR'.
    is no use for me. Finally I need to move g_str to my curr-field, which causes st22.
    also: PACK g_str to <curr-field or g_p> dumps.
    Help appreciated.
    regards, matthias

  • BI for NW04S: Concatenating multiple chars into one field in BI query

    Hi,
      We have BI for NW04S. We have a requirement of concatenating multiple characteristics into one field in the BI report. This single field should have the usual drill down and other olap functionalities that a single characteristic usually enjoy in a BI report.
      In BI for NW04 (Not the S) this probably can be done using the table interface in WAD. However in BI7 WAD functionality are through Java.
      Also can this be done using Query designer alone.
      Can anybody help?
      Thanks

    Hi,
      Can you please elaborate on your Query designer option. You can always have a variable and in the user exit can write code, but what is not clear that
    1> How will you acheive the contatenation done for every row of the report in the BEX user exit variable( since it's called during the beginning of the query execution and not for all rows of the report
    2> How do you transfer the char variable into a char field in the report.
    Please elaborate .
    Thanks

  • Convertion To type x  to char field in unicode system......

    Hi all
    please refer the following code .i need to assign type xstructure to single char field where data are .........
    SRTFDHIGH =  xsrtfdhigh
    unicode system gives error to convertion
    DATA: BEGIN OF xsrtfdhigh,
              pernr LIKE pc2b0-pernr,
              restkey1(16) TYPE x VALUE 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF',
              restkey2(16) TYPE x VALUE 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF',
            END OF xsrtfdhigh.
       DATA: SRTFDHIGH LIKE PCL2-SRTFD VALUE                   
             '9999999999999999999999999999999999999999'.
    PCL2-SRTFD type char 40.
    pc2b0-pernr  type numc 8.
    is there any solution to convert this .....
    Edited by: Vikram  shirole on Feb 23, 2008 8:52 AM
    Edited by: Vikram  shirole on Feb 23, 2008 8:54 AM

    Read first some documentation like [Character String Processing|http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554d9b3dc11d5993800508b6b8b11/frameset.htm], usually hexadecimal fields contain control characters (line feed, carriage return, tabulations and the like), so use constants of class [CL_ABAP_CHAR_UTILITIES|http://help.sap.com/abapdocu_70/en/ABENCL_ABAP_CHAR_UTILITIES.htm].
    Regards,
    Raymond

  • How can i validate input number into a Field of  type char in oracle form?

    hi.....
    can any one help me.....please...!!!?!!
    How can i validate input number into a Field of type char in oracle form?

    i have tried doing that, but still the field except numbersthere was an error in that code. it should have been
    var_num:=to_number(var_char);however, it appears that you want the entry NOT to be a number. if this is the case then try
    begin
      if to_number(:block.item) = 0 then null; end if;
      message('The entry cannot be numeric');
      raise form_trigger_failure
    exception
      when value_error then
       /* this is where you put the code you want to be run when the
          entry is non-numeric */
    end;

  • Convert decimal to char type

    Hi all,
    How to convert decimal type length 3(e.g:25.0) to char type.......
    Thanks in advance

    hi,
       data : var_dec type p decimals 3,
              var_char(10).   
    <b>move var_dec to var_char.</b>
    else use FM
          CALL FUNCTION <b>'CEVA_CONVERT_FLOAT_TO_CHAR'</b>
               EXPORTING
                    FLOAT_IMP  = P_ORIGEN
                    FORMAT_IMP = CAMPO_FLOAT
               IMPORTING
                    CHAR_EXP   = C_DESTINO.
    Regards,
    Santosh

  • HowTo turn off automatic trim for char fields

    I have a CHAR(1) field in the database containing a space. This is mapped to a char field in an entity Bean, but the space will not be loaded. Instead it is automatically trimmed to '', which leads to an exception when converting the char into an Enumeration. Does anyone knows a solution or a work around to turn of this automatic trimming? I can't change the values, so this would not be a solution.
    Greetings,
    Oliver
    Edited by: user11932222 on 23.09.2009 01:48
    Edited by: user11932222 on 23.09.2009 01:49

    You can disable trim of CHAR fields using a SessionCustomizer and setting setShouldTrimStrings(false) on the Session's DatabaseLogin.
    http://www.eclipse.org/eclipselink/api/1.1.2/org/eclipse/persistence/sessions/DatabaseLogin.html#setShouldTrimStrings(boolean)
    There is not currently a JPA persistence.xml property for this, please log a bug for this.
    James : http://www.eclipselink.org

  • Function to convert PO quantity and cancelled quantity into Primary UOM

    Hello,
    I am looking for a function to convert PO quantity and cancelled quantity into its Primary UOM from the unit of measure the line order was placed.
    Thank you

    hi
    In case if you are already working in production remember that decimal places should not change. It will affect all previous data.
    For your problem best solution is make order unit as 1000. So that your problem will solve
    e.g. instead of 2.009 inr for 1 Unit use 2009 inr for 1000 unit.

  • Error Message (ORA-01722: invalid number) when add amount into Number field

    I am using VB.net, trying to insert data into a field called amt with Data Type 'Number'.
    my vb.net code is as follows
    Dim oradb As String = DatabaseConnectionString
    Dim AmountValue As Decimal = 123.45
    'get the connection
    Dim conn As New OracleConnection(oradb)
    'open the database connection
    conn.Open()
    'create oracle command
    Dim cmd As New OracleCommand("INSERT INTO TBL1 (AMT) VALUES (:AMT)", conn)
    cmd.CommandType = CommandType.Text
    cmd.Parameters.Add(":AMT", OracleDbType.Decimal, AmountValue, ParameterDirection.Input)
    'Execute
    cmd.ExecuteNonQuery()
    I got error message "ORA-01722: invalid number". Please help

    Did you also change the below line before inserting Integer 123:
    cmd.Parameters.Add(":AMT", OracleDbType.Decimal, AmountValue, ParameterDirection.Input)
    to
    cmd.Parameters.Add(":AMT", OracleDbType.Integer, AmountValue, ParameterDirection.Input)

Maybe you are looking for

  • Error while transporting ODS setting's.

    Hi Experts, I am trying to enable the "BeX Reporting" checkbox for one of the ODS's  in Development and then transport the change to QA.I have just enabled the Check Box and then activated the ODS,saved the changes in a request and then tried transpo

  • I can't update license for cue 3.2.1

    Hello I have unity express 3.2.1. I try to install cue-vm-license_25mbx_ccm_3.2.1.pkg. I get this error: cue-munich# software install upgrade url ftp://10.0.0.5/cue/cue-vm-license_25mbx_ccm_3.2.1.pkg username bla-la-la password 123 WARNING:: This com

  • Eventing from a PDK appln to a Webdynpro appln ! :(

    Hi, I would like to trigger an event in webdynpro and catch subscribe for it from a PDK application.. (And passing data b/w WD appln and a PDK appln ...) How can i acheive the same.. WDPortalEventing will work only across WD applns ! Is their any API

  • BAPI or FM for CHANGING Internal Order

    Hi all, I am looking for a BAPI or Function module for changing a End of Work field (DATE field) for that Internal Order.  Transaction for internal order KO02 Please suggest. Edited by: Anu on Jul 6, 2009 3:30 PM

  • BPC 7.5 Clarification on Installation Document

    In Page number 23 in SBOP_PC_75_NW_SP03_Install.pdf under step 10 It says. Define the .NET service user that is needed to log on to ApShell and run Server Manager by doing the following: Stop the IIS and SAP Planning and Consolidation instances using