Converting fltp

hi experts
i need to convert ausp-atflv that it data-type is fltp into a date data-type dats
the field for convert looks like that 2.0080801000000000E+07
thanks
Amit

DATA: lf like ausp-atflv VALUE '2.0080801000000000E+07',
      ln TYPE n LENGTH 8,
      ld TYPE dats.
ln = lf.
ld = ln.
WRITE: / lf, ln, ld DD/MM/YYYY.

Similar Messages

  • Convert FLTP to CURRENCY ?

    Hi, we try implementing code in Transfer Rule the BI7, then is necesary convert to value from FLTP to CURRENCY in USD.
    any can help in code, please ?
    This is my last try in code :
    DATA : ZPASO(30).
    CALL FUNCTION 'FLTP_CHAR_CONVERSION'
          EXPORTING
            INPUT =  *SOURCE_FIELDS-/BIC/ZCGC_VLST* <-- this is my FLTP
          IMPORTING
            FLSTR = ZPASO.
    SHIFT ZPASO LEFT DELETING LEADING SPACE .
         RESULT = ZPASO.
         CURRENCY = 'USD'.
    RESULT --> IS WHERE RECIBE CONVERTION.
    Thank you.

    Hello Victor,
    Please take a look at the example below:
    report  z_dsc_10.
    data: w_float  type f,
          w_packed type p decimals 2.
    w_float = 1.
    call function 'MURC_ROUND_FLOAT_TO_PACKED'
      exporting
        if_float                    = w_float
        if_significant_places       = 15
      importing
        ef_packed                   = w_packed
      exceptions
        overflow                    = 1
        others                      = 2.
    if sy-subrc ne 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    write: w_packed.
    Hope it helps you.
    Daniel.
    Edited by: Daniel Carvalho on Jan 9, 2009 12:40 PM

  • Converting the type from FLTP

    Hi,
    i'm entering a range i.e low value and high value in one of the transaction. when i'm saving its getting stored in a field of type FLTP 16 in the table.
    if i enter 10, its getting stored as 2.8314999999999998E02 and for 25, 2.9814999999999998E02.
    when i'm trying to convert it from FLTP using the below code:
    DATA : V_FLOAT TYPE F VALUE '2.8314999999999998E+02',
           V_CHAR(25),
            P10_4(10)        TYPE P .
    CALL FUNCTION 'CEVA_CONVERT_FLOAT_TO_CHAR'
      EXPORTING
        FLOAT_IMP  = V_FLOAT
        FORMAT_IMP =  P10_4
        ROUND_IMP  = ' '
      IMPORTING
        CHAR_EXP   = V_CHAR.
    the result i got was 283 when actually it should be 10. same thing with high value
    Could someone help me on this
    Regards
    RAJ

    Hello,
    Check this sample.
              WRITE: G_T_OBJECTS-ATFLV TO CHAR1 EXPONENT 0 DECIMALS 3.
              CONDENSE CHAR1 NO-GAPS.
              WRITE: G_T_OBJECTS-ATFLB TO CHAR2 EXPONENT 0 DECIMALS 3.
    Regards,
    Vasanth

  • Converting HEX to FLTP

    Hi All,
      I want to convert a hex value to FLTP. How can I do it?..
    Normal covnersion rules say it is first converted to a packed number and then to floating point number giving me the wrong results.

    Hi
    As you have said that ABAP supports automatic type conversion for all the fields with the exception that you  can't assign type t to type d and vice versa.
    I feel whatever you are getting is the correct value after automatic type coversion.
    Try to use correct data types wherever possible.SAP is also recommending this.
    Abdul

  • Dynpro - how to convert a FLTP data into a nice numeric one ?

    Hi,
    I have a fltp data entered in my dynpro via a search help, into a decimal data  .
    i would want it to be of format ___,_ ( 6 positions, 1 decimal).
    thus i have declared it in the screen element list : decimal length 6, with a mask such as ____,_
    But the fltp is like '5,700000000000000E+00', and when selected is like ' 5,700'. So i am blocked by  the following anomaly  "Input should be in the form ____,_ "
    What should i do to correct this anomaly ? create or convert my data in an exit in the search help ? or is there a more simple solution ? 
    Thanks
    Sabine

    my solution :
    Data dynpro_data_from_help(22)  type c  VALUE '4.500000000000000E+01'.
    DATA wl_FLTP TYPE F . "   DATA wl_PD TYPE P DECIMALS 1.
    REPLACE ',' WITH '.' INTO  dynpro_data_from_help.
    wl_fltp =  dynpro_data_from_help.
    wl_PD = wl_fltp.
    write wl_PD to  dynpro_data_from_help.
    shift dynpro_data_from_help right deleting trailing '0'.

  • ABAP Dictionory type FLTP is nt allowed for  screen Painter!!

    Hello All,
    ABAP Dictionary type FLTP is nt allowed for  screen Painter!!  am getting this error message if am giving some input.
    Thanks
    santu
    Edited by: santu4u on Oct 23, 2009 1:48 PM

    Hi
    Instead of FLTP use Quantity or Currency or Packed Decimals type fields for the Screen Elements.
    While you save the data into the database if the database field is of type FLTP the values entered would be automatically converted into FLTP type. We need not take care of this.
    ---?? What do you mean by IDES version --->
    You mean in SE11 or SE16, Wherever it may be you can not use FLTP type on Screen Fields.
    This is Standard SAP Procedure, As mentioned Above you can use Packed Decimals or Currency or Quantity Fields
    Cheers
    Ram
    Edited by: Ramchander Krishnamraju on Oct 23, 2009 2:10 PM
    Edited by: Ramchander Krishnamraju on Oct 23, 2009 2:13 PM

  • PROBLEM WITH FLTP FM.

    I used following code ,still not getting actual value.
    DATA :   DTIME(50) TYPE C.
    CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
      EXPORTING
       CHAR_UNIT              = 'FLTP'
      UNIT_IS_OPTIONAL       = ' '
      DECIMALS               = 15
      EXPONENT               = 0
        FLTP_VALUE_SI          = ITAB-AUSZT
      INDICATOR_VALUE        = ' '
      MASC_SYMBOL            = ' '
    IMPORTING
       CHAR_VALUE             = ITAB-DTIME
    EXCEPTIONS
       NO_UNIT_GIVEN          = 1
       UNIT_NOT_FOUND         = 2
       OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi Varun,
    Refer to
    fltp_char_conversion_from_si
    Re: Convert Float to Char
    hope it helps you.
    Regards!

  • Measuring point reading conversion from FLTP to Decimal

    Hi Friends,
    I want to create view for measuring document (Plant Maintenance). In view I want to select following fields.
    Counter Reading
    Measurement Reading/Total Counter Reading
    Counter Reading Difference
    All above columns have data type FLTP where as I want to convert it into decimal and want to show using view.
    Kindly suggest...
    Pankaj

    CALL FUNCTION 'MURC_ROUND_FLOAT_TO_PACKED'
    EXPORTING
    IF_FLOAT = v_values_tc-atflv
    IF_SIGNIFICANT_PLACES = 15
    IMPORTING
    EF_PACKED = numerico
    * EXCEPTIONS
    * OVERFLOW = 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.
    WRITE numerico TO v_atwrt_tc.

  • Problem in FLTP conversion

    Null.
    Edited by: sergio atzori on Jul 17, 2009 11:18 AM
    Edited by: sergio atzori on Jul 17, 2009 11:47 AM

    Hi Walter,
    I had to treat Floating point as I was dealing not with money but wtih measerement readings on some gas power consumption,
    system keeps theese data on an FLTP type's form, unfortunatelly when you pass from char input fields to FLTP or even you get to do comparisons between them, often accuracy in rounding values get varying and is not predictable,
    Anyway I've found some standard method due to carry a reliable rounding within an accuracy to 15 decimals, which I could use
    to convert any FLTP value before comparisons or calculation,
    Thenkyou Walter,
    regards,
    Sergio,

  • How to convert PM Module Breakdown Duration (AUSZT) floating point value into Minutes

    Hi Frnds,
    My requirement is to display a normal alv report. Out of which one of the filed is from VIQMEL-AUSZT (Breakdown Duration).
    Which is of Data type FLTP.
    Details:
    AUZTV
    AUZTV
    TIMS
    6
    Start of Malfunction (Time)
    12:39:19
    AUZTB
    AUZTB
    TIMS
    6
    End of Malfunction (Time)
    12:42:00
    AUSZT
    AUSZT
    FLTP
    16
    Breakdown Duration
    1.6100000000000000E+02
    Now I want to convert the value '1.6100000000000000E+02' into Minutes.
    Kindly let me know the solution.
    Note: I tried with standard FM 'PM_TIME_CONVERSION' and converted the break down value into hours.
    For example: 1.6100000000000000E+02 to 4,472222222222222E-02.
    But i want to convert the break down duration value into perfect minutes.
    With Regards,
    Sudhir.

    Simply equate to a variable of type P decimals zero. It should give you value in seconds. Divide it by 60 to have it in minutes.

  • How to convert 3,33333343523E+00 in infosource

    Hi,
    How can I convert data like 3,33323232E+00 into number without exponent? I need to convert this number in Infosource.
    Must I write a routine or is there any formula I can use?
    If there isn't any formula, can somebody write me ABAP code.
    TNX in advance,
    Best regards,
    Uros

    No, data come from R/3 and it's about maintainance. The downtime it's actually write in this format 3,4444+E00.
    I thought i would need to convert it in infosource, but then i looked at key figure and saw that key figure is also type FLTP. But then I found formula in Query designer which converts this number in TIME.
    TNX anyway,
    Best regards,
    Uros

  • Need to a voltage converter to run US-bought 110v HP Printers in 220v Pakistan any recommendations?

    I Purchased Three Printers 
    1. 
    HP LaserJet Enterprise 500 MFP M525dn(CF116A)
    2.
    HP Color LaserJet Enterprise CP4025n Printer(CC489A)
    3.
    HP LaserJet P2055d Printer (CE457A) -
     All of them three operates on 110v USA.  but i need them to use in 220V . Can anyone recommend me any good Voltage converter ?
    This question was solved.
    View Solution.

    Hi,
    Before go out to buy a converter/transformer  (you need over 2KW for all 3 of them), please check the switches at the back, they may have switches to switch from 110V to 220V. I don't know your market, my suggestion: talk with an electrician who knows the real world much better.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • ALL MY DESKTOP APPS CONVERTED TO PDF FILES.

    After sending an urgent email attachment in Adobe PDF to Government Offcom, all my Desktop applications in windows 7 64 bit have been converted to PDF files and cannot be opened.   The attachment used was sent to me by my Secretary remotely using an old MAC.
    I can return my laptop to normal operation by un installing my Adobe Reader 11 app, but the problem returns when I re Download Adobe Reader
    11 again.     After discussing this with Adobe Technical in London they advised me to raise this issue with your Adjudicators in this Forum. 
    Please assist asap as this is very urgent right now for several genuine reasons.
    Many thanks.   Derek Horder.

    See if anything in here helps: https://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html

  • Which is best app to convert voice memos to text?

    There must be a way to import iPhone 5s voice memos, some 20 minutes long into editable text. Recommendations would be appreciated.

    SORRY! WHAT I MEANT TO ASK WAS "I WANT TO EXPORT  YOUTUBE & FACEBOOK VIDEOS TO ITUNES. WHAT IS THE BEST APP. TO USE TO CONVERT THESE VIDEOS INTO A FORMAT THAT IS ACCEPTABLE TO ITUNES. WHAT IS THE BEST FORMAT TO USE. THANK YOU

  • Need to convert JApplet to JFrame

    I need to write code for where I have 60 balls bouncing around inside a window. The client will then be able to select a button and it will pull out a ball with the number 1-60 written on it. The user will be able to do this up to 7 times. Each time it is done the past numbers that have already appeared can not reappear. What I am stuck on right now is geting my balls into a JFrame. Can anyone give advice or show how to. I currently have my 60 balls running in a JApplet. Here is the JAVA code and the HTML code. Thanks!
    Here is the JAVA code
    import java.awt.*;
    import java.applet.*;
    import java.util.*;
    import javax.swing.*;
    class CollideBall{
    int width, height;
    public static final int diameter=20;
    //coordinates and value of increment
    double x, y, xinc, yinc, coll_x, coll_y;
    boolean collide;
    Color color;
    Graphics g;
    Rectangle r;
    //the constructor
    public CollideBall(int w, int h, int x, int y, double xinc, double yinc, Color c){
    width=w;
    height=h;
    this.x=x;
    this.y=y;
    this.xinc=xinc;
    this.yinc=yinc;
    color=c;
    r=new Rectangle(150,80,130,90);
    public double getCenterX() {return x+diameter/2;}
    public double getCenterY() {return y+diameter/2;}
    public void alterRect(int x, int y, int w, int h){
    r.setLocation(x,y);
    r.setSize(w,h);
    public void move(){
    if (collide){  
    double xvect=coll_x-getCenterX();
    double yvect=coll_y-getCenterY();
    if((xinc>0 && xvect>0) || (xinc<0 && xvect<0))
    xinc=-xinc;
    if((yinc>0 && yvect>0) || (yinc<0 && yvect<0))
    yinc=-yinc;
    collide=false;
    x+=xinc;
    y+=yinc;
    //when the ball bumps against a boundary, it bounces off
    if(x<6 || x>width-diameter){
    xinc=-xinc;
    x+=xinc;
    if(y<6 || y>height-diameter){
    yinc=-yinc;
    y+=yinc;
    //cast ball coordinates to integers
    int x=(int)this.x;
    int y=(int)this.y;
    //bounce off the obstacle
    //left border
    if(x>r.x-diameter&&x<r.x-diameter+7&&xinc>0&&y>r.y-diameter&&y<r.y+r.height){
    xinc=-xinc;
    x+=xinc;
    //right border
    if(x<r.x+r.width&&x>r.x+r.width-7&&xinc<0&&y>r.y-diameter&&y<r.y+r.height){
    xinc=-xinc;
    x+=xinc;
    //upper border
    if(y>r.y-diameter&&y<r.y-diameter+7&&yinc>0&&x>r.x-diameter&&x<r.x+r.width){
    yinc=-yinc;
    y+=yinc;
    //bottom border
    if(y<r.y+r.height&&y>r.y+r.height-7&&yinc<0&&x>r.x-diameter&&x<r.x+r.width){
    yinc=-yinc;
    y+=yinc;
    public void hit(CollideBall b){
    if(!collide){
    coll_x=b.getCenterX();
    coll_y=b.getCenterY();
    collide=true;
    public void paint(Graphics gr){
    g=gr;
    g.setColor(color);
    //the coordinates in fillOval have to be int, so we cast
    //explicitly from double to int
    g.fillOval((int)x,(int)y,diameter,diameter);
    g.setColor(Color.white);
    g.drawArc((int)x,(int)y,diameter,diameter,45,180);
    g.setColor(Color.darkGray);
    g.drawArc((int)x,(int)y,diameter,diameter,225,180);
    public class BouncingBalls extends Applet implements Runnable {
    Thread runner;
    Image Buffer;
    Graphics gBuffer;
    CollideBall ball[];
    //Obstacle o;
    //how many balls?
    static final int MAX=60;
    boolean intro=true,drag,shiftW,shiftN,shiftE,shiftS;
    boolean shiftNW,shiftSW,shiftNE,shiftSE;
    int xtemp,ytemp,startx,starty;
    int west, north, east, south;
    public void init() {  
    Buffer=createImage(getSize().width,getSize().height);
    gBuffer=Buffer.getGraphics();
    ball=new CollideBall[MAX];
    int w=getSize().width-5;
    int h=getSize().height-5;
    //our balls have different start coordinates, increment values
    //(speed, direction) and colors
    for (int i = 0;i<60;i++){
    ball=new CollideBall(w,h,50+i,20+i,1.5,2.0,Color.white);
    /* ball[1]=new CollideBall(w,h,60,210,2.0,-3.0,Color.red);
    ball[2]=new CollideBall(w,h,15,70,-2.0,-2.5,Color.pink);
    ball[3]=new CollideBall(w,h,150,30,-2.7,-2.0,Color.cyan);
    ball[4]=new CollideBall(w,h,210,30,2.2,-3.5,Color.magenta);
    ball[5]=new CollideBall(w,h,360,170,2.2,-1.5,Color.yellow);
    ball[6]=new CollideBall(w,h,210,180,-1.2,-2.5,Color.blue);
    ball[7]=new CollideBall(w,h,330,30,-2.2,-1.8,Color.green);
    ball[8]=new CollideBall(w,h,180,220,-2.2,-1.8,Color.black);
    ball[9]=new CollideBall(w,h,330,130,-2.2,-1.8,Color.gray);
    ball[10]=new CollideBall(w,h,330,10,-2.1,-2.0,Color.gray);
    ball[11]=new CollideBall(w,h,220,230,-1.2,-1.8,Color.gray);
    ball[12]=new CollideBall(w,h,230,60,-2.3,-2.5,Color.gray);
    ball[13]=new CollideBall(w,h,320,230,-2.2,-1.8,Color.gray);
    ball[14]=new CollideBall(w,h,130,300,-2.7,-3.0,Color.gray);
    ball[15]=new CollideBall(w,h,210,90,-2.0,-1.8,Color.gray);*/
    public void start(){
    if (runner == null) {
    runner = new Thread (this);
    runner.start();
    /* public void stop(){
    if (runner != null) {
    runner.stop();
    runner = null;
    public void run(){
    while(true) {
    Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
    try {runner.sleep(15);}
    catch (Exception e) { }
    //move our balls around
    for(int i=0;i<MAX;i++)
    ball[i].move();
    handleCollision();
    repaint();
    boolean collide(CollideBall b1, CollideBall b2){
    double wx=b1.getCenterX()-b2.getCenterX();
    double wy=b1.getCenterY()-b2.getCenterY();
    //we calculate the distance between the centers two
    //colliding balls (theorem of Pythagoras)
    double distance=Math.sqrt(wx*wx+wy*wy);
    if(distance<b1.diameter)
    return true;
    return false;
    private void handleCollision()
    //we iterate through all the balls, checking for collision
    for(int i=0;i<MAX;i++)
    for(int j=0;j<MAX;j++)
    if(i!=j)
    if(collide(ball[i], ball[j]))
    ball[i].hit(ball[j]);
    ball[j].hit(ball[i]);
    public void update(Graphics g)
    paint(g);
    public void paint(Graphics g)
    gBuffer.setColor(Color.lightGray);
    gBuffer.fillRect(0,0,getSize().width,getSize().height);
    gBuffer.draw3DRect(5,5,getSize().width-10,getSize().height-10,false);
    //paint our balls
    for(int i=0;i<MAX;i++)
    ball[i].paint(gBuffer);
    g.drawImage (Buffer,0,0, this);
    Here is the HTML code
    <html>
    <body bgcolor="gray">
    <br><br>
    <div align="center">
    <applet code="BouncingBalls.class" width="1000" height="650"></applet>
    </div>
    </body>
    </html>

    In the future, Swing related questions should be posted in the Swing forum.
    First you need to convert your custom painting. This is done by overriding the paintComponent() method of JComponent or JPanel. Read the Swing tutorial on [Custom Painting|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html].
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

Maybe you are looking for

  • Print PO Form before Release PO

    Hi Expert, I have some problem Print PO Form. PO cannot print automatically before release PO. (Not release yet) How can I do ? Thanks,

  • File need to put at SAP R/3 server

    Hi, I am picking xml file from FTP through sender chennel and want to put that xml file in to SAP R/3 server some location /home/transpert/din/xyz using receiver file adapter NFS. Here I am not using mapping part. I have problem that file is not goin

  • Requisition Status in e-Recruiting

    Dear Experts, In e-Rec (we are using BSP), a manager creates a requisition and then sends for approval to approve the status to a recruiter(support team). The approver releases the requisition. However, in one of our instances, manager goes back to t

  • Error message when HP Advisor opens.

    I have an HP desktop e9150t with win7 Home Premium. When I initiate HP Advisor I get an error window: !                  An Error Has Occurred Failed object initialization (ISupportInitialize.EndInit). Invalid URI: The format of the URI could not be

  • Join with another table in pre-query

    Hi, We have a large data block and we need to order some columns based on street name for example, not id. The base table of db block contains an id_street column, and 'streets' table contains id and name. Ok, in pre-query trigger of that block, we h