Jump to content

SAP BAPI ActiveX Control


Recommended Posts

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.

Link to comment

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.

Link to comment

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.

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.

Link to comment

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.

Hmmm, does it count the arguments from 0 or 1 ? If the former, then the problem would be the hWnd=0 which I think I would interpret as creating a client window on the desktop - perhaps it doesn't like doing that ?

I'm afraid I rather suspect the intersection of the sets of SAP users and LabVIEW coders is probably a small number approximating unity

Link to comment

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.

Link to comment
  • 3 weeks later...

Hmmm, does it count the arguments from 0 or 1 ? If the former, then the problem would be the hWnd=0 which I think I would interpret as creating a client window on the desktop - perhaps it doesn't like doing that ?

I'm afraid I rather suspect the intersection of the sets of SAP users and LabVIEW coders is probably a small number approximating unity

SAP => Run for the hills!

Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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