How to write last 48bits of a bouble variable

hi,
i would like to know how to write last 48bits of double type variable. i am trying create a certain memory format. it needs a 48bits of a one data point. since we C doen't have 48bit variable i created double variable. now i am trying to write last 48bits of this double.(most significant bits). any help would be appreciated.
Thanks,

Double variables are treated by CVI according to IEEE 754 standard, which means the 64 bits are organized in groups to represent sign, exponent and mantissa of a floating point library. For this reason it seems to me that you may come into troubles by attempting to use some bits only of a double variable.
If you are not treating floating point numbers, you may consider to use '__int64' data type instead which is supported by CVI starting from release 7.0 on or the equivalent 'long long' data type introduced in CVI 8.5: both describe 8-bytes integers.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • How to Write a CUstomer Exit for a variable in BEx

    Hi,
    How to write a customer exit variable in bex Query designer
    Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
    Info Object: ZEXP_DTE (Expiry Date)
    Variable on ZEXP_DTE :
    ZEDTE
    Type: Customer Exit
    Can any one please tell me how to write a code in CMOD from this (Step-by Step)
    Expiry Date > Current Cal Day
    As arun said
    'l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.'
    I want to insert the above code for the above customer exit but as i am new to BW as  ABAP please explain me what are the steps involved in CMOD
    Thanks

    Hi,
    To write customer exit for a variable, you require Access key.
    Contact your BASIS to get that.
    Access Key,BASIS?
    To write Customer exit,
    User Exits
    User Exit for Variable
    /thread/809285 [original link is broken]
    Hope these helps u...
    Regards,
    KK.

  • How to call a FM for a BEx Variable

    Hi,
       I have created a BEx Variable of type Customer Exit called 'ZCA8764'
       I intend to actually automatically calculate the number of days in the month.
       Through some discussions here, I found that I can use a FM NUMBER_OF_DAYS_PER_MONTH_GET
       So, I went to CMOD.
       But there onwards, I don`t know how to write a code to link the Variable and the FM.
      Can someone please advice with a sample code ?
       Can someone please assist.

    CALL FUNCTION  'NUMBER_OF_DAYS_PER_MONTH_GET'
            EXPORTING
                  (here u need to pass the values to the FM)
            IMPORTING
                  (here u will get the values that the function returns)
    e.g.
    CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
            EXPORTING
              day_in            = v_mth_beg
            IMPORTING
              last_day_of_month = v_mth_end.

  • How to write the java program to retrieve the last 7 days dates

    Hi,
    I am having requirement that how to write the java program to retrieve the last 7 days dates. Please help me.
    Regards,
    Ahamad

    It needs any jar file.Of course!
    I did using jscape.My program is running fine.But it
    requires jar file.Which is licensed version.Maybe you should follow the link the the 'license' on the site I posted!
    >
    I have the doubt is apache provides jar file free
    versionMaybe you should follow the link the the 'license' on the site I posted!

  • How to write a sql query to retrieve data entered in the past 2 weeks

    Hi,
    I have file names and last accessed date(java.sql.Date format) stored in my database table, I would like to know how I can write a query to get the name of files accessed in the past 2 weeks,I use open sql server at the back end.
    Thanks in advance.

    This has essentially nothing to do with JDBC. JDBC is just an API to execute the SQL language using Java and thus interact with the databases.
    Your problem is related to the SQL language, you don't know how to write the SQL language. I suggest you to go through a SQL tutorial (there is one at w3schools.com) and to read the SQL documentation which come along with the database in question. A decent database manfacturer has a website and probably also a discussion forum / mailinglist as well.
    I'll give you a hint: you can just use equality operators in SQL like everywhere. For example: "WHERE date < somedate".

  • Can anyone share with me how you  write Javadoc?

    Can anyone share with me how their companies write Javadoc?
    Are your developers solely responsible for it? Do your technical writers own it or review it? How do you make sure it's good?
    Right now, my software developers are mostly responsible for writing all the API info and it's of poor quality and really lacking details. I don't mean spelling/grammar-type problems. My developers just don't seem to "get" what information to include, no matter how many guidelines or checklists I give them.
    A very simple example is:
    * Gets the status
    public java.lang.Integer getStatus() {...}With no indication of what status values may be returned and what the values might mean.
    How do you ensure that what you write is actually useful? Please help!
    I'm aware of the method Sun recommends, but I want to know what others do.
    Thank you

    Hi,
    Well, concerning the question what a good API documentation should be. Just imagine, you are a programmer and you want to use that API. You need to know how it works. There can be only three ways to find it:
    (1) The API documentation
    (2) Probing experiments. Even a good documentation may not describe everything. Sometimes, the only way to understand certain things you particularly need may be guessing something, writing a code basing on it and see how it works. Then, guessing something again, more precisely now, and so on. Even a very good documented API (for instance, javax.swing) may require that sort of approach to be able to use it eventually.
    (3) At last, when source codes are available, one may look at them and try to understand precisely, what a particular method actually does.
    I think the better the API documentation the less one may need to endeavor those two last steps. There is actually a limit about it. Without any proper explanation at all, one may never be able to use a particular API, neither after probing it nor after looking at source codes (that is not to say the sources may be simple unavailable at all).
    Concerning how to write the API documentation, that's mostly the question of managing your team. I think, basically, the original source of the ultimate information about everything implemented in the projects are those very programmers (developers) and, probably, some software architects. But those guys normally are not especially eager to write any documentation (especially developers). That your example just demonstrates it. It seems, your programmers just wrote that "Gets the status" for you to make them leave in rest after that. In addition, the programmers normally have such a sort of work and activity that does not match particularly well with the writing literature and doing their main job simultaneously. You should not enforce them to do that!
    To write a good documentation, you will need to engage a technical writer. That's normally a guy with some programming background. However, writing some literature is actually what he does the best. (Sometimes, such people do something else about written word beyond the technical writing.) The job of that guy would be to write the documentation. This will take from him (or her) two basic things:
    (1) The ability to understand the whole software system (that's where his programming background will be needed!);
    (2) To communicate with the programmers who have developed the stuff and to obtain from them all the necessary information they know. That may require some personal (verbal) communication with them, because asking them to write everything again will only result in the same "Gets the status" explanations. However, to be successful in this, the technical writer needs to have some explicit management approval behind him. Otherwise, some of the guys will avoid speaking to him at all (saying they lack the time). So, the management should assign them the necessary priority for such communications.
    Particularly big projects may even need to have the whole team of technical writers.
    Anyway, writing docs is a hard work. But it is extremely important! The good documentation may both increase your sales and eliminate lots of expense on further support of your customers.
    Regards,
    Leonid Rudy
    http://www.docflex.com

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • Info package Routine - How to write

    Hi ,
    Can any body give me the step step by process on how to write Info package routine. Actually my requirement is to load the current month Data automatically through infopackge . I can write the ABAP code , but i am told to write in Infopackage level.
    Thanks in advance..

    Hi,
    In our case we had a requirement to load the data for the transactions occuring in the last 15 days only, so we have write the routine on the last modified date feild  in the infopackage.so as to select only records modified or created in the last 15 days..
    attached is the sample code....
    data: l_idx like sy-tabix.
      read table l_t_range with key
           fieldname = 'LAST_MODIFIED_DA'.
      l_idx = sy-tabix.
      data : w_cdate type d .
      l_idx = sy-tabix.
      w_cdate = sy-datum.
      w_cdate = w_cdate - 15 .
      L_t_RANGE-LOW  = w_cdate .
      L_t_RANGE-HIGH = sy-datum .
      L_t_RANGE-SIGN = 'I'.
      L_t_RANGE-OPTION = 'BT'.
      append l_t_range.
      modify l_t_range index l_idx.
      p_subrc = 0.
    Hope it helps...
    Regards,
    Umesh.

  • Dunno how to write JSP for login in......

    Can someone help mi on write JSP coding for login in page?i dun really know how how to write JSP coding. i m now doing a project on Private Driving instructor portal where people can register as trainee or instructor.now i want to write the JSP coding on the login page part.... when instuctor login it will go to a instructor's main page n if a trainee login it will go to a trainee's main page.Can someone help mi on this??? it's very urgent n important for mi.Please help mi.

    The easiest method I have found is to use a database to store the users details along with a flag indicating whether they are a trainee or an instructor. Upon logging in, you can use a bean to connect to the database and retrieve these values, then it is a simple matter of a jsp:forward tag to re-direct to the applicable page for trainee or instructor ...
    e.g.
    <pre>
    ***JSP PAGE ***
    <%@page language="java" buffer="32kb" import="jspclasses.customer.*" errorPage="./error.jsp"%>
    <jsp:useBean id="userBean" class="jspclasses.userInfoBean" scope="session"/>
    * Get user and pass from form variables. (if passed)*
    String user = request.getParameter("username");
    String pass = request.getParameter("password");
    * Retrieve fullname from session object. (if exists)*
    fullname = (String)session.getValue("fullname");
    String fwdPage = (String)session.getValue("fwdPage");
    if (fullname==null) {
         try {
         * If no session has been established then attempt to create one using *
         * the values passed through via form. If no values have been passed *
         * through then variables will equal null as opposed to empty strings. *
         * If null is evident, catch with NullPointerException. *
              if (user.equals("") || pass.equals("")) {
                   fullname = "Not";
              } else {
                   * Send values to method which validates users *
                   userBean.setUserInfo(user,pass);
                   * If an error was encountered within userBean the error *
                   * instance variable will != null. *
                   if (userBean.error == "") {
                        fullname = userBean.getFullname();
                   } else {
                        * Error was encountered so we set fullname to "Not", if *
                        * user was entered we re-display value and we instantiate *
                        * error variable to error value of userBean. *
                        fullname = "Not";
                        if (user!=null) uservalue=user;
                        error = userBean.error;
                        //out.println("Error is not null:<br>"+error+"<br>");
                   if (fullname!="Not") {
                        session = request.getSession(true);
                        session.putValue("fullname",fullname);
                        session.putValue("email",user);
                        session.putValue("user_id",userBean.getUserId());
                        session.putValue("user_type",userBean.getUserType());
                        session.putValue("sessionid",session.getId());
                        session.setMaxInactiveInterval(12000);
    ***END JSP***
    *** START BEAN ***
    public void setUserInfo(String user, String pass) {
    String stmtString = "";
    ResultSet rs = null;
    // Check to see if a valid connection is available
    getConnection();
    // If getConnection returns null then
    // connection successfully established
    if (error.equals("")) {
    try {
    // Create SQL string to be sent to database
    stmtString = "select * from serv_user where email = '" + user + "' and password = '" + pass + "'";
    // Execute SQL
    rs = stmt.executeQuery(stmtString);
    // Specify estimated rows to be returned
    rs.setFetchSize(1);
    // If a row is returned get first and last name
    if (rs.next()) {
    user_id = ((rs.getString("USER_ID")!=null)?rs.getString("USER_ID"):"");
    ("USER_TYPE_ID"):"");
    first_name = ((rs.getString("FIRST_NAME")!=null)?rs.getString("FIRST_NAME"):"");
    last_name = ((rs.getString("LAST_NAME")!=null)?rs.getString("LAST_NAME"):"");
    business = ((rs.getString("BUSINESS_NAME")!=null)?rs.getString("BUSINESS_NAME"):"");
    address = ((rs.getString("ADDRESS")!=null)?rs.getString("ADDRESS"):"");
    suburb = ((rs.getString("SUBURB")!=null)?rs.getString("SUBURB"):"");
    state = ((rs.getString("STATE")!=null)?rs.getString("STATE"):"");
    postcode = ((rs.getString("POSTCODE")!=null)?rs.getString("POSTCODE"):"");
    hom_phone = ((rs.getString("HOM_PHONE")!=null)?rs.getString("HOM_PHONE"):"");
    bus_phone = ((rs.getString("BUS_PHONE")!=null)?rs.getString("BUS_PHONE"):"");
    mob_phone = ((rs.getString("MOB_PHONE")!=null)?rs.getString("MOB_PHONE"):"");
    fax = ((rs.getString("FAX")!=null)?rs.getString("FAX"):"");
    email = ((rs.getString("EMAIL")!=null)?rs.getString("EMAIL"):"");
    pass_hint = ((rs.getString("PASSWORD_HINT")!=null)?rs.getString("PASSWORD_HINT"):"");
    else {
    error = "User <b>"+user+"</b> does not exist with specified password.<br>Please try again.";
    } // END : ResultSet = true
    } // END : TRY
    catch (SQLException sqle) {
    error = "<b>Error accessing database:</b><br> "+sqle.toString()+" - ORA:"+sqle.getErrorCode();
    catch (Exception e) {
    error = "<b>Error occurred in method setUserInfo()</b><br> "+e.getMessage();
    } // END : CATCH
    finally{
    closeConnection();
    try{
    rs.close();
    }catch(SQLException sqle){
    } // END : IF
    } // END : METHOD
    } // END : BEAN
    ***END BEAN***

  • Hi how to write text file continuosly

    hi i know how to write a text file but if i write something and close the
    whole program, then when i open the program and do the samething,
    i wanna write something contiguosly, write the next line of the very last saved line..
    but..i tried couple of times,but the written sentence just overlapped,,,and
    can't write continuously,,,
    how to solve it............

    Are you saying you want to create a file the first time you run a program, and append to the file the second time? If so, check the constructors for the class you are using to write the file. There should be one that takes a boolean flag telling it you want to append instead of overwrite. Set the flag to true.
    For example:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/FileWriter.html#FileWriter(java.lang.String, boolean)FileWriter(String fileName, boolean append)
    Constructs a FileWriter object given a file name with a boolean indicating whether or not to append the data written.

  • How to write sql query for counting pairs from below table??

    Below is my SQL table structure.
    user_id | Name | join_side | left_leg | right_leg | Parent_id
    100001 Tinku Left 100002 100003 0
    100002 Harish Left 100004 100005 100001
    100003 Gorav Right 100006 100007 100001
    100004 Prince Left 100008 NULL 100002
    100005 Ajay Right NULL NULL 100002
    100006 Simran Left NULL NULL 100003
    100007 Raman Right NULL NULL 100003
    100008 Vijay Left NULL NULL 100004
    It is a binary table structure.. Every user has to add two per id under him, one is left_leg and second is right_leg... Parent_id is under which user current user is added.. Hope you will be understand..
    I have to write sql query for counting pairs under id "100001". i know there will be important role of parent_id for counting pairs. * what is pair( suppose if any user contains  both left_leg and right_leg id, then it is called pair.)
    I know there are three pairs under id "100001" :-
    1.  100002 and 100003
    2.  100004 and 100005
    3.  100006 and 100007
        100008 will not be counted as pair because it does not have right leg..
     But i dont know how to write sql query for this... Any help will be appreciated... This is my college project... And tommorow is the last date of submission.... Hope anyone will help me...
    Suppose i have to count pair for id '100002'. Then there is only one pair under id '100002'. i.e 100004 and 100005

    Sounds like this to me
    DECLARE @ID int
    SET @ID = 100001--your passed value
    SELECT left_leg,right_leg
    FROM table
    WHERE (user_id = @ID
    OR parent_id = @ID)
    AND left_leg IS NOT NULL
    AND right_leg IS NOT NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to write a query?

    Hi all,
    Can you please explain me how to write a query joining tables in SAP ?
    Thanks,
    Avani.

    Hi
    Check info from sdn only
    User T-code: SQVI
    Enter your "query name" and press"create"
    Enter title
    In Data source " select Table join"
    select basis mode and press continue.
    Press Insert table and give the tabes one by one.
    Drag the parameter and drop in another table to establish link and link all the tables.
    Press check to check whether your link is correct, then press back
    You will be able to see the tables and fields on left hand side.
    Select the appropriate parameters for selection fields and list fields
    Selection fields- For selection of data, the initial screen of report.
    List fields are nothing but output.
    Execute the report.
    You will find the initial screen of report.
    Give your parameters for output and execute again.
    You will receive the desired output.
    You can down load the output in spread sheet/ in the format desired.
    At last save your query before coming out of transaction
    Vishal...

  • How to  obtain last date of accounting period mmyyyy

    how to  obtain last date of accounting period mmyyyy.
    for ex: 31 st is the last date then output should be mm/31/yy.

    hi use this ....
    REPORT  ZTESTS.
    data: date1(4),
          date2(2),
          date3(2),
          date type sy-datum,
          output(8).
    parameters:p_date type sy-datum.
    CALL FUNCTION 'JVA_LAST_DATE_OF_MONTH'
      EXPORTING
        year_month               = p_date+0(6)
    IMPORTING
       LAST_DATE_OF_MONTH       =  date.
    output0(2) = date4(2).
    output+2(1) = '/'.
    output3(2) = date6(2).
    output+5(1) = '/'.
    output6(2) = date2(2).
    write:/ output.
    regards,
    venkat.

  • How to delete last user session from backend SQL query?

    Sometimes user session gets closed between some work by any reason.
    When next time that user logs to P6, he gets some error or particular functionaly dosen't work for that user or system hangs.
    In that case if i decided to clear last session history of that user from database, how to write SQL query?
    I don't want to delete all user sessions from table USESSION and USESSAUD, i simply want to delete last user session of particular user (E.g XYZ).

    I am quoting this from MOS Doc Id "Why would multiple session records be present in the User Sessions screen in P6 Web, and why might some of them have different IP addresses? (Doc ID 1600172.1)"
    Multiple sessions show up for users since different sections of P6 Web have their own sessions associated with them. If a user is authorized to use multiple areas of the software they will have multiple sessions each time they log in. Additionally, if users are closing their browsers before logging out of P6 Web Access you might see some past sessions still appearing in the list. These will eventually be cleared out by background jobs, however you can also reset the sessions in the software by clicking the "Reset User" link (Administer > User Sessions > Manage User Sessions), or by choosing the "Reset All Users" link (Administer > User Sessions > Manage User Sessions) to do this for all past sessions.
    Multiple IP addresses for sessions can happen when a user logs in from different machines. For example, a person may login at their desk, but then go to a colleagues workstation to discuss a project, and log in from there. Doing so will leave them with multiple IP addresses in the session records.
    Hope this helps
    Regards,
    Sachin Gupta

  • How to write a PCR for this ?

    Hi SAP-HR Experts .
    Dear friends , My Company Requires a specific requiremnt that at the date of any Employee's
    B'day his one day salary should get doubled and he is entitled to get one leave on his B'day .
    I do not know how to write a PCR for this ?
    May some Body tell me how to meet this requirement Please .
    tell me please step by step how to go through ...
    It will be great help for me .
    Best regards : rajneeesh

    I think you can make it with something like this:
    Write a PCR in schema, you can call the rule with "actio";
    000860 ACTIO 9BIR AR               Birthday
    Rule 9BIR
    9BIR Rule for Birthday
            NUM=FG C   Set                   " F (fixed indicator for deadline calculation); G (Birth date from infotype 0002);C (complete months)
            NUM/12     División              " Number of completed months divided by  12
            NUMV0O2L   Off.Lng en arg.var.   " the last two places of the number are entered in the variable argument.
                                " if the rest is not 00, there is nothing to do
              00                             " if the rest is 00
                ZERO= N    AmtNumRteZeit = 0 "
                AMT=  1002 Set               " wagetype of  salary
                AMT/TKDIVI División          " divides the amount by  Partial Period Parameter Whole Month
                ADDWTI1002 Input table       " accumulates into 1002
    Example: an employee with birthday 01.01.1977 in IT0002
    Payrroll in january 08
    wagetype 1002 before rule 9BIR:
    3 1002 Salario Bas01                           30,33  30,00              909,90
    Rule 9BIR
    NUM=FG C   Set; NUM= 372
    NUM/12        ; 372/12= 31 rest=00
    AMT=1002      ; AMT= 909,90
    AMT/TKDIVI    ; 909,90/31= 29,35
    ADDWTI1002    ; 909,90 + 29,35= 939,25
    wagetype 1002 before rule 9BIR:
    3 1002 Salario Bas01                           30,33  30,00              939,25
    Hope this helps. Manuel

Maybe you are looking for

  • Certificate error in Work Manager 6.1

    Hi Experts, I am deploying WM 6.1 in SMP 3.0,getting Communication Error(14). I have issues only on WPF client side as I can see error:The certificate (chain) is not valid in logs. Do I need to install smp server certificate(smp_crt) as well as SSL c

  • Newline feed not interpreted correctly by Java

    In my project, rexx passes data to lotus notes thru mqseries. These data has newline feed characters. here java is used to read data from mqseries and create documents in lotus. now my problem is, this newly created document is showing some junk char

  • Problem with Instead of Update

    Hello, I have a form that is based on a view. the query to create my view contains a Group by. I wrote this backend trigger that follows to insert and update in a table instead of on a the view. CREATE TRIGGER POPULER_GPV_OBJEC_PROD_AN INSTEAD OF INS

  • Photoshop.exe - Entry Point Not Found error

    I updated Photoshop and Bridge CC last night. Afterwards, I was unable to open up Photoshop CC getting this error message. The box has a lot of jibberish but ends with "could not be found in the dynamic link library PatchMatch.dll I can however open

  • Designer 6i Release2 is ready for download!!!

    1. Eventually, Designer 6i Release 2 is here! Download it folks! 2. Be careful with OEM 2.2 (Oracle Enterprise Manager). It made my Oracle 8.1.7 inaccessible! Regards null