SCXI 1001, SCXI-1102 and SCXI-1303 not working correctly with DAQmx

I have recently upgraded from Labview 6.5 to Labview 8.2 and now my SCXI 1001 with a SCXI 1102 and SCXI 1303 terminal block no longer reads the correct voltage.  Using the old version of labview thermocouple measurements are correct at 0.5mV; however using the new version of labview and DAQmx the thermocouples are reading 5V.  Everything is installed correctly as it still works with the older version of Labview, is there something that needs to be reset or change so that teh SCXI will function properly with DAQmx?

Hello ilabtech,
From my understanding you are using an SCXI 1001 chassis with an SCXI 1102 and 1303 terminal block to perform thermocouple measurements.  You are upgrading to LabVIEW 8.2 and DAQmx.  I am assuming you were using LabVIEW 6.1 since there isn’t a LabVIEW 6.5.  You mentioned that are able to get a correct reading of 0.5 mV with LabVIEW 6.1 but you see a rail of 5V with LabVIEW 8.2 and DAQmx. 
My first suggestion is that you ensure that the SCXI is set at the appropriate range and for the correct thermocouple type.  You can also configure these settings in MAX as detailed on page 27 of the SCXI 1102 User Manual and Specifications Guide. 
My second suggestion is for you to start off using an example program to see if you see the same error.  When you are in a LabVIEW 8.2 VI you can go to Help>>Find Examples to open the NI Example Finder.  You then choose Hardware Input and Output>>DAQmx>>Analog Measurements>>Temperature>> Cont. Acq Thermocouple Samples-Int CLK.vi.   This example program is supported by your hardware and is a good resource to use to troubleshoot.
If these suggestions aren't helpful please answer the following questions in your reply.
1.        I would like to know what range you have set the SCXI 1102 to read. 
2.       What version of DAQmx are you using?  You can find the version my opening Measurement and Automation explorer (MAX), expanding the “Software “and clicking on NI-DAQmx.
3.       What operating system are you using?
4.  Does your Traditional DAQ program work in LabVIEW 8.2?
Regards,
Ima
Applications Engineer
National Instruments
LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx

Similar Messages

  • My phone was left in a car overnight and now is not working correctly, screen looks funny and I cannot make calls? Will they be able to assist in  a store?

    My phone was left in a car overnight and now is not working correctly, screen looks funny and I cannot make calls? Will they be able to assist in  a store?

    Make an appointment at any Apple store, see what the genius bar says/does.
    You don't metion whether the car was hot or cold.

  • Copy and paste buffers not working correctly in iOS 8.1m

    Both iPads2's in my family arsenal are exhibiting what I believe to be a bug in the iOS8.1 (perhaps corrected by 8.1.1?), in the cut/copy & paste buffer stack.
    When invoking the operation to copy and paste data from one application to another, the paste action consistently selects the previous (e.g., stack level 2 rather than 1 or Top) data as what is to be pasted.
    In other words, if you have used the copy and paste routine twice, the second pasting will supply one with the paste data from the first operation, rather than the desired data from the second copy and paste operation.
    Copy and paste appears to work correctly from within a single application, but consistently fails when copying data from one application to another.
    Does anyone know of a work-around for this bug? Is it a bug that others have identified? Is there a new selection filter menu option for copy and paste operations, and what method is used to invoke the menu?
    I hope this is addressed soon, as I use Cut/Copy & Paste operations extensively (I've already had Carpal Tunnel Release surgery once and don't relish a repeat performance, no matter how successful the first was in correcting the damage).
    Any clues as to what's going on here?
    thanks in advance,
    labernache

    All you can do is simply see if iOS 8.1.1 helps you with this. With some people it has, and others it has not. I would also recommend doing a clean install of your system, too.
    Follow this procedure for a Troubleshooting Methodology ... basically reset to factory default condition -BUT- be sure to do the following methodically and also to follow the part with Apple Support!
    First you want to make sure you have several backups of your data and done with a couple of "different" sources. Be sure to understand what data is backed up and what is NOT on iCloud Backup and iTunes Backup. Use a variety of methods for backup ... you might check into Dropbox, in addition to your Apple options.
    Then turn off your desktop anti-virus software when using iTunes for this reset to factory default. After you do that reset, then leave your iPad in its factory default state and see how it operates then. If you encounter any problems in that factory default state, then take it to Apple Support, and let them know that you have just reset it to that state with iTunes and have not put any of your data back on and it is operating in this fashion (whatever the problem is) in that pristine state. Make sure you keep that trouble ticket number, because if it has to be escalated through Apple Support, you're going to find all communications tied in with that number. If the lower level help isn't able to help you, then escalate it to a higher level to examine the problem. Keep at it with that trouble ticket number until Apple Support arrives at a solution to that problem. Be methodical and keep at it.
    On the other hand, if everything is okay with the factory default condition, then restore your backup. Some people have discovered that the problem resides in the apps or something in the restored backup. If that's the case, then it's going to be trying and difficult to find out which developer's app is causing you the problem. And ... it's true ... that a developer not following Apple's instructions and guidelines for his app can CAUSE YOU TROUBLE. This kind of thing does happen from developers, especially when a new system upgrade comes out, because some developers ignore what Apple tells them about changes coming, and what they do BREAKS SOMETHING.
    This is a troubleshooting methodology that you are going through. See it through to the end.
    Choosing an iOS Backup Method (Should I Use iTunes or iCloud to back up ...)
    https://support.apple.com/kb/HT5262
    Back up and Restore your iOS Device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iTunes: About iOS Backups
    http://support.apple.com/kb/ht4946
    Create and Delete iPhone, iPad and iPod Touch Backups in iTunes
    http://support.apple.com/kb/ht4946
    iOS: Troubleshooting Encrypted Backups
    http://support.apple.com/kb/TS5162
    Use iTunes to Restore your iOS Device to Factory Settings
    http://support.apple.com/kb/ht1414

  • Actions and Advanced Actions not working correctly. - Captivate 8

    In our project, we have it set so that after every section the student is asked three quiz questions (they are set on the default quiz slides.) On success, the person jumps to the next question slide. On failure, the person goes to next slide which has two buttons - one that allows them to simply move forward to the next quiz question and one that allows them to go back and review. The "Go back and Review" button takes the person back to the specific content slide that contains the answer to the question they are being asked. This button is set to advanced actions "Jump to Slide ..." and "Show Button..." - The button is a 'Return to Quiz' button to allows the person to find the answer then try the question again.  I know that the buttons on the default quiz slides cannot be programmed to do a specific action, but every time we click 'Submit' it seems fine until we click 'Next' to move ahead, it then routes us back to one of the content slides (Slide 7) instead of the next slide (if wrong), or the next question slide (if right). I have looked at the Advanced Interactions Window and there is nothing linking this slide to anything. I have not had this problem with any of our other modules or sections. I have tried creating new question slides and it did not work. I deleted Slide 7 and it worked fine the first time through the preview, but then when I viewed the preview again, it started jumping back and would not even let me get to the questions. Can anyone help?

    Normally the Next button on a question slide is not needed, because it has the functionality of Skipping the question. It is however needed if you want to allow Review.
    Another explanation is that you did change the normal work flow for a question slide, where a two-step process for submitting will take automatically the user to the next slide.
    Question Question Slides in Captivate - Captivate blog
    What did you do to need the Next button? If the user submits:
    Feedback appears with the indication to press Y or to click on the slide, happens at the pausing point of the Question slide (default is 1.5secs)
    When user presses Y or clicks, the actions Success/Last Attempt are executed if all attempts are exhausted, and you have only 1 attempt on Question level: the actions are by default Continue, but you can change it to 'Go to Next Slide' to shorten the waiting time (or drag the pausing point closer to the end of the slide).
    What did you change?

  • Is prompted filter not working correctly with calculated items

    Hello,
    I am working on OBIEE 11.1.1.3 and having problem problem linking 2 analisys with action link
    The test case is:
    I have 2 attribute columns on a dimension
    1. Conto 1 Code
    2. Conto 1 Dsc (in RPD i set up the property Descritor ID of -> Conto 1 Code)
    3. Conto 2 Code
    4. Conto 2 Dsc (in RPD i set up the property Descritor ID of -> Conto 2 Code)
    5. Conto Detail
    and 1 measure on the fact table
    1. Revenue (defined on RPD as simple sum)
    On presentation layer i have the analisys:
    1.
    The First one using as Criteria: Conto 1 Dsc | Conto 2 Dsc | Revenue
    The layout is a table with sub-total on Conto 1 Dsc
    On Revenue i created an action link to the second analisys containing
    2.
    Criteria: Conto 1 Dsc | Conto 2 Dsc | Conto Detail | Revenue
    Filters: Conto 1 Code (is prompted) | Conto 2 Code (is prompted)
    This pair of analisys are working fine.
    Then i created a second pair of analisys as:
    1.
    Criteria: Conto 2 Dsc | Revenue
    Using Calculated group \ Items i created a numerous set of sub-totals
    On Revenue i created an action link to the second analisys containing
    2.
    Criteria: Conto 2 Dsc | Conto Detail | Revenue
    Filters: Conto 2 Code (is prompted)
    This pair of analisys are not working correctly. When i drill from first analisys to second one the Conto 2 Code filter is not used.
    Replacing in the second analisys Conto 2 Code (is prompted) with Conto 2 Dsc (is prompted) a filter is being generated on the drill but it's using the Conto 2 Code value and the analisys ends with no results.
    Thanks,
    Jonni

    Try adding Conto 2 code to the first analysis and keep the filter on the second analysis as Conto 2 code is prompted.
    -Amith.

  • Why is my Microsoft Word document not working correctly with Pages

    I have created a new CV (Resume) in Microsoft Word on my work computer, it is using the latest version of Office. When I attempted to open the document in Pages on my home Mac, the formatting was slightly incorrect, but the main issue is it is missing two pages! The exact same document when opened in Word has three pages but in Pages, it only has one! I have had nothing but problems with Pages since I bought it! Can someone please help me get Pages to work correctly with my documents that are created in Word! Than you.

    Pages does not allow a single cell in a table to span more than a page and there may be other problems that you also have not told us about.
    Redo your CV using the excellent Pages templates, Word's templates are Uuuugly!
    Being text based, with good typographical layout, those Pages templates should translate accurately back and forth from Pages to Word.
    Frankly CVs don't require anything fancy. You could do an excellent, well laid out and very attractive CV in TextEdit which is no slouch in the word processing department.
    Peter
    PS Start off by saving your Word CV to .rtf or .txt which will strip off most of the bad formatting. Then reopen it in Pages or drag in the snippets of text into a Pages CV template's placeholders to automatically format the text nicely.

  • My phone is so slow won't download any apps and data is not working correctly

    I have the moto e with straight talk

    Hi
    This is not a Firefox thing, but there are some general housekeeping activities you can do to make your telephone run much easier.
    First of all, uninstall any apps and widgets you do not need. It is amazing how they can clutter up your phone! In the app drawer, long press on an app or widget and drag it to the uninstall option at the top of the screen.
    So you have a sizeable SD card in your phone? If so, in Settings app , scroll down to Storage and tap "Move media". As it says on the menu, this will move your media files to your memory card, thus freeing up space on your phone.
    Before you leave Storage, scroll up a little and tap on "Cached Data" and selected to clear the cached data.
    In Settings>Apps, scroll across to "On SD Card" and tick a few boxes to move some of your apps to your memory card. (Note: With some apps, this may mean that any accompanying widgets will not work, this is a bug with Android).
    Once finished, turn off your phone and turn it back on again and you should find your phone has quite a bit more space and is running a bit quicker.

  • Ichat video and audio is not working only with one friend

    Hi there,
    i used to video-chat with my best friend every other day. We both have OSX 10.5.8. Maybe 4 weeks ago suddenly we always get an errorcode when calling each other. Sometimes it says the other one doesnt anwer but he gets an error message. He and me can still video chat with all our other friends!
    Only in between us it doesn't work. Both ways don't work (who ever calls). We both have an iMac 21.' with intel prozessor.
    Text-chat works!!
    If another friend calls both of us, we can chat the 3 of us together!
    Any suggestions?
    desperatly Mike

    Hi,
    This has been an issue now and then for all versions of iChat
    http://www.ralphjohns.co.uk/page15.html#CertainBuddy
    The most common reason is setting Port Forwarding in a router to open the ports and leaving On the DHCP Server.
    This means that now and then the Computer IP may change and the Port Forwarding may require you "point It" at one IP - which the computer no longer has meaning the ports are not open.
    The next is the way some devices actually Do NAT (Network address Translation).
    There are 4 main ways with cross over between them as well.
    This may raise it's head if you or your Buddy have updated the Firmware to your router.
    I would check System Preferences > Quicktime > Streaming is at 1.5Mbps at both ends.
    I would double check the routing settings at both ends.
    UPnP if you have it is "Better" is that it allows Multiple computers (IPs) to use the same Ports so you don't have to turn Off the DHCP Server in the router.
    Thomson-Alcatel can have symptoms like this due to the way they handle SIP data.
    9:18 PM Wednesday; October 6, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Bridge and Camera Raw not installing correctly with Photoshop CS5

    First time installing i got bridge to load, but camera raw did not work.  I had the notice at the end of instalation that there were numerous errors with the intall, totalling 13.
    Uninstalled, and tried to reinstall.  I only got three errors, but now bridge is not on the computer or camera raw. 
    Fustrated, wondering if I should have gotten the disks intead of the online installer.

    Try running the Creative Suite Cleaner Tool and reinstalling. For everything else a look at the install logs would be required.
    Mylenium

  • Spry Vertical Menu and sub menus not working correctly

    I am designing a website for a client and cannot get the spry vertical menu and submenus to work correctly.  The submenus will show on the index.html page, but not on any other pages, or when I preview in browser. Should I make it a library item then add it to the other pages? I am not sure what I am doing wrong.  I appreciate your help!

    URL to your site please

  • Magnetic lasso and auto sharpen not working correctly

    anyone having this problem with PSE 3.0

    Which operating system are you using?
    What is not working with the Magnetic Lasso Tool and Auto Sharpen?
    Have you tried resetting the photoshop elements 3 preferences?
    To reset the preferences:
    Press and hold the Shift+Alt+Ctrl (windows) or Shift+Option+Command (mac) keys just after starting the launch of the pse 3 editor.
    Keep holding the keys down until you get a dialog asking if you want to delete the photoshop elements settings file
    Press Yes to reset the preferences.

  • System Events not working correctly with Acrobat Professional

    Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
    This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
    if title of front window is "" then
        tell front window
            click button "OK"
        end tell
    end if
    I guess this is an ok solution... bit hard to identify windows when they don't have titles...
    BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
    This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
    tell application "System Events"
        try
            tell process "Acrobat"
                -- Enable security settings
                click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
                tell window "Document Properties"
                    tell tab group 1
                        click radio button "Security"
                        tell group "Document Security"
                            click pop up button 1
                            click menu item 2 of menu 1 of pop up button 1
                        end tell
                    end tell
                end tell
                tell window "Password Security - Settings"
                    click pop up button 1
                    click menu item 4 of menu 1 of pop up button 1
                    tell group "Permissions"
                        click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                        click text field 1
                        keystroke pdfPassword
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                        click pop up button 2
                        click menu item 4 of menu 1 of pop up button 2
                    end tell
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Adobe Acrobat - Confirm Permissions Password"
                    click text field 1
                    keystroke pdfPassword
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Document Properties"
                    click button "OK"
                end tell
    end tell
        on error
            display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
        end try
    end tell
    A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
    tell window "Password Security - Settings"
        click button "OK"
    end tell
    beep
    In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

    Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
    This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
    if title of front window is "" then
        tell front window
            click button "OK"
        end tell
    end if
    I guess this is an ok solution... bit hard to identify windows when they don't have titles...
    BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
    This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
    tell application "System Events"
        try
            tell process "Acrobat"
                -- Enable security settings
                click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
                tell window "Document Properties"
                    tell tab group 1
                        click radio button "Security"
                        tell group "Document Security"
                            click pop up button 1
                            click menu item 2 of menu 1 of pop up button 1
                        end tell
                    end tell
                end tell
                tell window "Password Security - Settings"
                    click pop up button 1
                    click menu item 4 of menu 1 of pop up button 1
                    tell group "Permissions"
                        click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                        click text field 1
                        keystroke pdfPassword
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                        click pop up button 2
                        click menu item 4 of menu 1 of pop up button 2
                    end tell
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Adobe Acrobat - Confirm Permissions Password"
                    click text field 1
                    keystroke pdfPassword
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Document Properties"
                    click button "OK"
                end tell
    end tell
        on error
            display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
        end try
    end tell
    A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
    tell window "Password Security - Settings"
        click button "OK"
    end tell
    beep
    In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

  • LR 2.1 & 2.0 ~ DRAG & DROP not working correctly with  photos when moving, applying keywords

    Today this issue started, originally in 2.0, updated to 2.1 and issue continues.
    Issue: DRAG & DROP feature with mouse (or pad on laptop) will select multiple photos, (with CTRL & SHIFT key as typical with Windows machines)but when I try to move them to a different folder, or drop them onto a keyword, it will not work.
    Specifically, I select two photos to move to a different folder, the selection work, but when I try to "grab" the selected photos, Lightroom defaults to One Photo, and it will not grab it to move it. However, I can "right click" on the intended folder and can select "move selected photos to folder" and that works. This issue also applys to assigning keywords, and I would assume other similiar actions. I should note, that I can "rotate", assign "labels", "stars", and Keywords from Keyword sets, it just happens with the "Drag & Drop" feature.
    Help
    The feature works correctly in other Windows programs, so I'm sure it's related to Lightroom and not the mouse.
    I have a Windows Vista machine, 3GB RAM 160GB HD, ~ 75% free space, AMD Turion X2 Dual Core 70 Processor. Everything has worked fine up until this morning.
    Prior to upgrading to 2.1, I optimized my Catalogue. Everything seems to work fine except this feature.
    Help

    Drag by the actual image area of the thumbnail, not the surrounding 'fake slide' cell.
    That's a feature of Lightroom's grid view. Clicking on image area of thumbnail keeps the multiple selection and makes the image clicked the primary select. Clicking on the outer thumbnail area deselects all but the active image.

  • Bapi_document_create2 does not work correctly with attached file.

    Hi all.
    I hava a problem with bapi. I programmed below.
            ls_docdata-documenttype = 'BBS'.
            ls_docdata-description  = 'JJW test'.
            ls_file-documenttype = 'BBS'.
            ls_file-ORIGINALTYPE = 1.
            ls_file-storagecategory = 'ZSTW_KPRO'.
            ls_file-wsapplication = 'TXT'.
            ls_file-docfile = entity_filename.
            append ls_file to lt_files.
            CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
              EXPORTING
                documentdata       = ls_docdata
                PF_FTP_DEST = 'SAPFTP'
                PF_HTTP_DEST = 'SAPHTTP'
              IMPORTING
                documenttype               =      lv_documenttype
                documentnumber           =     lv_documentnumber
                documentpart                =     lv_documentpart
                documentversion           =     lv_documentversion
                return                           =     ls_return
              tables
                documentfiles     = lt_files.
            call function 'BAPI_TRANSACTION_COMMIT'.
    If I don't attach the file, DIR is created but if attach some files, it does not work. What should I do??
    regards.

    Hi,
    You can use the below to attach the file from BSP to SAP. But it doesnt use the BAPI - 'BAPI_DOCUMENT_CREATE2'. It works perfectly for me. Let me know if you have any questions.
    Note: This code put the file into SAP Directory "/userapps/master_data/" as well as it upload the file into Transaction WTY since i am using Business object:BUS2222. You may need to modify the Business object if you ahve the one, otherwise you can just put it into SAP DIR.
    FUNCTION ZATTACH_CREATE.
    *"*"Update function module:
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(FILE) TYPE  SAPB-SAPFILES
    *"     VALUE(STR_FILE_CONTENT) TYPE  XSTRING
    *"     VALUE(OBJECT_KEY) TYPE  BAPIBDS01-OBJKEY
      DATA: LOGICAL_SYSTEM TYPE BAPIBDS01-LOG_SYSTEM,
            CLASSNAME TYPE  BAPIBDS01-CLASSNAME,
            CLASSTYPE TYPE  BAPIBDS01-CLASSTYPE.
      DATA:  IT_FILES TYPE TABLE OF  BAPIFILES,
            IT_SIGNATURE TYPE TABLE OF  BAPISIGNAT,
       FILES TYPE  BAPIFILES,
      SIGNATURE TYPE   BAPISIGNAT.
      DATA: I_TOADD TYPE TOADD,
            FILENAME_ALL TYPE SAPB-SAPFILES,
            FILE_PATH TYPE SAPB-SAPFILES,
            FILE_PATH_MEMORY(250) TYPE C,  " path für SAP memory
            FILE_PATH_LENGTH TYPE I,       " length of the file_path
           FILE_CONTENT_LENGTH TYPE I,       " length of the file_CONTENT
           FILE_NAME TYPE SAPB-SAPFILES,
            FILE_EXTENSION TYPE TOADD-DOC_TYPE.     " file-extension.
      DATA: I_FILE_CONTENT TYPE TABLE OF BAPICONTEN.
      DATA: WA_FILE_CONTENT TYPE  BAPICONTEN,
       STRING_CONTENT TYPE STRING,
       STRING_CONTENT1 TYPE STRING.
      DATA:
       I_FILES TYPE TABLE OF BAPIFILES ,
            I_SIGNATURE TYPE TABLE OF BAPISIGNAT ,
            I_COMPONENTS TYPE TABLE OF BAPICOMPON ,
           COMPONENTS TYPE BAPICOMPON ,
            I_PROPERTIES TYPE TABLE OF SDOKPROPTY ,
            I_PROPERTIES2 TYPE TABLE OF BAPIPROPER ,
            I_PROPERTIES_DEL TYPE TABLE OF BAPIDPROPT ,
           MIMETYPE TYPE TOADD-MIMETYPE,
      COMPID TYPE BAPICOMPON-COMP_ID,  " compid for popup
            COMPID_FLAG(1) TYPE C,           " compid can't be changed
            MODIFY_FLAG(1) TYPE C,           " document is modified
            ATTRI_FLAG(1) TYPE C,            " attri can't be changed
            TITLE_FLAG(1) TYPE C,            " titel of the popup
            CANCEL_FLAG(1) TYPE C,           " cancel button Yes/No
            BUTTON_TEXT(10) TYPE C,
            INFO_TEXT(100) TYPE C,
      VERSION_NR TYPE BDN_CON-DOC_VER_NO,     " version_nr for popup
            VERSION_LANGU2 TYPE T002T-SPTXT, " language field in POPUP
            VERSION_LANGU TYPE BDN_CON-LANGU," SPRAS language field
            TITLE_TEXT(100) TYPE C,          " title of the popup
            DESCRIPTION TYPE BDN_CON-DESCRIPT.      " descr. for popup
    *FILENAME_ALL = fileUpload_event->file_name.
    * Transfering into SAP File server.
      FILE_CONTENT_LENGTH = XSTRLEN( STR_FILE_CONTENT ).
      FILENAME_ALL = FILE .
      STRING_CONTENT = STR_FILE_CONTENT.
      DATA: OUT_LINES TYPE TABLE OF XSTRING.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = STR_FILE_CONTENT
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_FILE_CONTENT.
      DELETE DATASET '/userapps/master_data/claim1.txt'.
      OPEN DATASET '/userapps/master_data/claim1.txt' FOR APPENDING
        IN TEXT MODE ENCODING DEFAULT.
    *  LOOP AT I_FILE_CONTENT INTO WA_FILE_CONTENT.
    *    TRANSFER STR_FILE_CONTENT TO '/userapps/master_data/claim1.txt'.
      TRANSFER STRING_CONTENT TO '/userapps/master_data/claim1.txt'.
    *  ENDLOOP.
      CLOSE DATASET '/userapps/master_data/claim1.txt'.
      OPEN DATASET '/userapps/master_data/claim1.txt' FOR INPUT
           IN TEXT MODE ENCODING DEFAULT.
      READ DATASET '/userapps/master_data/claim1.txt'  into STRING_CONTENT1.
    * -- split filename                                                 -- *
        DATA: LENGTH TYPE I.
      DATA: PATH2(1200).  " LIKE sapb-sapfiles.
      DATA: L_FILE(1200),
            L_DIR(1200),
            L_DELIMITER        TYPE C,
            L_OFFSET           TYPE I,
            L_BYTES            TYPE I,
            L_DELIMITER_OFFSET TYPE I,
            L_DELIMITER_BYTES  TYPE I,
            L_CHAR             TYPE C,
            L_PREVIOUS_CHAR    TYPE C,
            L_LAST_CHAR        TYPE C.
      PATH2 = FILENAME_ALL.
      LENGTH = STRLEN( PATH2 ).
      L_OFFSET = 0.
      WHILE L_OFFSET < LENGTH.
        L_LAST_CHAR = L_CHAR. "remember last character
        L_BYTES = CHARLEN( PATH2+L_OFFSET ).
        L_CHAR = PATH2+L_OFFSET(L_BYTES). "get current character
        IF L_CHAR = '/' OR L_CHAR = '' OR L_CHAR = ':'.
          IF L_DELIMITER IS INITIAL OR L_DELIMITER = ':'.
            "Typically we deal with absolute paths, so the first
            "delimiter is best. This allows for UNIX paths with
            "'' in the directory or file name
            L_DELIMITER = L_CHAR.
          ENDIF.
          IF L_CHAR = L_DELIMITER.
            L_DELIMITER_OFFSET = L_OFFSET.
            L_DELIMITER_BYTES = L_BYTES.
            "remember character in front of delimiter:
            L_PREVIOUS_CHAR = L_LAST_CHAR.
          ENDIF.
        ENDIF.
        L_OFFSET = L_OFFSET + L_BYTES.
      ENDWHILE.
      IF NOT L_DELIMITER IS INITIAL.
        L_OFFSET = L_DELIMITER_OFFSET + L_DELIMITER_BYTES.
        L_FILE = PATH2+L_OFFSET.
        IF L_PREVIOUS_CHAR = ':' OR L_DELIMITER = ':'.
          "path ends with or after drive identifer, include the delimiter
          L_DIR = PATH2(L_OFFSET).
        ELSEIF NOT L_DELIMITER_OFFSET IS INITIAL.
          "do not include a trailing delimiter for compatibility reasons
          L_DIR = PATH2(L_DELIMITER_OFFSET).
        ELSE.
          CLEAR L_DIR.
        ENDIF.
      ELSE.
        L_DIR = SPACE.
        L_FILE = PATH2.
      ENDIF.
      FILE_PATH = L_DIR.
      FILE_NAME = L_FILE.
    * -- set new file_path to SAP memory                                -- *
      FILE_PATH_LENGTH = STRLEN( FILE_PATH ).
      IF FILE_PATH <> SPACE AND FILE_PATH_LENGTH < 250.
        FILE_PATH_MEMORY = FILE_PATH.
        SET PARAMETER ID 'OAP' FIELD FILE_PATH_MEMORY.
      ELSE.
        FILE_PATH_MEMORY = SPACE.
        SET PARAMETER ID 'OAP' FIELD FILE_PATH_MEMORY.
      ENDIF.
    * -- data declaration ------------------------------------------------ *
      DATA:
            SINGLE_C TYPE C.
      CLEAR: SINGLE_C.
      LENGTH = STRLEN( FILE_NAME ).
      IF LENGTH > 0.
        WHILE LENGTH > 0.
          SINGLE_C = FILE_NAME+LENGTH(1).
          IF SINGLE_C CO '.'.
            LENGTH = LENGTH + 1.
            EXIT.
          ELSE.
            LENGTH = LENGTH - 1.
          ENDIF.
        ENDWHILE.
        IF LENGTH > 0.
          FILE_EXTENSION = FILE_NAME+LENGTH.
        ELSE.
          FILE_EXTENSION = SPACE.
        ENDIF.
      ELSE.
        FILE_EXTENSION = SPACE.
      ENDIF.
      IF FILE_EXTENSION <> SPACE.
        SET LOCALE LANGUAGE SY-LANGU.
        TRANSLATE FILE_EXTENSION TO UPPER CASE.              "#EC TRANSLANG
        SET LOCALE LANGUAGE SPACE.
      ENDIF.
    * TR001++
      DATA: I_TOADV TYPE TABLE OF TOADV.
      DATA: WA_TOADV TYPE TOADV.
      DATA: OBJECT TYPE SAEOBJART.
      SELECT * FROM TOADV INTO CORRESPONDING FIELDS OF TABLE
              I_TOADV WHERE STANDARD = 'X'.
      DELETE I_TOADV WHERE AR_OBJECT CS 'BDS' OR AR_OBJECT CS 'ZSEST'.
      READ TABLE I_TOADV INTO WA_TOADV WITH KEY DOC_TYPE = FILE_EXTENSION.
    * -- get name and description for the document                      -- *
      CLEAR: COMPID,
             DESCRIPTION,
             VERSION_NR,
             MODIFY_FLAG,
             COMPID_FLAG,
             ATTRI_FLAG,
             TITLE_FLAG.
      COMPID_FLAG    = ' '.              " -> compid can't be changed
      MODIFY_FLAG    = 'S'.              " -> popup in save modus
      ATTRI_FLAG     = 'X'.              " -> attri's can be changed
      COMPID         = FILE_NAME.
      VERSION_NR     = '00000001'.
      VERSION_LANGU2 = SY-LANGU.
      TITLE_FLAG     = '1'.              " -> BDN
    * -- get the mimetype of the docuclass                              -- *
    *PERFORM MIMETYPE_GET(OAALL) USING FILE_EXTENSION
    *                            CHANGING I_TOADD.
      DATA: I_DOCUMENTCLASS TYPE TOADD-DOC_TYPE.
      MOVE FILE_EXTENSION TO I_DOCUMENTCLASS.
      SET LOCALE LANGUAGE SY-LANGU.
      TRANSLATE I_DOCUMENTCLASS TO UPPER CASE.               "#EC TRANSLANG
      SET LOCALE LANGUAGE SPACE.
      SELECT SINGLE * FROM TOADD INTO I_TOADD WHERE
                                 DOC_TYPE EQ I_DOCUMENTCLASS.
      IF SY-SUBRC NE 0.                    " nothing found -> default!
        I_TOADD-DOC_TYPE = I_DOCUMENTCLASS.
        I_TOADD-MIMETYPE = 'application/x-docType'.             "#EC NOTEXT
      ENDIF.
      MOVE I_TOADD-MIMETYPE TO MIMETYPE.
    * -- fill file and signature structure                              -- *
      CLEAR: I_FILES, I_SIGNATURE.
      REFRESH : I_FILES, I_SIGNATURE.
      DESCRIPTION = FILE_NAME.
      FILES-DOC_COUNT = 1.
      FILES-DIRECTORY = FILE_PATH.
      FILES-FILENAME  = FILE_NAME.
      FILES-MIMETYPE  = MIMETYPE.
      APPEND FILES TO I_FILES.
    * -- fill components and signature structure                        -- *
      COMPONENTS-DOC_COUNT  = 1.
      COMPONENTS-COMP_COUNT = 1.
      COMPONENTS-MIMETYPE   = MIMETYPE.
      COMPONENTS-COMP_ID         = FILE_NAME.
      APPEND COMPONENTS TO I_COMPONENTS.
      SIGNATURE-DOC_COUNT  = 1.
      SIGNATURE-PROP_NAME  = 'BDS_DOCUMENTCLASS'.
      SIGNATURE-PROP_VALUE = FILE_EXTENSION.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME = 'BDS_CONTREP'.
    *IF BDS_DOCTYPE_LIST-CONTREP = SPACE.
      SIGNATURE-PROP_VALUE = ' '.                               "#EC NOTEXT
    *ELSE.
    *  I_SIGNATURE-PROP_VALUE = BDS_DOCTYPE_LIST-CONTREP.
    *ENDIF.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'BDS_DOCUMENTTYPE'.
      SIGNATURE-PROP_VALUE = WA_TOADV-AR_OBJECT. "'ZSRVCXLS'."TR001+
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'DESCRIPTION'.
      SIGNATURE-PROP_VALUE = DESCRIPTION.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'LANGUAGE'.
      SIGNATURE-PROP_VALUE = VERSION_LANGU.
      APPEND SIGNATURE TO I_SIGNATURE.
      CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREA_TAB'
        EXPORTING
    *   LOGICAL_SYSTEM        =
          CLASSNAME             = 'BUS2222' "classname_select
          CLASSTYPE             = 'BO'" classtype_select
        CLIENT                = SY-MANDT
          OBJECT_KEY            = OBJECT_KEY
        BINARY_FLAG           = 'X'
    * IMPORTING
    *   OBJECT_KEY            =
        TABLES
          SIGNATURE             = I_SIGNATURE
          COMPONENTS            = I_COMPONENTS
        CONTENT               = I_FILE_CONTENT
    *   ASCII_CONTENT         =
    * EXCEPTIONS
    *   NOTHING_FOUND         = 1
    *   PARAMETER_ERROR       = 2
    *   NOT_ALLOWED           = 3
    *   ERROR_KPRO            = 4
    *   INTERNAL_ERROR        = 5
    *   NOT_AUTHORIZED        = 6
    *   OTHERS                = 7
      COMMIT WORK AND WAIT.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFUNCTION.
    Message was edited by:
            Raja T

  • Bluetooth does not work correctly with Siemens Tek Connect headphone device

    I hopefully tried the new bluetooth support in OS 3.0, but it does not work with my Siemens Tek Connect headphone device. It syncs as expected, but no sound is heard. I can choose the Tek Connect in the music app and other programs, my headphone (actually my two hearing aids, which are connected wireless with ear to ear communications (e2e) via the Tek Connect necklace device) signals the connection to me (a beep), but nothing is heard. Codec problem?
    Andreas

    I own Phonak hearing aids with their Bluetooth-capable iCom device which allows my aids to be used as a phone headset and also supports the A2DP stereo bluetooth profile. My iPod Touch 2Gen 32GB is able to play to my hearing aids properly.
    One thing I noticed is that the iPod does not allow you to control the volume when using Bluetooth. It expects the headphones to be able to control the volume. Have you used your hearing aids as Bluetooth headphones on any other device? Maybe the device isn't programmed properly to set the volume while in headphones mode. I know my audiologist had to program the volume on each mode separately on my device.
    My MacBook Pro is able to play music over Bluetooth to my hearing aids fine. But I have never gotten Windows to work properly sending audio to my hearing aids. Do you have a Mac with Bluetooth? Try to get that working to see if it's your hearing aid device that's causing the trouble or not.

Maybe you are looking for

  • Dynamic Value in where cluase..Ideas please..

    Hi All, Wishes.. Any idea for below problem Please.. Fields in Form 1: CONTROL      PO     FACTOR          TS_LAST_UPDATE    AMEND 19950927    739409  SPP               19-JUN-98       00           19950927    739409  SPP               19-JUN-98     

  • Is there a lock screen command in OS X similar to Screen Lock in Windows?

    I want to lock screen for a brief period of time, and didnt want to log out or shut down the system. Is there a lock screen command for this, so that I can lock it and unlock whenever I need? Or I am wondering if I can log out without closing the app

  • How to capture output of java files using Runtime.exec

    Hi guys, I'm trying to capture output of java files using Runtime.exec but I don't know how. I keep receiving error message "java.lang.NoClassDefFoundError:" but I don't know how to :( import java.io.*; public class CmdExec {   public CmdExec() {   p

  • Helpful Hint to get round builds of ungrouped objects in Keynote

    For those of you keen to 'build' a group of objects and have the build as a group there are two alternatives: 1. Add a build for each component of the 'group' but when choosing 'options' choose 'with build x' rather than 'after build x' 2. For an eas

  • Recording straight to hard drive

    Some friends of mine what to shoot on a Sony HDV V1U, and record straight to an external hard drive. Is the proper procedure to start FCP on a lap top and capture just like it was from a tape through fire wire or is there a better method for this? Th