Converting a dec field

I am storing output to a text file in application server . The internal table has a field of DEC type and hence it is throwing an error that it cannot be converted to a text file . It has to be of cahrater type data object . Any suggestion will be highly appreciated

Hi Sanjeev,
Before populating the internal table data to the file, pass on the DEC value to a string temporary variable and copy the value from this string temp variable to the actual file variable. And populate.
@ Moderators: This could be a basic question, but it seems to be that Sanjeev got confused with the logic and posted this thread. I've just cleared the doubt.
Regards,
-Syed.

Similar Messages

  • In PDF to Excel conversion dates like 03/12/15 convert to Dec 3rd 2015 not the correct date of Mar 12th 2015 whereas date 03/13/2015 converts correctly as March 13th 2015

    In PDF to Excel conversion dates like 03/12/15 convert to Dec 3rd 2015 not the correct date of Mar 12th 2015 whereas date 03/13/2015 converts correctly as March 13th 2015

    Hi DirTech,
    Are both of these dates in the same Excel file? If they're in different files, are you choosing the same language for OCR (optical character recognition)?
    If they are in the same PDF file, how was that PDF file created? Was it created from a third-party application (rather than an Adobe application)? If it was created by a third-party application, it could be that it wasn't written to spec, and that's why you're seeing some oddities in the PDF > Excel conversion.  (See Will Adobe ExportPDF convert both text and form... | Adobe Community.)
    Best,
    Sara

  • Error when converting a numeric field to XML

    Hi,
            When i run the Adobe intractive form,i am getting following exception
    "Error when converting a numeric field to XML"
    Anyone plz suggest
    Regards,
    vinoth

    Hi Vinoth Raja,
    For resolving the following exception
    "Error when converting a numeric field to XML"
    You have to follow the below link:-
    http://www.saptechies.com/error-when-converting-numeric-field-xml/
    May be it will help you
    Regards,
    Sushma Yadav

  • 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

  • "The even-numbered length of the DEC field I_DFZ_EX can lead to problems"

    Hi All,
    I am getting the following warning message while activating the PP datasources,
    2LIS_04_P_MATNR
    2LIS_04_P_ARBPL
    Warning Message: "The even-numbered length of the DEC field I_DFZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field I_DLZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field S_DFZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field S_DLZ_EX can lead to problems"
    Checked in SDN, but no answer.
    Need your expert solution, to resolve.
    With Regards,
    Sekhar

    Thank you Des, for immediate response.
    But i have already gone through the Note.
    As we are using ghe standard datasources, can you suggest which option should i use to resolve.
    Solution
    If the field is not manipulated in the customer exit or elsewhere, no
    processing is required.
    If you change the field, the following possible solutions are available:
    1. You can make sure that the number of the characters does not
    increase after the manipulation.
    2. If you can change the extract structure of the DataSource without
    affecting other scenarios (for example, if it was generated in
    transaction RSO2), you can increase the length of the DEC field (or
    CURR, QUAN) there to the next odd character (in the example above:
    from DEC 4 on DEC 5).
    3. If neither of these solutions are possible, you can use a customer
    append that contains a relevant DEC field (or CURR, QUAN) with the
    next highest odd length. This can be used for the result of the
    calculations. This means that you do not have to manipulate the
    previous field.
    With Regards,
    Sekhar

  • How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)

    Hello.
    How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)
    I have text field which has a databind to a date field. When I click on it, we can select the date, it is added on the format (dd,mm,yyyy). When I want to insert this date field to a database It doesnu2019t allow me to do it because it will only accept date field on the format (mm,dd,yyyy)
    I tried to store this format on a date variable and I get a message saying that is impossible to convert a string into a date.
    Regards,
    Jose

    Hi Jose,
    usually you format strings in c# like
    string.Format("{0:yyyyMMdd}", insertyourstring);
    in your case
    string.Format("{0:MM/dd/yyyy}", insertyourstring);
    [look here|http://idunno.org/archive/2004/14/01/122.aspx]
    there are more details
    if everything fails split the string with Mid()
    or ask me
    lg David

  • Any way to Convert CHAR(8)  field to QUAN(8)?

    Any way to Convert CHAR(8)  field to QUAN(8)?
    Thank-You.

    Hi
    The MOVE statament automatically converts the data format
    DATA: VAR_IN(8) TYPE C,
          VAR_OUT   TYPE P.
    MOVE VAR_IN TO VAR_OUT.
    It's important your char has only number and the point as separator of decimal part.
    Max

  • Converting a timestamp field from GMT to EST

    Hi
    I have to convert the timestamp field coming from the source from GMT to EST.
    CREATE TABLE X
    TS_FIELD TIMESTAMP(6)
    INSERT INTO X VALUES('07-JAN-13 02.00.06.597000 PM');
    INSERT INTO X VALUES('07-FEB-13 02.00.06.676000 PM');
    INSERT INTO X VALUES('07-MAR-13 12.36.14.260000 PM');
    INSERT INTO X VALUES('07-APR-13 12.36.56.713000 PM');
    INSERT INTO X VALUES('07-MAY-13 03.46.48.800000 AM');
    I need to convert the above timestamp field from GMT to EST in 24hour format.
    I tried it doing,but I am getting hours conflict with the day error.
    I have tried the below one and milliseconds being set to zero's
    select X,
    TO_timestamp(TO_CHAR(CAST(FROM_TZ(CAST(TO_DATE(TO_CHAR(X,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    ,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    AS TIMESTAMP),'GMT') AT TIME ZONE 'US/EASTERN' AS DATE),'YYYY-MM-DD HH24:MI:SS.SSSSS'),'YYYY-MM-DD HH24:MI:SS.SSSSS')
    FROM X
    Please help me in this regard.I am trying in parallel as well.
    Thanks in advance
    KVB

    Not clear what are you trying to achieve..Why are you casting as DATE?
    SQL>  select ts_field,
      2          cast(from_tz(ts_field,'GMT') AT TIME ZONE 'EST' as timestamp) t
      3   FROM X;
    TS_FIELD                                                                    T
    07-JAN-13 02.00.06.597000 PM                                                07-JAN-13 09.00.06.597000 AM
    07-FEB-13 02.00.06.676000 PM                                                07-FEB-13 09.00.06.676000 AM
    07-MAR-13 12.36.14.260000 PM                                                07-MAR-13 07.36.14.260000 AM
    07-APR-13 12.36.56.713000 PM                                                07-APR-13 07.36.56.713000 AM
    07-MAY-13 03.46.48.800000 AM                                                06-MAY-13 10.46.48.800000 PM

  • Error  The even-numbered length of the DEC field LC_SRV_DURATION can lead t

    Hi Guys,
    When I activate or generate Datasource '0CRM_SRV_PROCESS_H' it gives me following warning
    'The even-numbered length of the DEC field LC_SRV_DURATION can lead to problems'.
    Actually , the field LC_SRV_DURATION is type DEC and lenght 10,
    I know this is only waring but still it is not allowing me to activate.
    I have seen some threads regardin this , but none of them have solution .
    Can you please throw some light on this  ?
    Thanks
    Jimmy

    Hi jimmy,
    The reason for the error will be clear for you when you check the following link 
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21f2f2446011d189700000e8322d00/content.htm
    And check your table if you put the even number for the decimal field.
    With regards
    Chandru

  • GRR2- 4FM-RepPaint(put ABAP code for convert data in field)

    Hi,
    If somebody know how possible add ABAP code for convert data in some column-field of report (by RepWriter,UserExit,BADI)?
    Thanks a lot.

    Elaborate your question. Not clear ??

  • Need Help on How to Convert a Number Field to an Hour/Minute

    Post Author: syracuse2
    CA Forum: Crystal Reports
    I have a field that shows a duration, i.e. 125.  I would like to convert the number of 125 to 2hr and 5 min.  Any suggestions on how to do this?

    Post Author: GraemeG
    CA Forum: Crystal Reports
    Create a formula and paste the following into it (sorry I use Basic Syntax):
    'Ive laboured a point here a bit so you can get an idea of what you can do.
    'Heres 3 variables - one with your duration and two others for hours and minutesshared xDuration as numbershared xHours as numbershared xMins as number
    'Put some data into the duration and calculate the hours and minutesxDuration = 125xHours =  truncate(xDuration/60)xMins = remainder(xDuration,60)
    'You can then use the variables to get a string with unformatted hours and mins'formula = xHours + "hours " + xMins + "Mins"
    'or you format the hours and minutes nicely'formula = CStr(xHours,0) + "hours " + CStr(xMins,0) + "Mins"
    'or you can make it all into one formula without the need for xHours and xMins variablesformula = CStr((truncate(xDuration/60)),0) + "hours " + CStr(remainder(xDuration,60),0) + "Mins"

  • 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

  • Converting cost center field from mandatory to optional in Tcode CRC1

    Dear Experts,
             I'm a PP consultant & facing a problem regarding cost center .I'm trying to test a scenario into test server where trying to create a new resource(work center) via tcode CRC1(PP-PI).
    In the last screen (Costing), system is asking for the cost center which somehow couldn't be created.
    Now system is not allowing to complete the resource cretaion without entering cost center(as it is maintained as mandatory field).
    I want to change this setting of cost center from mandatory to optional for the sake of completeing the process (as it is being done into testing server only)
    Pls let me know the way by which i can convert this mandatory entry of cost center int Optional one.
    Thanks in advance ....

    Hi,
      To add to what Ajay has said:
    When you create a work center you are lead through various screens, the sequence depends on the work center category. You navigate with Next screen and Previous screen or, if you do not want to enter required data, skip."
    regards
    Waman

  • Add DEC Field to a TIMS Field

    Hi all,
    I have to add seconds to a time.
    The problem is, that the two fields are not the same types.
    the data type of the seconds are dec and the data type of the time
    are TIMS.
    Have someone an idea how to realize this problem?
    Thanks in advance
    Alex

    Hi,
    How will these two fields ever have the same type?  One is a time, the other is a number (which happens to represent seconds).
    data: w_time type uzeit.
    data: w_number(4) type p.
    w_number = 10.
    w_time = sy-uzeit.
    w_time = w_time + w_number.
    Will add 10 seconds to the current time.
    Regards,
    Nick

  • Convert row of fields to column of fields?

    Hi All,
    I have a fairly sizeable SQL query that I've written to return a single row of results.
    I.e.
    Organisation : RateA: RateB: RateC: RateD: RateE
    College X: 0.05: 0.15: 0.14: 0.11: 0.02
    (note, the ":" indicates separate fields)
    Is there a simple way of 'pivoting' this data into a single column? I need to convert it to a column so I can put the results into a chart in MS SSRS. I'm trying to avoid a union query because of the size of the original query which uses several sub queries. I've read about several solutions - xmlagg, listagg, cross join, but I'm not sure how to apply them? I'm not sure if these can be used though as we're on Ora 9x.
    Sorry for the vagueness of this. Any help appreciated. :) :) :)

    Hi,
    user9363122 wrote:
    ... As I'm looking to include this in SSRS 2005, can I use WITH, LEVEL and CONNECT BY in the SSRS SQL text editor?Sorry, I don't know anything about SSRS. Try it and see.
    If WITH doesn't work, use an in-line view for cntr.
    If LEVEL and CONNECT BY don't work, then don't generate a counter table at all; use any existing real table (or view) that you know will have at least as many rows as you need. Fpr example:
    SELECT     CASE  ROWNUM
             WHEN  1  THEN  TO_CHAR (d.deptno)
             WHEN  2  THEN  d.dname
             WHEN  3  THEN  d.loc
         END     AS single_column
    FROM          scott.dept     d
    CROSS JOIN     all_objects     c
    WHERE     deptno  = 10
    AND       ROWNUM  <= 3
    ORDER BY  ROWNUM
    ;I've never seen an all_objects view with less than 5000 rows.
    Generating the numbers using CONNECT BY is actually more efficient, but you'd probably have to generate thousands of numbers before you noticed a difference.

Maybe you are looking for

  • Purchased download can't be found!

    I purchased the freedom wars panopticon premium theme for £1.69 and received the "thank you for your purchase" email and the money has also been taken from my psn wallet, however the theme has not appeared on my download list, either online or on my

  • Change in page extraction - Acrobat Pro XI

    The means to extract pages has changed recently. It no longer appears under tools. Now it is located over the page thumbnails. Can you give me information on when this changed? Was there an automatide update that caused this? I am using another softw

  • Requirement: New tool to migrate attachments within KM repository

    Dear Colleagues                                                                                I need to write a new migration tool to migrate atttachments in KM.(NW                04s SP10) I will give you an example                                 

  • Mac pro is operating slowly

    mac book pro is running slowly

  • BT PRIVATE USAGE

    hey, we have BT infinity 40gb usage and after two weeks we have used up 32gb already. I may be the main culprit for that downloading and veiwing a lot of vids and that, but my family don't know about it and i REALLY DO NOT WANT THEM TO FIND OUT. they