Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Run external program

0 Likes
526
  • SAP Managed Tags

I'm using SAP B1, v10.00.120 PL2, with Coresuite customizations.

I'd like to run an MS Access procedure, passing an UDF value as parameter. The help file suggests to use an Easy Function (like SQLQuery) with EXEC xp_cmdshell. Once enabled the above, by default it's OFF, I configured this command:

SQLQuery("QCT|EXEC xp_cmdshell 'MSACCESS.EXE c:\Sviluppo\QCT\QCT1000.mdb ;$[$COR_G_903.QCT.0]';")

msaccess.exe is the runtime, QCT1000.mdb is my procedure, $[$COR_G_903.QCT.0] is the UDF placeholder

It does NOT work and I can't sort it out. The command is OK, I can run it directly from Windows, once I replaced the parameter with a proper value.

I can't find any alternative, due to my limited knowledge.

0 REPLIES 0