Jump to content

Ferrousduke

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Ferrousduke

  1. On 4/4/2017 at 6:47 PM, MikaelH said:

    Hi Mike,

    One question, The CellClicked Event gives me the Row and Column index, but after sorting the data, how do I get the Data of the cell?
    The DataGridView:Get DataArray.vi, gets me the unsorted order, so Unless I track the sorting my self I'm not sure how to get an sorted grid's cell value based on the CellClicked event.

    I'm sure there must be a way to do this.

    Instead of reading Data table, read Data grid view cell collection (see the attached). That will give you the sorted data. The only thing is that we don;t get sorted indices, so make an invisible column with incremental numbers - append it to your data. After sorting the table, the invisible column should give you the sorted indices. If there is any better way you have found out, let us know.

     

    Untitled.png

  2. Thanks AQ, I'm not sure how I missed the "Static VI Reference". That is what I need for most of the VIs.

    Most of the VI's I want to launch are small sub-process or dialog type VI's to provide the user with inforation while the main app continues to function normally. In one case, I need to display a report/graph of the collected data the user can view, print, save... I had been calling the VI by path, but was having problems with the VI going missing(usually we forgot to "always include" the VI in the build spec) and figured there had to be a better/easier way.

    MikealH, Will that work with libraries also or just classes?

    Using Static VI reference will anyhow load that VI in memory behaving the same as calling the VI.

    It makes nothing Dynamic..

  3. post-17959-0-90283600-1307622743_thumb.p

    Have you tested to make any examples first? Examples where they use C# or VB. I supect that BAC-reference should come from some already used component, before your where your error is seen.

    No, I am trying BAPI Controls for the first time without VB..

    Posting the screens of a SAPGui that is installed and running on my pc.

    Front Screen

    post-17959-0-61349600-1307622488_thumb.p

    LogON Screen

    post-17959-0-61467300-1307622564_thumb.p

    Adding Transaction ID.. se37

    post-17959-0-98731600-1307622606_thumb.p

    After which a function module that is interested to me.. In this case, I am trying to access process order.

    post-17959-0-29805200-1307622659_thumb.p

    A process order number is given to the module to get required details.

    post-17959-0-79515800-1307622714_thumb.p

    To retrieve all the entries..

    post-17959-0-90283600-1307622743_thumb.p

    Time to execute the module..

    post-17959-0-41777500-1307622790_thumb.p

    Table retrieved..

    post-17959-0-34203700-1307622819_thumb.p

    Details

    post-17959-0-70454100-1307622872_thumb.p

    Any kind of help will be appreciated..

    With Regards,

    Dharmesh.

  4. I am not familiar with SAP, but what kind of error do you receive?

    Ton

    Error -2147352567 occurred at Property Node (arg 2) in SAP_GetProcessOrderDetails.vi

    This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input.

  5. Dear All,

    I have been trying to establish a communication mode between SAP ERP and LabVIEW. Moreover, I am completely new to SAP.

    The objective of the task is to fetch some Business related data such as Process order details, sales order quantity etc etc..

    This data is lying in BOR (Business Object Repository) which is accessible via R/3 server.

    Some of the BAPI Function calls are designed by SAP that let a third party software talk to the database.

    I have gone through the documentation related to the BAPI ActiveX Control, which describes the procedure to call any of the BAPI function for which one can find a screenshot of a VI. post-17959-0-66552800-1307190033_thumb.ppost-17959-0-96922800-1307190350_thumb.p

    The problem is that I am able to logon to a SAP server but when it comes to opening up an instance, I am getting error (Marked RED).

    Any support for this would really be appreciable..

    With Regards,

    Dharmesh Bhanushali.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.