Saving a plot as a hws file while pressing a button

I wanna save a plot received from a digital scope as a hws file while the button shown on the figure (its just a cutting/the important part of the program) below is in pressed (true) state.
But when im running this program and i press the button always a hws file of a constant length is saved. It makes no difference how long the button stays pressed.
What could be wrong?
Attachments:
save hws file.jpg ‏103 KB

Without knowing all of the details of your app, I see two issues that don't match up with what you mentioned you are trying to do.
1) The Open Waveform VI is set to "Create New Always", so at each iteration of your while loop, the old HWS file is being destroyed and a new one is getting created in it's place. If you are intending to append data to an HWS file, you must use the "Read/Write" permissions only.
2) Your inner for loop has a Create New Waveform VI inside of it. So what is happeing is that each iteration of your for loop is creating a new waveform inside of your HWS file rather than appending to the already existing one. HWS files can save multiple waveforms into one HWS file. I see you are naming each waveform, so I'm guessing this was intentional.
If you are trying to stream to a file only when the button is pressed, my guess is that your problem is with item 1) above. When the button is pressed, any existing HWS files at that filepath are getting destroyed, and a new one is getting created in it's place. So when your application is finished, you will have one file with one set up data in it. The data will be from the last while loop interation when the boolean was set to true.
If you are trying to append to an existing HWS file, you will need to open the file with Read/Write permissions and then use the Open Existing Waveform VI rather then the Create New Waveform VI inside of your for loop.
-JaredW

Similar Messages

  • Bex Analizer - while pressing "Open" button or any other there is no action

    Hello,
    We have a problem with Bex Analizer application installed on a certain computers (for example Dell 520 laptop or Dell GX 755 desktop computer). After installation there is no possibility to initiate application.
    The instalation ends successfully. I am choosing Start -->  Programs --> Bussiness Explorer --> Analyzer. The correct excel window with Bex Analyzer belt on the left side of the window appears. While pressing u201EOpenu201D button or any other button belonging to Bex Analizer, there is no any program action.
    Computer with this Bex Analizer problem has WinXP, Office 2003 installation, gui patch no. 13 (file: gui710_13-10002995.exe)  and BEX patch (file: bi710sp09p_902-10004472.exe). These files are also installed on other computers (for example Dell 630 laptop) and Bex Analizer works there correctly.
    Waiting for your reply.
    Adam Pikula

    Hi,
    Please try the following....
    Uninstall:
    .NET Framework, if this is not 2.0
    SAP GUI
    Install:
    .NET Framework 2.0
    SAP GUI 710 - install GUI and Business Explorer
    GUI path 11
    BI Add - on for GUI "bi710sp09p_902-10004472.exe"
    Other Way:
    Applying the patch attached to the OSS Note 1121263 - BEx Analyzer 7.10
    Applying the Microsoft patch : http://support.microsoft.com/kb/908002/
    Rgds,
    Murali

  • While Pressing the button i want to skip first screen in standard screen.

    Hello All,
    I need to create a z Program and call a screen variant of a standard transaction in it.
    I am calling a screen variant of transaction PA70 to hide some of the fields of the screen.
    Also the first screen is supressed.
    My requirement is while pressing back button it should not come on the first screen.
    while if i am doing the same thing with Transaction PA20 it is not coming back to first screen.
    How can i supress this first screen while coming back?
    Regards.

    Hi,
    Use:
    "set al the field values on the initial screen of the transaction and then use
    CALL TRANSACTION '<t-code>' AND SKIP FIRST SCREEN.
    Now you will be navigated to second screen of the transaction, when you click, you will be navigated to your program selection screen.
    Hope this helps you.
    Regards,
    Tarun

  • All of a sudden i'm getting this pop up box saying 'could not complete your request.  File is locked. '  Did i mistakenly lock the file by pressing a button without realizing it?

    all of a sudden i'm getting this pop up box saying 'could not complete your request.  File is locked. '  Did i mistakenly lock the file by pressing a button without realizing it?

    >> "NSDArray...[numbers/letters]".
    That's an error from the OS leaking into Photoshop.  It is due to a bug in MacOS 10.10 that occurs in the open and save dialogs (which are controlled by the OS). Apple is aware of this and working on solutions.
    Some people have had luck changing the view in the open/save dialogs to grid view or list view.

  • Am having major issues! this does not work i dont understand..does the ipod have to be off while pressing the buttons if so how is it possible if it is connected to the computer either way it turns on..and when i tried these steps while the ipod was on it

    i am having major issues! this does not work i dont understand..does the ipod have to be off while pressing the buttons if so how is it possible if it is connected to the computer either way it turns on..and when i tried these steps while the ipod was on it still doesnt  work it just asks me “slide to power off” please someone help me i just cant seem to put my ipod in DFU mode

    To get the iPod in recovery mode and DFU mode you first have to turn the iPod off.
    Just what is the problem you are tying to resolve?
    Sometimes you have to let the battery fully drain if you can't turn the iPod off. After charging for at least hour try again.

  • LIRC - 100% cpu usage while pressing a button

    Hi all.
    I'm having some problems with latest lirc versions. It just uses 100% of my cpu while I press any key on the remote. For example, with xbmc, pressing a remote control button makes a one second video lag and frame dropping due to high cpu usage...
    I'm using latest kernel and lirc in testing repo
    Pinnacle pctv remote (and receiver, rs232 ou ttyS0).
    I can't follow the wiki since kernel 2.6.25 (maybe), if i do modprobe lirc_serial (and before a setserial uart none), on irw, nothing happens. -> this used to work before.
    I've edited /etc/conf.d/lircd in order to make this remote to work. I don't need anymore to load lirc_serial and remote works... but uses ALL CPU resources.
    Solutions? Anyone with same problem?
    Thanks friends:D
    Last edited by TigTex (2009-07-08 02:11:22)

    What about a "bump" to this...
    Bump

  • Strange error while pressing a button

    Hello. I am having trouble when clicking on a button... it gives me the following error and I have no idea what this means.
    - Thank you
    Franklin Angulo
    javax.servlet.ServletException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:824)
         org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.java:69)
         org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:747)
         java.security.AccessController.doPrivileged(Native Method)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:745)
         org.apache.jsp.opcventan_jsp._jspService(opcventan_jsp.java:78)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    root cause
    java.lang.IllegalArgumentException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
         com.sun.faces.util.Util.getSelectItems(Util.java:642)
         com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:488)
         com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:465)
         com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:430)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:712)
         javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:616)
         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:539)
         com.sun.faces.taglib.html_basic.SelectOneMenuTag.doEndTag(SelectOneMenuTag.java:505)
         org.apache.jsp.opcventan_jsp._jspx_meth_h_selectOneMenu_0(opcventan_jsp.java:288)
         org.apache.jsp.opcventan_jsp._jspx_meth_h_form_0(opcventan_jsp.java:150)
         org.apache.jsp.opcventan_jsp._jspx_meth_f_view_0(opcventan_jsp.java:110)
         org.apache.jsp.opcventan_jsp._jspService(opcventan_jsp.java:71)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         java.security.AccessController.doPrivileged(Native Method)
         java.security.AccessController.doPrivileged(Native Method)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    note

    What other components do you have on your form?
    When you click a button that typically submits the form, at which time converters and validators will be applied to you inputtext and dropdown components etc.
    Looking at your messages, something with select items looks like it could be the issue - do you have a dropdown or some other list component?
    if you don't want the converters/validators to be triggered, you can set the immediate property on the button itself... this is something we do at times when the button will navigate to another form and the validation is not needed (we intend to discard the values anyway).
    hyh,
    Val

  • Urgent: getting error while pressing SAVE button on final grid screen

    Hi ABAPers,
          please help me to sort this problem, i want to save the records selected by the user to database table. but when i m pressing save on o/p grid screen its giving error as GETWA_NOT_ASSIGNED.
    This is my code
    TABLES: plaf,
            mara,
            makt,
            zcdr_d.
    Type Pools for ALV *************************************
    TYPE-POOLS: SLIS,
                ABAP.
    TYPES DECLARATION ************************************
    TYPES:
    ******Types declaration for the plaf
    BEGIN OF ty_plaf,
    plnum TYPE plaf-plnum,
    matnr TYPE plaf-matnr,
    END OF ty_plaf,
    ******Types declaration for the makt
    BEGIN OF ty_makt,
    maktx TYPE makt-maktx,
    END OF ty_makt.
    INTERNAL TABLE DECLARATION ***************************
    DATA:
    *---internal table for the type ty_plaf
    it_plaf TYPE TABLE OF ty_plaf,
    *---internal table for the type t_bseg
    it_makt TYPE TABLE OF ty_makt,
    *---internal table for fieldcat
    it_fcat TYPE TABLE OF slis_fieldcat_alv WITH NON-UNIQUE DEFAULT KEY
    WITH HEADER LINE INITIAL SIZE 0,
    *it_fcat1 TYPE TABLE OF slis_fieldcat_alv WITH NON-UNIQUE DEFAULT KEY
    *WITH HEADER LINE INITIAL SIZE 0,
    *---internal table for alv events
    it_events TYPE TABLE OF slis_alv_event WITH NON-UNIQUE DEFAULT KEY
    WITH HEADER LINE INITIAL SIZE 0,
    *it_events1 TYPE TABLE OF slis_alv_event WITH NON-UNIQUE DEFAULT KEY
    *WITH HEADER LINE INITIAL SIZE 0,
    *---final Internal table
    BEGIN OF it_final OCCURS 0,
    plnum LIKE plaf-plnum,
    sel TYPE C,
    matnr LIKE plaf-matnr,
    maktx LIKE makt-maktx,
    END OF it_final,
    BEGIN OF it_zcdr_d OCCURS 0,
    DSEL TYPE C,
            CBOOKNO LIKE zcdr_d-CBOOKNO,
            PLNUM LIKE zcdr_d-plnum,
            MATNR LIKE zcdr_d-matnr,
            MAKTX LIKE zcdr_d-maktx,
    END OF it_zcdr_d,
    *-------to pass the internal table data to database table
    itab TYPE TABLE OF zcdr_d with header line,
    it_save TYPE TABLE OF zcdr_d with header line.
    WORK AREA DECLARATION ********************************
    DATA:
    *---workarea for the type ty_plaf
    wa_plaf TYPE ty_plaf,
    *---workarea for the type ty_makt
    wa_makt TYPE ty_makt,
    *---workarea for the fieldcatalog
    wa_fcat TYPE slis_fieldcat_alv,
    wa_final LIKE LINE OF it_final,
    *---WORKAREA FOR THE PROCESSED DOCUMENT
    wa_zcdr_d LIKE LINE OF it_zcdr_d,
    *---LAYA OUT DECLARATION
    wa_layout TYPE slis_layout_alv.
    *---LAYA OUT DECLARATION
    *wa_layout1 TYPE slis_layout_alv.
    Variables DECLARATION ********************************
    DATA: v_repid LIKE SY-REPID,
               v_hkont LIKE bseg-hkont,
               v_pifno(16) TYPE C,
               v_pifdat LIKE SY-DATUM,
               v_pif(6) TYPE C,
               Field_Cat type Slis_T_fieldcat_alv with HEADER LINE,
               List_Top_Of_Page type Slis_T_Listheader.
    PARAMETERS ****************************************
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS : CBOOKNO(16) TYPE n OBLIGATORY.      "Customs Book number
    SELECTION-SCREEN END OF BLOCK b1.
    SELECT OPTION ****************************************
    SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS:
    Date
    so_pertr for plaf-pertr,
    Material
    so_matnr for plaf-matnr,
    Material Group
    so_matkl for mara-matkl,
    Plant
    so_plwrk for plaf-plwrk OBLIGATORY,
    Sales Order
    so_kdauf for plaf-kdauf.
    SELECTION-SCREEN : END OF BLOCK blk.
    LOAD OF PROGRAM ***************************************
    *LOAD-OF-PROGRAM.
    *IF sy-tcode NE text-002. "Condition for TCode Check
    MESSAGE 'RUN THROUGH THE TRANSACTION CODE' TYPE 'X'.
    *ENDIF. "End Condition for TCode
    INITIALIZATION ****************************************
    INITIALIZATION.
    PERFORM CLEAR_DATA.
    CLEAR: wa_layout.
    START-OF-SELECTION *************************************
    START-OF-SELECTION.
    *-------Getting the data from database
    PERFORM GET_DATA.
    *-------Populating field catalog
    PERFORM populate_fieldcatalog.
    PERFORM set_events USING it_events[].
    PERFORM top_of_page.
    *------Processing the Data and Moving to final Internal Table
    *PERFORM PROCESS_DATA.
    *------Displaying the data in the Output
    PERFORM DISPLAY_OUTPUT.
    *end-of-SELECTION.
    *call screen 0500.
    **&      Module  d0100_set_status  OUTPUT
          text
    *module d0500_set_status output.
    data : rt_extab TYPE slis_t_extab.
    perform set_pf_status USING rt_extab.
    *endmodule.                 " d0100_set_status  OUTPUT
    *module d0100_fcode input.
    perform user_command.
    *endmodule.                 " d0100_fcode  INPUT
    form CLEAR_DATA .
    **CLEARDING THE TABLES AND WORK AREAS
    CLEAR: it_plaf[],
    it_makt[],
    wa_plaf,
    wa_makt.
    endform. " CLEAR_DATA
    *& Form GET_DATA
    text
    --> p1 text
    <-- p2 text
    form populate_fieldcatalog.
      DATA: L_POS TYPE I.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    field_cat-SELTEXT_M = 'Planned Order Nos.'.
    field_cat-tabname = wa_final.
    field_cat-fieldname = 'PLNUM'.
    append field_cat.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    *field_cat-checkbox = 'X'.
    field_cat-SELTEXT_M = 'Check Box'.
    Field_Cat-outputlen = '1'.
    field_cat-tabname = wa_final.
    field_cat-checkbox  = abap_true.
    field_cat-edit = abap_true.
    field_cat-fieldname = 'CHK'.
    append field_cat.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    field_cat-SELTEXT_M = 'Material'.
    field_cat-tabname = wa_final.
    field_cat-fieldname = 'MATNR'.
    append field_cat.
    FIELD_CAT-COL_POS   = L_POS.
    L_POS = L_POS + 1.
    CLEAR FIELD_CAT.
    field_cat-SELTEXT_M = 'Material Description'.
    field_cat-tabname = wa_final.
    field_cat-fieldname = 'MAKTX'.
    append field_cat.
    endform. "  build_fieldcatalog
    form GET_DATA .
    SELECT
              a~PLNUM
              a~MATNR
              b~MAKTX
              c~matkl
              INTO CORRESPONDING FIELDS OF TABLE it_final
              FROM plaf as a
              Inner join makt as b
              on amatnr  = bmatnr
              Inner join mara as c
              on cmatnr = bmatnr
              where a~pertr in so_pertr
                    or a~matnr in so_matnr
                    or c~matkl in so_matkl
                    or a~kdauf in so_kdauf
                    or a~plwrk in so_plwrk.
    SORT it_final by plnum.
    endform. " GET_DATA
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = List_Top_Of_Page.
      ENDFORM.
    form DISPLAY_OUTPUT .
    DATA:   repid LIKE sy-REPID,
            Eventcat type Slis_T_Event,
            LAYOUT TYPE SLIS_LAYOUT_ALV.
        LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
        LAYOUT-ZEBRA = 'X'.
    repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                  =  repid
       I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
       I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      = 'PLANNED ORDERS'
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         = layout
       IT_FIELDCAT                       = Field_Cat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
       I_SAVE                            = 'X'
      IS_VARIANT                        =
      IT_EVENTS                         = IT_EVENTS[]
      TABLES
        T_OUTTAB                          = it_final
    EXCEPTIONS
      PROGRAM_ERROR                      = 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.
    ENDFORM.
    FORM set_events USING it_events TYPE slis_t_event.
    DATA: x_event TYPE LINE OF slis_t_event.
    clear x_event.
    x_event-name = 'USER_COMMAND'.
    x_event-form = 'USER_COMMAND'.
    append x_event to it_events.
    CLEAR x_event.
    call function 'REUSE_ALV_EVENTS_GET'
      EXPORTING
        I_LIST_TYPE           = 0
      IMPORTING
        ET_EVENTS             = IT_EVENTS
      EXCEPTIONS
        LIST_TYPE_WRONG       = 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.
    read table it_events into x_event with key name = 'USER_COMMAND'.
          if sy-subrc = 0.
          x_event-form = 'USER_COMMAND'.
          modify it_events from x_event index sy-tabix transporting form .
          endif.
    ENDFORM.
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'Z_PFSTAT'.
    ENDFORM. "set_pf_status
    *& Form user_command
    text
    -->R_UCOMM text
    -->RS_SELFIELDtext
    FORM user_command USING
             r_ucomm TYPE sy-ucomm
             rs_selfield TYPE slis_selfield. "#EC *
    if r_ucomm = '&DATA_SAVE' .
    LOOP AT it_final INTO wa_final.
    IF wa_final-sel EQ 'X'.
    MOVE: wa_final-plnum TO it_save-plnum,
    wa_final-matnr TO it_save-matnr,
    wa_final-maktx TO it_save-maktx,
    v_pifno TO it_save-CBOOKNO,
    SY-MANDT TO it_save-mandt.
    MOVE it_save to zcdr_d.
    *INSERT zcdr_d.
    *if l_valid = 'X'.
    MODIFY zcdr_d FROM TABLE it_save.
    endif.
    ENDLOOP.
    IF it_save is initial.
    MESSAGE 'Select Atleast one Check Box' TYPE 'E' .
    ELSE.
    *CONCATENATE 'Number ' V_PIFNO ' Genrated'
    IF SY-SUBRC EQ 0.
    MESSAGE S001(zcdr_d) WITH 'Number ' CBOOKNO ' Genrated'.
    ENDIF.
    endif.
    ENDFORM.

    Thanks a lot for the reply Kiran, but i have already checked it, but its the same one. In debugging mode its going for error when there is a call for method like: 
    call method gt_grid-grid->set_function_code
          changing
            c_ucomm = l_okcode.
    so i dont know where is the problem. & this is in PAI module of the system program.
    Thanks
    Pankaj

  • Execute Report, while pressing push button

    Hello friends,
    I have a selection-screen with some parameters or so..... now I want to place a pushbutton over this screen ( how to place a pushbutton, do I need a dynpro). when user press this pushbutton, I want to execute a report, and have to send parameters to this report?
    is this possible in ABAP ?
    Many thanks for your kind help....

    HI Syed,
      To call a report program from another report, use
    SUBMIT statement.
    You can pass the values from the first report to the second report using export /import statements or with ranges addition.
    Example
    The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
    Program accessed
    REPORT report1.
    DATA text(10) TYPE c.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
    DATA: text(10)   TYPE c,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Ravi

  • Is it possible to import and display/plot (Google Earth) KML files as overlays in Mac OS 10.9 Maps application?

    Is it possible to import and display/plot (Google Earth) KVM files as overlays in Mac OS 10.9 Maps application?
    Here is the particular application: (note I haven't gotten the code to compile yet -- seems to be several differently named environment variables in Mac unix than in Linux that are making the compile blow up -- but that's another issue) there is a freeware application that can do radio path loss prediction and plot path loss contours on a map. It has an option to output the data as KML files which can be imported into Google Earth, in order to display the path loss contours on Google Earth maps. I guess you could liken it to displaying overlays of GIS-like data in Google Earth. I would like to know if there is a mechanism to facilitate importing KML data files to overlay (preferably in a translucent fasion so that you could see the underlying map) onto Mac OS 10.9 Maps?

    varjak paw wrote:
    They're also known to patent things they never release. So while it indicates that they're investigating such things, a patent application is no guarantee that anything will ever come of it, much less be immanent. And that application was filed in 2012 and is really for something rather different.
    Regards.
    As I stated, "possibly."
    While the commerce side of it has little to do with the KML files, per se, the API for the layer data should allow for any type of overlay.
    Also, the patent was filed Dec 19, 2013. There was a related patent filed in 2012. Not sure what it is about.

  • How does I read a HWS file that contains 2 traces, in labview? (error -21508)

    Dear experts,
    I have been using a PXI-5105 acquisition card to save data from 2 channels at the same time (coming from different sensors).
    Up to now I have been reading the files in Matlab, taking into consideration the group name, the trace name and the coefficients of each channel. I was able to do the post-processing of the data in Matlab. I attach an example of the kind of files I'm handling if it helps, inside a zip.
    Now I would like to implement this post-processing (FFT, etc.) in Labview. I have tried to use a couple of examples such as "hws_low_level_read.vi" or even the HI-HWS Express load utility to check the file, but it seems difficult to read it because of the 2 channels saved inside the same file.
    The error -21508 appears at the "niHWS Get Wfm reference.vi". That refers to:
    Error -21508 occurred at niHWS Get Wfm Reference.vi
    Possible reason(s): NIHWS:  There is no group in the file that matches the provided group name
    And it seems odd to me, as I'm using the same name for group (wfm_group0) and trace(vector0) than I was using in Matlab.
    Anything I'm missing? Any hint on how to read it in any way?
    Thanks you very much in advance for your help
    Best regards
    IñigoA
    Solved!
    Go to Solution.
    Attachments:
    EjempleHWS2channels.zip ‏44 KB

    Dear all,
    I have been struggling with that problem today and I just wanted to post here how I have finally found a way to read the data.
    It is so easy that I'm a bit ashamed, but I think it is worthy to answer in case anyone would need it.
    The "niHWS Get wfm Reference" is asking for a Group Name and for a waveform name. I have used the "niHWS Get Group Name" and the "niHWS Get wfm Name". Both have direct outputs (strings) with the information that "niHWS Get wfm Reference" understands. You can directly link them.
    But actually, in the reading of the data I found that the group name doesn't need to be fulfilled and the waveform name is "0" or "1" in cae you have 2 channels.
    So, you see, it was very easy for my HWS file: put a control and select "0" or "1" for waveform name. The simpler the better, jejeje.
    I hope it helps. And sorry for opening the question I'm now answering myself. I was completely lost yesterday.
    Best regards
    IñigoA

  • I cannot open pdf file while browsing on my galaxy tab 10.1, I must download fisrt, why?

    I am wanting to view pdf files while I am browsing on my galaxy tab 10.1. The browser will not open the pdf. I always get the download screen asking what to name the file and where to put it.

    Adobe does not have a pdf plugin for Android. All pdf files will need to be saved and opened with a pdf reader external to the browser.

  • How do I concatenate 2 HWS files or 2 WDT waveforms?

    In SignalExpress, I would like the generated data AND the acquired data in the same HWS file.  I tried to do 2 'Save to HWS' steps, the first with the outputs, the second with the inputs. SignalExpress will not allow me to do this since it cannot write to a file that's already opened.
    I thought LabVIEW could help me. I would like to take the WDT from the generate file and the WDT resulting from the acquire process and combine them before saving them. Any ideas?

    You can only combine samples within a single HWS file. HWS does not support the concatenation of signals in a digital waveform datatype.
    It is easy in LabVIEW to do this before saving your data to HWS.  There is a built in digital waveform datatype VI called "Append Digital Signals.vi". This VI takes two waveforms as input, and concatenates the signals together into a new waveform. For instance, if waveform A had 4 signals and 1000 samples, and waveform B had 12 signals with 1000 samples, the resulting waveform will be 16 signals with 1000 samples.  I think this is what you are looking for.
    To find this VI in the palettes, go to the Waveforms palette, then click the Digital Waveform palette. The VI will be in the Digital Waveform palette.

  • ActiveX Excel Prevent Open File While Writting

    I'm having some of the same problems with Excel and ActiveX found here:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=254019&view=by_date_ascending&page=1
    The last post from the above link gives an acceptable workaround (not ideal, but hey, what can you do?) to preventing the user from closing Excel when files are being written to with ActiveX through LabVIEW (since a user can open an Excel file while LV is writting to Excel files with ActiveX and all the files will share the same Excel application, instead of Excel opening a seperate application like one would hope).
    My question for this post: In the previous post Ben had a problem with the user opening a different Excel file than those being written to. My VI opens an exisiting Excel file (test.xls) and writes to it. If the user opens test.xls while LV is still writting test.xls, it will throw an error. Note that the error is not thrown if test.xls is open before the VI starts writting to it, only if the user opens it while its being written to by LV.
    Any ideas on how to lock the file so the user can't open it while it is being used by LV?
    Michael

    Thanks thols. Thats a great solution, I actually had tried it but gave it up since the user could close out of "their" Excel (closing the reference), then open a new spreadsheet which would open in "my" Excel (if done while my subVI was still writing to Excel). At the time, this was a possible scenario for my program, and since I was writing so slowly had happened. I just sped up the writing of the Excel file (I had all the data to write, but was writing with "Set Cell Value.vi", which wrote one cell at a time; instead I wrote whole ranges of data). If Excel was already open, I would set interactive to false and have my spreadsheet minimized while writing to it. If Excel wasn't open, I would just make it invisible. Since I cut the time down to about a second, this worked for my application.
    Michael

  • One or more required office component failed to complete successfully for more information, consult the setup log file. while uninstallation of sharepoint 2013

    One or more required office component failed to complete successfully for more information, consult the setup log file. while uninstallation of sharepoint 2013

    go to start > run > type %temp% > here check for latest file and provide us details in that log file
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for

  • How to connect my iPad 2 tv

    I have the first iPad 2 version and I bought the hdmi to connect to tv screen but when I blog the HDMI to my IPad a not shows Up this accessory is not supported by iPad what should I do ?

  • How to set a default value in the "Our reference"-field in purchse orders?

    Hi! When creating a purchase order the "Our reference"-field in the Communication-tab is empty. Is it possible to configure this so that the field is filled by default with the name of the person who is creating the PO?

  • Auto-Provisioning Guest Accounts

    Guys Whilst on a recent wireless PVT I heard mention of a method of auto provisioning guest accounts. The system appeared to use some sort of keypad device that the guest entered details into. This device then used Radius to generate a guest account

  • IMac G3 Rev.A refuses to boot from an OS 9 installation CD.

    My iMac has first got Mac OS 9.0 on it. Then I just swapped in a new HD and installed Jaguar. After that I realised that I need OS 9 to run in classic mode, so I put in my OS 9.0.4 CD and booted it holding down the C key. Doesn't work. Tried selectin

  • X-Fi I/O Drive ca

    Hi I just got a X-FI Platinum. My computer case is modded and i have uv sensiti've cables inside with cold cathodes. Well the cable coming with the X-Fi to plug the I/O Dri've is ugly. So i wonder can i use a normal IDE cable to plug it ? Please answ