LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write table to SAP (BAPI, ActiveX...)

Hello everybody,

 

I have to do a SW that interfaces with SAP. I already have functions to login/out, read/write a single parameter, and read a table (all this trough BAPI ActiveX), but I’m not able to write in a SAP table.

 

Does somebody already have done this job?

 

Many thanks for any advice!

 

Pierre-Alain

 

(LV2010SP1 or 2014SP1, W7, SAP Business Client 3.5)

0 Kudos
Message 1 of 5
(4,208 Views)

@PAG wrote:

Hello everybody,

 

I have to do a SW that interfaces with SAP. I already have functions to login/out, read/write a single parameter, and read a table (all this trough BAPI ActiveX), but I’m not able to write in a SAP table.

 

Does somebody already have done this job?

 

Many thanks for any advice!

 

Pierre-Alain

 

(LV2010SP1 or 2014SP1, W7, SAP Business Client 3.5)


http://help.sap.com/saphelp_46c/helpdata/en/59/ae455e488f11d189490000e829fbbd/content.htm

 

 

0 Kudos
Message 2 of 5
(4,181 Views)
What happens when you try? Errors? Blue-screen?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(4,161 Views)

Many thanks, nyc, mike, for your responses and interest!

 

I find SAP doc not so easy to transpose into LabVIEW code... Smiley Frustrated

 

Error happends like this:

  1. Login SAP: OK (work also in other programs)
  2. Add name of the specific BAPI function to be used: OK (work also in other programs)
  3. Input of several single parameters (strings): OK (work also in other programs)
  4. Input of 2 Tables (2x same VI): see code here enclosed. No error at this point. (never tested in other programs)
  5. Call of BAPI function (code tested OK in other programs) but returns an error "SYSTEM_FAILURE"
  6. Reading some return parameters (code tested OK in other programs, but do not works here because of System_Failure)
  7. Close ref and Logoff  (code tested OK in other programs)

I enclose also in this mail an image showing the main VI (named "Créer contenu HU.vi") making all this procedure. You will see that the error comes after the function call.

 

I'm not a SAP pro (and far away!), but the SAP specialist has tested the BAPI function (with php?) and the function works. So the first suspect code is the one attached here.

 

Please ask me if you need more details.

 

Many thanks in advance, best regards,

 

Pierre-Alain

Download All
0 Kudos
Message 4 of 5
(4,140 Views)

Don't have access to SAP.

Cannot help beyond this point.

 

Good luck.

0 Kudos
Message 5 of 5
(4,124 Views)