How to set PFI pins as input/output

Hi...
I want to set PFIs as input/out but I don't know how to deal with it. I try to find the function but nothing can set in PFIs.
I want to trigger with PFI 1.
Thanks in advance for any kind help!!

Hello jtanabe,
You are correct.  The example posted above in
Traditional DAQ is used to input a trigger signal to the card.  The PFI
pins allow you to route signals into and out of your card, they are not capable
of directly generating signals.  To generate a square wave you would use
either a counter or digital line.  A counter would allow you to generate a
square wave with a specific frequency and duty cycle, and a digital line would
allow you to do something similar depending on the card you have.  For
example with an E Series device you write a single value to a digital port at a
time, and therefore it is software timed.  The frequency you can update
the digital port/line will completely depend on your software and the speed of
your system.
For more information on PFI lines please see a PFI
Knowledge Base found here.  If you are just starting out, or if you are
using an M Series Board I would recommend (if your hardware supports it) using
the DAQmx driver.  It is easier to create applications, and it allows you
to use the Data Acquisition Assistant Express VI if you are using LabVIEW.  There are examples that demonstrate how to generate square waves online and in NI Example Finder.  If you are using LabVIEW you can find examples by selecting Help >> Find Examples.  In the window that appears select Hardware Input and Output >> NI-DAQmx >> Generating Digital Pulses.
Regards,
Jesse O.
Applications Engineering
National Instruments
Jesse O. | National Instruments R&D

Similar Messages

  • How to set the gain and input coupling for each channel on a NI 4462 DaQ card?

    I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain.  Also the same problem with input coupling
    Does anyone know how to set the gain and input coupling for each individual channel?
    Thanks,
    Hector
    LabView 8.5 Windows XP

    Hey Hector,
    http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
    This has a few examples of how to do that.  Let me know if you have further questions.
    Have fun!
    -gaving

  • How to set focus on invisible input field?

    Hi Guys,
    I need an invisible input field and have to set an input focus on it. My problem is that if I set input field’s property visible=blank, I get my invisible field <b>BUT</b> the function call doesn’t work (setInput.requestFocus()).
    I suppose that I can’t set a focus if an input field is invisible.
    Does somebody know how can I solve my problem? Is there a possibility to do this input field invisible with java script? If yes, how does it work in Web Dynpro?
    Thanks
    Marita

    Hi
      Setting a focus on invisible input field will not work even if you follow the method what sowjanya has suggested. The method wdThis.wdGetAPI().requestFocus() will not work for read-only and disabled fields.
    By the way why do you want to set the focus on a invisible input field. If you can tell us the requirement maybe we could think of an alternate solution. But i guess for the current scenario setting focus on invisible input field does not work.
    regards
    ravi

  • How to automatically retrieve a task Input/Output structure in SAPUI5?

    Hi guys,
    I am trying to figure out a way to automatically retrieve the complex type specified as a task input/output without hard coding the name of the complex type. So far I have a process with two reporting activities and a task, built as a custom technologies with specified Input and Output from the process context. Then I built a UI where I created an OData model, whose properties I bound to properties of the model, but this happened by exactly specifying the name of the complex type in the controller:
    // bind customer data (i.e. the task input data) to the panel
      customerDataPanel.bindElement("/InputData('" + taskId + "')", {expand : "Customer"});
    and the exact attribute names in the view:
      oMatrix.createRow(
       new sap.ui.commons.Label({text : "First Name", design : sap.ui.commons.LabelDesign.Bold }),
       // property binding of a text field to the attribute in Customer object
       new sap.ui.commons.TextField({value : "{Customer/firstName}"})//property binding
       oMatrix.createRow(
       new sap.ui.commons.Label({text : "Last Name", design : sap.ui.commons.LabelDesign.Bold }),
       new sap.ui.commons.TextField({value : "{Customer/lastName}"})//property binding
       oMatrix.createRow(
       new sap.ui.commons.Label({text : "Street", design : sap.ui.commons.LabelDesign.Bold }),
       new sap.ui.commons.TextField({value : "{Customer/address-street}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "City", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-city}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Zip", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-zip}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Country", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-country}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Currency", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/currency}"})   //property binding
      oMatrix.createRow(
        new sap.ui.commons.Label({text : "RequestNr", design : sap.ui.commons.LabelDesign.Bold }),
        new sap.ui.commons.TextField({value : "{Customer/requestNr}"})   //property binding
    Is it possible for this binding to happen automatically in some kind of way without me specifying every single attribute name? As you can imagine in a real project, there will be even more complex types used in the UI and it is not feasible at all to have to specify each and every single attribute's name.
    Any suggestions will be much appreciated.

    Hi Deepa,
    How about adding another action to the "Add Company" Button which will also trigger the search?
    See:
    http://help.sap.com/saphelp_nwce711/helpdata/en/48/17fbc3a3050be8e10000000a42189d/frameset.htm
    And:
    http://help.sap.com/saphelp_nwce711/helpdata/en/ae/facedea03743f18aaf2edf12465fd8/frameset.htm
    For more details.
    Hope this helps.
    Regards.
    Omer.

  • How to set cureent date as input field in alv

    Hi Experts
        I have created an Alv report.In that report i have an input field Created Date.
        how to set the current date default in the alv input.Plz guide

    Hi ,
    In the internal table declare a field of type D and pass the sy-datum.  this will solve ur problem.
    Hope information shall be useful.
    Regards
    Santosh Kumaar.M

  • How to get center alignment of Input/Output field in Module Pool

    Hi Friends,
    I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
    Thank U in advance.
    Mahender.

    Hi,
    Use syntax "Centered".
    take one variable push into the field
    write w_variable1 to w_variable2 centered.
    next push the varaible to Destination screen input/output Field .
    Make sure the Field the Character Type.
    Prabhud@s

  • How to set focus on an input field by coding?

    Dear friends,
    Do you have such experience if we can set focus on an input field by code?
    Thanks and best regards,
    Anders

    Hi,
    There are two ways to set the focus of an inputfield.
    1) In the BSP page add the attribute focus to an inputfield and set it to true.
    Ex: <thtmlb:inputField id = "test"
                          focus = "TRUE"/>
    2) Using the P-getter in the case where the inputfield is created using the config tool.
    Ex: CASE iv_property.
    WHEN if_bsp_wd_model_setter_getter=>fp_focus.
    rv_value = abap_true.
    ENDCASE.
    regards,
    MuralidharPrasad.C

  • How to set a selected checkbox in output internal table of oops ALV grid

    Hi All,
    i have a checkbox as first column in my ALV grid output using oops alv, when i select some checkbox, that rows have to be selected and i need to process only selected rows in user command.
    i have given the below code also in fieldcatolg.
    f_fldcat-fieldname = 'checkbox'.
    f_fldcat-tabname ='gi_output'
    f_fldcat-checkbox = 'X'.
    f_fldcat-edit = 'X'.
    but the checkbox is not getting set in internal table when i select some checkboxes.
    can anybody explain y the checkbox in internal table not getting set?
    Thanks,
    Srilakshmi.

    Hi,
    i tried already whatever u said, but still not resolved.Pasted my code below..can u please look into it.
    MODULE pbo OUTPUT.
      PERFORM init_container.
      PERFORM prepare_field_catalog.
      PERFORM prepare_layout.
      PERFORM display_output.
    ENDMODULE.                 " PBO  OUTPUT
    *&      Module  PAI  INPUT
          text
    MODULE pai INPUT.
       DATA: lt_rows TYPE lvc_t_row.
      CASE gv_okcode.
        WHEN gc_exit OR gc_back OR gc_canc. " Finish program
          LEAVE PROGRAM.
          when 'PRINT'.
           CALL METHOD gv_grid->get_selected_rows
                     IMPORTING et_index_rows = lt_rows.
            CALL METHOD cl_gui_cfw=>flush.
      ENDCASE.
    ENDMODULE.                 " PAI  INPUT
    *&      Form  INIT_CONTAINER
          text
    FORM init_container .
      CREATE OBJECT gv_custom_container
        EXPORTING
          container_name = gc_container.
      CREATE OBJECT gv_grid
        EXPORTING
          i_parent = gv_custom_container.
      CREATE OBJECT gv_document
        EXPORTING
          style = 'ALV_GRID'.
    *&      Form  PREPARE_FIELD_CATALOG
          text
    FORM prepare_field_catalog .
      PERFORM fill_catalog USING:
    'Table Name'   'Field Name' 'NoZero'   'sel-text'
      'GI_OUTPUT'  'CHECKBOX'   ' '           text-013  'X',
      'GI_OUTPUT'  'KUNNR'      'X'           text-003  ' ',
      'GI_OUTPUT'  'NAME1'      ' '           text-004  ' ',
      'GI_OUTPUT'  'BELNR'      'X'           text-005  ' ',
      'GI_OUTPUT'  'BLART'      ' '           text-006  ' ',
      'GI_OUTPUT'  'BUDAT'      ' '           text-007  ' ',
      'GI_OUTPUT'  'BLDAT'      ' '           text-008  ' ',
      'GI_OUTPUT'  'DMBTR'      ' '           text-009  ' ',
      'GI_OUTPUT'  'WAERS'      ' '           text-010  ' '.
    ENDFORM.                    " PREPARE_FIELD_CATALOG
    *&      Form  FILL_CATALOG
          text
    FORM fill_catalog  USING    fv_tabname
                                fv_fldname
                                fv_nozero
                                fv_seltxt
                                fv_checkbox.
      DATA f_fldcat TYPE lvc_s_fcat.
      f_fldcat-fieldname     = fv_fldname.
      f_fldcat-tabname       = fv_tabname.
      f_fldcat-no_zero       = fv_nozero.
      f_fldcat-coltext       = fv_seltxt.
      f_fldcat-checkbox      = fv_checkbox.
      IF fv_checkbox = gc_x.
        f_fldcat-edit = gc_x.
      ENDIF.
      APPEND f_fldcat TO gi_fieldcat.
    ENDFORM.                    " FILL_CATALOG
    *&      Form  PREPARE_LAYOUT
          text
    FORM prepare_layout .
      gs_layout-info_fname = 'COL'.
      gs_layout-cwidth_opt = gc_x.
      gs_layout-zebra      = gc_x.
      gs_layout-no_toolbar = gc_x.
      gs_layout-no_rowmark = '1'.
      gs_layout-sel_mode = 'A'.
    ENDFORM.                    " PREPARE_LAYOUT
    *&      Form  DISPLAY_OUTPUT
          text
    FORM display_output .
      CALL METHOD gv_grid->set_table_for_first_display
        EXPORTING
          is_layout       = gs_layout
        CHANGING
          it_outtab       = gi_output
          it_fieldcatalog = gi_fieldcat.
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_user_command FOR gv_grid.
    CALL METHOD cl_gui_control=>set_focus EXPORTING control = gv_grid.
    ENDFORM.                    " DISPLAY_OUTPUT

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

  • How to set focus on a input field in a selected row of a table?

    In a previous discussion (http://scn.sap.com/thread/3564789) I asked how to access an input (sap.m.Input) field of a selected row in a table. In the answer that was supplied I was shown how to get the items of the table. Then using the selected index to get the selected item get the cells. Then I could set editable on the proper cell(s). This worked fine.
    Now I need to set the focus on one of the fields. I tried something like this:
                var oNewLink = table.getSelectedItem();
                var oNewLinkName = oNewLink.getCells()[1];
                oNewLinkName.focus();
    But this doesn't seem to work.
    I have searched through other discussions and have seen this technique for putting focus on a field if you have its ID:
    sap.ui.getCore().byId(id_of_the_input_field).$().focus();
    In my case though I do not have an ID since the row and its cells are generated. How can I set focus on the cell of a certain row in a table?

    Hello Venkatesh. Yes that code does work. First I tried it on a table cell that was already rendered and it did work. The next time I tried it on a table row that was being added and it did not work there. So I added an on after rendering function for the table and added that code there. That did not work until I added a delay (timeout) to do a context switch before calling the focus and that worked.
    Once last thing though sometimes when I call focus on an input field (actually in a table row cell) if the field has text in it already the flashing cursor is at the beginning of the text and other times it is at the end of the text (which is the desired way). It depends on where I click in the row. Is there anyway to make sure the flashing cursor is at the end of the text when the focus is applied to a field that contains text?

  • How to set value to a input list of values?

    Hi,
    I'm using Jdev 11.1.2.0
    I'm using model driven input list of values in page.
    In inputtext of that list of values, When I entering the exact value(if only one value exists with that value)  say for example 100, then that value is getting set to inputlistvalues without opening the popup.
    But if i enter 10 and then click on enter then popup launches with values like 10,100,101,1001... (starts with 10).
    Is there any possibility that we can do like, if i enter exact value which is exists in the list of values, then that value should be set without launching the popup to show more values?
    How to achieve this.
    Any suggestion would be appreciated.
    Thanks.

    <af:inputComboboxListOfValues id="departmentNameId"
              popupTitle="Search and Select: #{bindings.DepartmentName.hints.label}"
              value="#{bindings.DepartmentName.inputValue}"
              model="#{bindings.DepartmentName.listOfValuesModel}"
              required="#{bindings.DepartmentName.hints.mandatory}"
              columns="#{bindings.DepartmentName.hints.displayWidth}"
              shortDesc="#{bindings.DepartmentName.hints.tooltip}">
    <af:autoSuggestBehavior   suggestedItems=""#{bindings.DepartmentName.suggestedItems}" />
          <f:validator binding="#{bindings.DepartmentName.validator}"/>
        </af:inputComboboxListOfValues>
    try this if it helps ....

  • How to set  JCO.Table as input parameter

    RunTest.java
    Reservation reservation=new InvReservation();
              reservation.setRSNUM("0001");
              reservation.setMATNR("cellphone");
              reservation.setMENGE(1.0);
              reservation.setLGORT("MAINWH");
              reservation.setWERKS("HQ");
              reservation.setSERNR("AP");
              reservation.setVBELN("SD");
              try{
              Collection col=reservation.confirmReservation();
              for(Iterator it=col.iterator();it.hasNext();){
                   InvReservation invRes=(InvReservation)it.next();
                   System.out.println(invRes.getRSNUM()+"  "+invRes.getMBLNR()+"  "+invRes.getMATNR() +" "
                              +invRes.getMENGE()+" " +invRes.getSERNR()+"  " +invRes.getDMBTR() +"  "
                              +invRes.getZSUBRC()+"  "+invRes.getZEMSG());
              }catch(Exception ex){
                   System.out.println("main: " +ex );
    Reservation.java
    public Collection confirmReservation() throws CustomException{
              Reservation outgoingRes = new InvReservation();
              Collection col=new ArrayList();
                   JCO.Function function = null;
                   JCO.Client client = null;
                   String functionName = "ZMM_OSB_CONFIRM_RESERVATION";
                   try{
                        function = con.createFunction(functionName);
                        client = JCO.getClient(con.getConnectionPool());
                                            if (function != null) {
                             Table codes=function.getTableParameterList().getTable("ZOSB");
              int j=codes.getNumRows();  //it did not enter the for loop
                             for(int i=0;i<codes.getNumRows();i++){
                                  Reservation incomingRes1=new InvReservation();
                                  codes.setRow(i);
                                  incomingRes1.setRSNUM(codes.getString("RSNUM"));
                                  incomingRes1.setMATNR(codes.getString("MATNR"));
                                  incomingRes1.setMENGE(codes.getDouble("MENGE"));
                                  incomingRes1.setLGORT(codes.getString("LGORT"));
                                  incomingRes1.setWERKS(codes.getString("WERKS"));
                                  incomingRes1.setSERNR(codes.getString("SERNR"));
                                  incomingRes1.setVBELN(codes.getString("VBELN"));
                                  col.add(incomingRes1);
                                   System.out.println("RSNUM:" +codes.getString("RSNUM") + 't' +
                                        "MATNR:"+ codes.getString("MATNR") + 't' +
                                        "MENGE:" +codes.getDouble("MENGE") + 't' +
                                        "LGORT:" +codes.getString("LGORT") + 't' +
                                        "WERKS:" +codes.getString("WERKS") + 't' +
                                        "SERNR:" +codes.getString("SERNR") + 't' +
                                        "VBELN:" +codes.getString("VBELN"));
                              System.out.println("after set successful");
                              client.execute(function);     
                              int  count= function.getExportParameterList().getFieldCount();
                             JCO.Field ZSUBRCField=function.getExportParameterList().getField("ZSUBRC");
                             JCO.Field ZEMSGField=function.getExportParameterList().getField("ZEMSG");
                              for(int i=0; i<count; i++) {
                                if(ZSUBRCField.getName().equals("ZSUBRC")){
                                       outgoingRes.setZSUBRC(ZSUBRCField.getString()); 
                                  }else if(ZEMSGField.getName().equals("ZEMSG")){
                                       outgoingRes.setZEMSG(ZEMSGField.getString()); 
                             System.out.println(ZSUBRCField.getName() + ":t" + ZSUBRCField.getString());
                             System.out.println(ZEMSGField.getName() + ":t" + ZEMSGField.getString());
                              Table excodes = function.getTableParameterList().getTable("ZOSBMSEG");
                              for(int i=0;i<excodes.getNumRows();i++){
                                   Reservation outgoingRes1 = new InvReservation();
                                   excodes.setRow(i);
                                   outgoingRes1.setRSNUM(excodes.getString("RSNUM"));
                                   outgoingRes1.setMBLNR(excodes.getString("MBLNR"));
                                   outgoingRes1.setMATNR(excodes.getString("MATNR"));                              
                                   outgoingRes1.setMENGE(excodes.getDouble("MENGE"));
                                   outgoingRes1.setSERNR(excodes.getString("SERNR"));
                                   outgoingRes1.setDMBTR(excodes.getDouble("DMBTR"));
                                   outgoingRes1.setZSUBRC(ZSUBRCField.getString());
                                   outgoingRes1.setZEMSG(ZEMSGField.getString());
                                   col.add(outgoingRes1);
                                   System.out.println("RSNUM:" +excodes.getString("RSNUM") + 't' +
                                              "MBLNR:" +excodes.getString("MBLNR") + 't' +
                                        "MATNR:" +excodes.getString("MATNR") + 't' +
                                        "MENGE:" +excodes.getDouble("MENGE")+ 't' +
                                        "SERNR:" +excodes.getString("SERNR") + 't' +
                                        "MENGE:" +excodes.getDouble("DMBTR") + 't' +
                                        "ZSUBRC:" +ZSUBRCField.getString() + 't' +
                                        "ZEMSG:" +ZEMSGField.getString());
                             System.out.println("all ok");
                   }catch(Exception ex){
                        System.out.println("Caught an exception: n" + ex);
                        throw new CustomException(ex);
                   }finally{
                        if (client != null) {
                             System.out.println("Connection Closed");
                             JCO.releaseClient(client);
                   return col;
    everytime , when i debug, i found that it didnot enter the for loop and the j value always equals =0
    int j=codes.getNumRows();
    and always come up with this
    JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet
    Result:
    AFTER CREATEFUNCTION:Name:   ZMM_OSB_CONFIRM_RESERVATION
    Input: 
    null
    Output:
    | PARAMETERS 'OUTPUT'
    ZEMSG
    ZSUBRC
    01234567890123456789012345678901234567890123456789
    0   1
    as stated the input is null...i dunno why i cant set the input table parameter
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme

    new code
    public Collection confirmReservation() throws CustomException{
              // TODO Auto-generated method stub
              Reservation outgoingRes = new InvReservation();
              Collection col=new ArrayList();
                   JCO.Function function = null;
                   JCO.Client client = null;
                   String functionName = "ZMM__CONFIRM_RESERVATION";
                   try{
                        function = con.createFunction(functionName);
                        client = JCO.getClient(con.getConnectionPool());
                        System.out.println("AFTER CREATEFUNCTION:" + function );
                        if (function != null) {
                             JCO.ParameterList tabInput = function.getTableParameterList();
                             JCO.Table inputTable = tabInput.getTable("ZOSBIMSEG");
                             inputTable.appendRow();
                             System.out.println("checking table input:" +this.getRSNUM()+"  " +this.getMATNR()+ ""
                                                 +this.getMENGE()+" " +this.getLGORT()+" " +this.getWERKS() +" "
                                                 +this.getSERNR()+" " +this.getVBELN());
                                                      inputTable.setValue(this.getRSNUM(),"RSNUM");
                             inputTable.setValue(this.getMATNR(),"MATNR");
                             inputTable.setValue(this.getMENGE(),"MENGE");
                             inputTable.setValue(this.getLGORT(),"LGORT");
                             inputTable.setValue(this.getWERKS(),"WERKS");
                             inputTable.setValue(this.getSERNR(),"SERNR");
                             inputTable.setValue(this.getVBELN(),"VBELN");
                                                       System.out.println("after set successful");
                              client.execute(function);     
                              int  count= function.getExportParameterList().getFieldCount();
                             JCO.Field ZSUBRCField=function.getExportParameterList().getField("ZSUBRC");
                             JCO.Field ZEMSGField=function.getExportParameterList().getField("ZEMSG");
                              for(int i=0; i<count; i++) {
                                if(ZSUBRCField.getName().equals("ZSUBRC")){
                                       outgoingRes.setZSUBRC(ZSUBRCField.getString()); 
                                  }else if(ZEMSGField.getName().equals("ZEMSG")){
                                       outgoingRes.setZEMSG(ZEMSGField.getString()); 
                             System.out.println(ZSUBRCField.getName() + ":t" + ZSUBRCField.getString());
                             System.out.println(ZEMSGField.getName() + ":t" + ZEMSGField.getString());
                              Table excodes = function.getTableParameterList().getTable("ZOSBMSEG");
                              for(int i=0;i<excodes.getNumRows();i++){
                                   Reservation outgoingRes1 = new InvReservation();
                                   excodes.setRow(i);
                                   //add here
                                   outgoingRes1.setRSNUM(excodes.getString("RSNUM"));
                                   outgoingRes1.setMBLNR(excodes.getString("MBLNR"));
                                   outgoingRes1.setMATNR(excodes.getString("MATNR"));                              
                                   outgoingRes1.setMENGE(excodes.getDouble("MENGE"));
                                   outgoingRes1.setSERNR(excodes.getString("SERNR"));
                                   outgoingRes1.setDMBTR(excodes.getDouble("DMBTR"));
                                   outgoingRes1.setZSUBRC(ZSUBRCField.getString());
                                   outgoingRes1.setZEMSG(ZEMSGField.getString());
                                   //outgoingRes.setMENGE(java.lang.Double.parseDouble(codes.getString()));
                                   col.add(outgoingRes1);
                                   System.out.println("RSNUM:" +excodes.getString("RSNUM") + 't' +
                                              "MBLNR:" +excodes.getString("MBLNR") + 't' +
                                        "MATNR:" +excodes.getString("MATNR") + 't' +
                                        "MENGE:" +excodes.getDouble("MENGE")+ 't' +
                                        "SERNR:" +excodes.getString("SERNR") + 't' +
                                        "MENGE:" +excodes.getDouble("DMBTR") + 't' +
                                        "ZSUBRC:" +ZSUBRCField.getString() + 't' +
                                        "ZEMSG:" +ZEMSGField.getString());
                             System.out.println("all ok");
                   }catch(Exception ex){
                        System.out.println("Caught an exception: n" + ex);
                        throw new CustomException(ex);
                   }finally{
                        if (client != null) {
                             System.out.println("Connection Closed");
                             JCO.releaseClient(client);
                   return col;
    Just to let's you know something here...
    the input parameter is a table structure...so when i execute this.
    Caught an exception:
    java.lang.NullPointerException
    JCO.ParameterList list = function.getImportParameterList();
                              list.setValue(this.getRSNUM(),"RSNUM");
                              list.setValue(this.getMATNR(),"MATNR");
                              list.setValue(this.getMENGE(),"MENGE");
                              list.setValue(this.getLGORT(),"LGORT");
                              list.setValue(this.getWERKS(),"WERKS");
                              list.setValue(this.getSERNR(),"SERNR");
                              list.setValue(this.getVBELN(),"VBELN");
    so i changed to ....
    it get what i want....
    but again the result of the input is still null
         JCO.ParameterList tabInput = function.getTableParameterList();
                             JCO.Table inputTable = tabInput.getTable("ZOSBIMSEG");
                             inputTable.appendRow();
                             System.out.println("checking table input:" +this.getRSNUM()+"  " +this.getMATNR()+ ""
                                                 +this.getMENGE()+" " +this.getLGORT()+" " +this.getWERKS() +" "
                                                 +this.getSERNR()+" " +this.getVBELN());
                                                      inputTable.setValue(this.getRSNUM(),"RSNUM");
                             inputTable.setValue(this.getMATNR(),"MATNR");
                             inputTable.setValue(this.getMENGE(),"MENGE");
                             inputTable.setValue(this.getLGORT(),"LGORT");
                             inputTable.setValue(this.getWERKS(),"WERKS");
                             inputTable.setValue(this.getSERNR(),"SERNR");
                             inputTable.setValue(this.getVBELN(),"VBELN");
    AFTER CREATEFUNCTION:Name:   ZMM_OSB_CONFIRM_RESERVATION
    Input: 
    null
    Output:
    | PARAMETERS 'OUTPUT'
    | ZEMSG                                            | ZSUBRC |
    |01234567890123456789012345678901234567890123456789|   0   1|
    |                                                  |00000000|

  • How to call JAVA program having input & output parameter

    Hi Experts,
    Require ur help in calling a java program in ODI which has input parameter & I need to also get the output of the java program.
    I have a java program which I execute through command prompt with input parameters required for the program.
    Also I need to get the output of the same java program & need to pass it as input to another Java program.
    kindly help...how to implement the java program in ODI as I have not worked on Java.

    Hi experts,
    kindly help...

  • How to set inputZ for control inputs ie: strobe, pfix?

    RE: PXI-6551  Need to configure input control for inputZ (50/10k). 
    ex:  My app. requires strobe input and pfi 2 (input) to have 50 ohm input impedances.
    Default is 10k.  Property node for input impedance doesn't like "STROBE or PFI 2" etc.

    Hello there,
    Although a bit harder to find, there is actually a 2 other properties that you need to use to set the strobe and PFI line input impedance. 
    For the strobe line, you need to specify you sample clock source to be the stobe line and use the Timing » Sample Clock » Impedance property to 50. See here.
    For the PFI line, you need to specify what you are using it for.  If you are using it as the source for your digital edge start trigger, you would use the Start » Digital Edge » Impedance property.  See here.
    I hope this clears things up. Let me know if you have any other questions.
    Regards,
    Paul C.

  • Cl_salv_table - How to set grid ready for input

    Hi,
    I am using the class "cl_salv_table" on a 6.40 system to display an ALV grid.  How can I set the grid cells are ready for input/editing? 
    ( Something similar to slis_layout_alv-edit parameter  
    use in the REUSE_ALV_GRID_DISPLAY function )
    I have looked at the demo programs SALV_TEST_TABLE* and
    SALV_DEMO_TABLE*.  Unless I am blind I cannot find a way.
    Any suggestions?
    Lukas
    Message was edited by: van vuuren lukas

    Hi,
    thanks for the reply,
    I do not call the SET_TABLE_FOR_FIRST_DISPLAY,
    as far as I can tell SALV does not require this. 
    Here is in short  what my program looks like:
    data: lr_salvgrid  type ref to cl_salv_table,
          lr_columns type ref to cl_salv_columns_table,
          lr_column  type ref to cl_salv_column,
          gt_matdoc type mb_mkpf.
    I call method  cl_salv_table=>factory to get a reference to my itab:
            call method cl_salv_table=>factory
              exporting
                list_display = if_salv_c_bool_sap=>false
              importing
                r_salv_table = lr_salvgrid
              changing
                t_table      = gt_matdoc.
    Then for fieldcatalogue:
    i.e. hide columns etc
      lr_columns = lr_salvgrid->get_columns( ).
      lr_columns->set_optimize( abap_true ).
      lr_column = lr_columns->get_column( 'MANDT' ). 
      lr_column->set_visible( abap_false ).
    Then to display:
      lr_salvgrid->display( ).
    I would have thought that the edit parameter would be somewhere in the fieldcat ( in class CL_SALV_COLUMN )
    but I cannot find it there.  Everything else like text/edit mask/currency/visible etc is here but not edit.

Maybe you are looking for

  • Can't uninstall quicktime

    I recently got a nano for christmas and it said I needed the newest version of itunes in order to use my nano. When I tried to download itunes an error message popped up saying the older version of quicktime cannot be uninstalled. Please contact your

  • Final Cut Pro X not opening .fcp files

    I just purchased Final Cut Pro X. I am trying to open a .fcp file that was created in a previous version of Final Cut Pro, however it keeps giving the error "final cut pro cannot open files of this type". When I look at the details of the file, in sh

  • BTE for changing profit center based on MCN values

    Hi , I need to change the profit centre value in accounting document line items based on MCN number. The iMCN value is updated in a BTE .We tried using substitution but since BTE is triggered after substitution ,MCN value is not updated. Kindly sugge

  • LOB RESTRICTION

    I Need to make an insertion using the INSERT command from a text size 50kb. I know that LOB field only accepts 4kb. What should I do to eliminate this limitation? Once again, thanks for the help. null

  • System wide keyboard commands not responding

    My mac stops responding to system wide keyboard commands such as the Dashboard, Expose and Spotlight shortcuts. It also does not respond to Command-Tab to switch between applications. Hitting the keys for any of these leads to no response whatsoever.