Powershell: using the WMI or CIM with SAP/Oracle

This post may seem familiar but we all know SAP is a middleware for a enterprise and it's database. 
Does this application have any way to interface with powershell possibly through get-wmiObjects or some similar command that can interface faster than logging in to SAP's slow and cumbersome interface?

This is available:
https://social.technet.microsoft.com/Forums/en-US/9e85fbef-3ecc-46dd-b0a3-d59e2742c262/announcing-general-availability-of-powershell-connector-and-release-candidate-of-generic-sql-and-sap?forum=ilm2
SAP Support forums for PowerShell:
http://scn.sap.com/community/windows
¯\_(ツ)_/¯

Similar Messages

  • An issue using the COM components supplied with SAP GUI 6.2 or 6.4

    We are having an issue using the COM components supplied with SAP GUI 6.2 or 6.4.  We used to have SAP 4.6c and now we have 5.0.  When we were on 4.6c, we used these COM components to logon and execute RFC calls and we had much success.  Now that we are on 5.0, we can’t seem to instance any SAP functions that have something to do with SAP Workflow.  We have experienced this problem when using VB6 or .NET, but our existing code that always worked is in VB 6.0.
    SAP Components used:
    o     SAP Logon Control
    o     SAP Function Control
    o     Librfc32.dll
    o     Other supporting C DLLs and/or COM object supplied with the SAP GUI installation.
    For example, if we want to call the RFC ARCHIV_CONNECTION_INSERT, this code fails in VB6 when the “Set objworkflow = objFuncCtrl.Add(strFunction)” line of code executes.  Instead of returning an instance of the object ARCHIV_CONNECTION_INSERT function, no object is created.  In 6.2, SAP raises no errors, but the object we are trying to create is still “Nothing”.  If we use 6.4, SAP raises an error “SAP data type not supported” via a message box and then the object is still = Nothing.  Interestingly enough, the 6.2 GUI COM controls don’t display the error dialog.  The message box that is shown comes from the SAP Function COM Object "SAP.Functions" (wdtfuncs.ocx).
    Now, what is interesting is if we use the same code to call a standard function or custom function that doesn’t have anything to do with SAP Workflow, then the code works fine.  Again, all of our code used to work just fine on an SAP 4.6 system.
    Here is the code that fails:
        'SAP Logon control - object for creating connections to an SAP system
        Dim objSAPLogonCtrl As Object
        'SAP connection object
        Dim objConnection As Object
        'Object that will represent the SAP function called
        Dim objSAP As Object
        'SAP function control object - object factory for creating other SAP function objects
        Dim objFuncCtrl As Object
        'Create instance of an SAP logon conrol
        Set objSAPLogonCtrl = CreateObject("SAP.Logoncontrol.1")
        'Create a connection object
        Set objConnection = objSAPLogonCtrl.NewConnection
        'Define connecion parameters
        objConnection.ApplicationServer = "sapvm"
        objConnection.SystemNumber = "00"
        objConnection.Client = "800"
        objConnection.User = "iissap"
        objConnection.Password = "tstadm"
        objConnection.Language = "E"
        objConnection.TraceLevel = 10
        'call the logon method of the connection object
        If objConnection.Logon(0, True) = False Then
            MsgBox Error
            Exit Sub
        End If
        'Create an instance of the SAP Function control object
        Set objFuncCtrl = CreateObject("SAP.Functions")
        'Set the function control connection object
        Set objFuncCtrl.Connection = objConnection
        'Function name to be generated and called
        Dim strFunction As String
        strFunction = <b>"ARCHIV_PROCESS_RFCINPUT"</b>
        'Create an instance of the function defined in strFunction
        Set objworkflow = objFuncCtrl.Add(strFunction)
        If objworkflow Is Nothing Then
            MsgBox "Could not create object " & strFunction
        Else
            MsgBox strFunction & " object created."
        End If
    If anyone has seen anything like this or has any ideas, please help!
    Mike and Hameed
    <b></b>

    Hi,
    documentation on the Scripting API is available at ftp://ftp.sap.com/pub/sapgui/win/640/scripting/docs/
    This API is a replacement of the existing, obsolete COM interfaces.
    Best regards,
    Christian

  • Error message is 'The Request Error : 400' with SAP Download Manager

    Hello,
    The authorization object SWDOWNLOAD (download software) is assigned to the My user ID.
    But I could not download below that file.
    SAP_ABA 710 (4~8)
    SAP_BASIS 710 (4~8)
    PI_BASIS 2006_1_710 (4~8)
    SAP_BW 710 (4~8)
    Error message is 'The Request Error : 400' with SAP Download Manager
    I logged on to SAP Service Marketplace, software download area /swdc.
    I have created objects in the download basket and have received approvals (->Maintenance-Optimizer) where required.
    I start the SAP Download Manager and the objects from the download basket are visible in the object list of the program window.
    After I choose "Objects for Download", the system starts the download.
    In the info-line (in the lower part of the window), the system displays the message 'Processing object...' and then 'The request failed: 400'.

    Hello,
    In these cases the following things should be checked:
    1.- Please be sure that you are using the latest Donwload Manager version
    2.- S-User and password should be active
    3.- Specify the proxy. Please refer to SAP Note 155954
    4.- It might be that you are not licensed for the product you want to download.
    If the checkings above are correct and the problem is still alive, I would recommend you to open an SAP customer message under component XX-SER-SAPSMP-SDM providing the following information:
    1.- The exactly software product name and package or stack number you try to download.
    2.- Attach to the message the results of the trace file generated as per note 574885:
    574885 - Download Manager: Generate trace file for analysis
    I hope this helps you.
    Regards,
    Blanca

  • Which is the MYSQL version compatible with SAP PI 7.0

    Dear friends,
    can any body tell me which is the MYSQL version compatible with SAP PI 7.0,  i m getting the below error , some body told me, may be the MYSQL version is not compatible with PI 7.0
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:mysql://192.168.51.50:3306/stagingdb': SAPClassNotFoundException: com.mysql.jdbc.Driver
    rgds
    mojib

    Hi
    if the interface was running fine and suddenly stop working ...and as per the error log u have pasted here ....99% chances are due to connection problem ...check whether TCP/IP connection for port 1433 is working finr or not ,,....do Xi system is able to make the telnet from SQL server or not...may be any firewall get enable ..........
    just check with this blog also .....same thing happensa with me once also fora client .....
    (/people/charu.agarwal/blog/2009/07/02/problems-faced-while-connecting-to-sql-server-using-jdbc-adapter-in-pi)
    Regards
    Abhishek

  • How to use the eventing and databag with a WAS 6.20 ?

    How to use the eventing and databag with a WAS 6.20 ?
    Is what there is a good guide for these services?
    Thank's

    In the raise event you can pass the value
    like below.
    <SCRIPT>
    function raiseEvt(value1){
    if(window.document.domain == window.location.hostname){
    if ( document.domain.indexOf(".") > 0 ) document.domain = document.domain.substr(document.domain.indexOf(".")+1);
       EPCMPROXY.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", value1, null );
      // alert('tree domain'+document.domain);
    </SCRIPT>
    and in the
    subscribe event you can get the values like below.
    <script language="javascript">
    if(window.document.domain == window.location.hostname){
    document.domain = document.domain.substring(document.domain.indexOf('.')+1);
        EPCMPROXY.subscribeEvent("urn:com.sap:BWEvents","BWiViewevent", window, "myreceiveEvent");
    function myreceiveEvent( eventObj ) {
          document.forms[0].gp_hidden.value = eventObj.dataObject;
    </script>
    Also look at the following link for a complete documentation.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Enterprise%20Portal%20Client.pdf
    Regards
    Raja

  • How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    How can I use the old Apple TV with new iTunes?  It tells me to input a code in iTunes but iTunes no longer has a spot to input this code to allow sync.  I can access the iTunes Store fine, just none of my Library

    read this
    https://discussions.apple.com/message/20429789#20429789

  • Issues with using the output redirection character with newer NXOS versions?

    Has anyone seen any issues with using the output redirection character with newer NXOS versions?
    Am receiving "Error 0x40870004 while copying."
    Simply copying a file from bootflash to tftp is ok.
    This occurs for both 3CDaemon and Tftpd32 softwares.
    Have tried it on multiple switches - same issue.
    Any known bugs?
    thanks!
    The following is an example of bad (NXOS4.1.1b) and good (SANOS3.2.1a)
    MDS2# sho ver | inc system
      system:    version 4.1(1b)
      system image file is:    bootflash:///m9200-s2ek9-mz.4.1.1b.bin
      system compile time:     10/7/2008 13:00:00 [10/11/2008 09:52:55]
    MDS2# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    TFTP put operation failed:Access violation
    Error 0x40870004 while copying tftp://10.73.54.194/
    MDS2# copy bootflash:cpu_logfile tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    |
    TFTP put operation was successful
    MDS2#
    ck-ci9216-001# sho ver | inc system
      system:    version 3.2(1a)
      system image file is:    bootflash:/m9200-ek9-mz.3.2.1a.bin
      system compile time:     9/25/2007 18:00:00 [10/06/2007 06:46:51]
    ck-ci9216-001# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    |
    TFTP put operation was successful

    Please check with new version of TFTPD 32 server. The error may be due to older version of TFPT server, the new version available solved this error. Files are getting uploaded with no issues.
    1. Download tftpd32b.zip from:
    http://tftpd32.jounin.net/tftpd32_download.html
    2. Copy the tftpd32b.zip file into an empty directory and extract it.
    3. Copy the file you want to transver into the directory containing tftpd32.exe.
    4. Run tftpd32.exe from that directory. The "Base Directory" field should show the path to the directory containing the file you want to transfer.
    At this point, the tftpserver is ready to begin serving files. As devices request files, the main tftpd32 window will log the requests.
    Best Regards...

  • I am using the "G Web Server" with Bridgeview 2.1. The problem I am having is that I have to

    restart the web server once every 2 to 3 days, or the web pages don't show the vi (images). Any ideas to trouble shoot - I dont know if the problem is related to my workstation hardware or a setting that needs to be tweaked on the G Web Server. Thank you.I am using a Pentium 233 machine/ Win 95. The PLC I am collecting info from is a GE Fanuc Series 9030 (?). Ethernet connection.

    restart the web server once every 2 to 3 days, or the web pages don't show the vi (images). Any ideas to trouble shoot - I dont know if the problem is related to my workstation hardware or a setting that needs to be tweaked on the G Web Server. Thank you.Hi,
    we are using the G Web Server with LabVIEW on a WinNT 4 machine. Up to now these works fine. Therefore I would recommend you to choose a more stable OS.
    Maybe you can try to programmatically restart the server every 2 days. Within LabVIEW you would do this by running "HTTP Server Control.vi". Unfortunatly all connections will be closed, thus be aware of that!
    Hope that helps
    chris

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • Can I use the Creative Cloud libraries with Illustrator CS5

    Can I use the Creative Cloud libraries with Illustrator CS5

    Hi Ilys Ravel,
    No, Creative Cloud Libraries feature is only available in CC 2014.1 release on-wards.
    Sanjay..

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • Can I use the same nike+ sensor with two differet Ipods and register the trainings in onmly one account?

    Hello, I would like to know if I can use the same nike  Ipod sensor with two different ipods. I want to use the same sensor sometims with an Ipod touch and sometimes with an Ipod Nano, I want my trainings with both Ipods to be registered to the same account. I want them to be registered to only one account, not as it had been used by two different people.

    Of course. You should use the same AppleID on all your devices. Why would you create a new one?
    Matt

  • How do I use the double sided printing with my HP Officejet 6500A plus

    I need help with learning to use the double sided printing with my HP Officejet 6500A Plus

    Click on the Show Details button just above:
    You can configure various options from the dropdown menu just below Orientation.
    Printing two-sided requires a two-sided adaptor for the printer. Otherwise, you have to print out odd numbered pages first, turn them over and reinsert into the paper feeder, then print even numbered pages. If you do it right you get a nice two-sided document. If you do it wrong all the even numbered pages will be upside down.

  • My gen 3 iPod Touch seems to have duplicated all my music since updating to IOS 5 so that it now only holds half as much. What can I do about it? I'm using the same iTunes library with OS 10.6 and all software up to date.

    My gen 3 iPod Touch seems to have duplicated all my music since updating to IOS 5 so that it now only holds half as much. What can I do about it? I'm using the same iTunes library with OS 10.6 and all software up to date.

    Is the camera damaged? Could be a hardware problem.
    Try:
    Close the Camera app in the multitasking bar, then try again.
    Restart/Reset/Restore your iPod. In that order.

  • Is there a way to use the Picture viewer app with linked folders?

    I have a fairly extensive photo collection (literally in the tens of thousands we have taken over the years, and growing) on my PC that I have access to through BB link/file manager...one picture at a time...with no thumbnails...
    Is there any possible way to use the BlackBerry picture app with BlackBerry link folders?  All I want is to be able to hook up my Z30 via HDMI to the big screen and have the option for a slideshow from the archive on my PC without having to blindly stab at individual files and folders, and without having to copy whole folders of dozens or hundreds of photos to my phone.
    Thanks in advance!

    http://www.mebeam.com/
    Create a Chatroom.
    Adjust your Settings (Allow Flash to control your camera)
    Invite Buddies.
    7:55 PM Wednesday; February 20, 2008

Maybe you are looking for

  • Syntax error in SAP-standard program

    Hi experts, i am facing syntax error in sap standard program.how i can solve that error . Error in include LFKPZTOP  and errro is at line 70. please help me ASAP. Thanx & Rgds Zeba

  • Weblogic.Admin -TEST_POOL

    Hi All I'm trying to test connection pools using weblogic.Admin tool. Even though the connection pool exists in domain, weblogic.Admin returns "Pool does not exist". Could some one help me please? My command is <b>${JAVA_HOME}/bin/java weblogic.Admin

  • Need information on oracle enterprise repository

    Hi, I am planning to get started on oracle enterprise repository. I have read a lot about it st various blogs and now want to have hands on implementation of the same. Can someone  let me know where I can get some tutorials or examples to get started

  • Instance not created in process chain

    Hi, we running a process chain in that 1 local chain failing due to instance not creating. in job log it was showing "perivous job not at finished" But pervious chain completed. it is the meta chain. how to trigger next chain? thnaks

  • Ejb's

    In entity beans which would be better, going for CMP or BMP? and which would be faster? thanks pawan