SCCM VBS Script Program Package Deployment

I'm trying to get this VBS script to run from a package to run but its not working as planned.
It works fine from an Administrator command propmt locally, but not as an sccm package/program.
Its a script to remove a SCOM management group. No matter what I try this doesn't run remotely. Even with administrative rights configured. Runs fine locally as administrator. Any ideas? Using a command line program of "cscript removescom.vbs"
Option Explicit
Dim objMSConfig
Set objMSConfig = CreateObject("AgentConfigManager.MgmtSvcCfg")
Call objMSConfig.RemoveManagementGroup ("SCOMManagementGroupNameHere")

This could also be a permissions issue. When you deploy a package with ConfigMgr, it runs as SYSTEM, which may not have SCOM rights. 
You can easily test this by running your script manually with psexec -s
to emulate running as SYSTEM account. 
http://blogs.technet.com/b/askds/archive/2008/10/22/getting-a-cmd-prompt-as-system-in-windows-vista-and-windows-server-2008.aspx
Daniel Ratliff | http://www.PotentEngineer.com

Similar Messages

  • Using a UNIX shell script to run a Java program (packaged in a JAR)

    Hi,
    I have an application (very small) that connects to our database. It needs to run in our UNIX environment so I've been working on a shell script to set the class path and call the JAR file. I'm not making a lot of progress on my own. I've attached the KSH (korn shell script) file code.
    Thanks in advance to anyone who knows how to set the class path and / or call the JAR file.
    loggedinuser="$(whoami)"
    CFG_DIR="`dirname $0`"
    EXIT_STATUS=${SUCCESS}
    export PATH=/opt/java1.3/bin:$PATH
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIR
    java -classpath $
    EXIT_STATUS=$?
    cd $OLDDIR
    echo $EXIT_STATUS
    exit $EXIT_STATUS

    Hi,
    I have an application (very small) that connects to
    our database. It needs to run in our UNIX environment
    so I've been working on a shell script to set the
    class path and call the JAR file.
    #!/bin/sh
    exec /your/path/to/java -cp your:class:paths:here -MoreJvmOptionsHere your.package.and.YourClass "$@"Store this is a file of any name, e.g. yuckiduck, and then change the persmissions to executechmod a+x yuckiduckThe exec makes sure the shell used to run the script does not hang around until that java program finishes. While this is only a minor thing, it is nevertheless infinite waste, because it does use some resources but the return on that investment is 0.
    CFG_DIR="`dirname $0`"You would like to fetch the directory of the installation out of $0. This breaks as soon as someone makes a (soft) link in some other directory to this script and calls it by its soft linked name. Your best bet if you don't know a lot of script programming is to hardcode CFG_DIR.
    OLDDIR="`pwd`"
    cd $PLCS_ROOT_DIRVery bad technique in UNIX. UNIX supports the notion of a "current directory". If your user calls this program in a certain directory, you should assume that (s)he does this on purpose. Making your application dependent on a start in a certain directory ignores the very helpful concept of 'current directory' and is therefore a bug.
    cd $OLDDIRThis has no effect at all because it only affects the next two lines of code and nothing else. These two lines, however, don't depend on the current directory. In particular this (as the cd above) does not change the current directory for the interactive shell your user is working in.
    echo $EXIT_STATUS
    exit $EXIT_STATUSEchoing the exit status is an interesting idea, but if you don't do this for a very specific purpose, I recommend not to do this for the simple reason that no other UNIX program does it.
    Harald.

  • SCCM: Application deployment vs Package deployment with requirements and prerequisits.

    Hey,
    My organization is in the process of implementing a new remote networking solution for all employees, however some employees require additional software vs others. What I am trying to find out is if there is a way to have one package with supersedes and
    requirements that we can use to do a massive deployement. 
    Here are the different scenarios with order of installation:
    Financial group Desktop:
    1.Install New solution
    2.Install Configuration
    3.Install Token Authentication 
    (nothing crazy)
    Financial Group Laptops
    1.Install Token Authentication
    2.Install New Solution
    3.Install COnfiguration
    4.Un-uninstall Old Solution
    5.Un-install Tunnel Guard application (requires a reboot, that's why it's last). (this is the application that would be deployed with requirements to go back up the chain of supersedes (meaning, deploy 5, but do 4, when 4 is triggered, it does 3 first, etc...)
    All other laptops
    1.Install New Solution
    2.Install COnfiguration
    3.Un-uninstall Old Solution
    4.Un-install Tunnel Guard application (requires a reboot, that's why it's last).(this is the application that would be deployed with requirements to go back up the chain of supersedes (meaning, deploy 4, but do 3, when 3 is triggered, it does 2 first, etc...)
    Because of the different requirements, is there a way to have one deployment with multiple deployment types to say based off:
    1. Computer types (we have a naming convention that identifies laptops and desktops.
    2. Only install certain pieces of software (Token validator in this case if financial application is detected on the machine).
    Or should I create different applications for each case with different collections or go with 3 different packages and collections with install this package first set in the package deployment
    Thanks for your help.

    The problem is the last uninstall, because it's not applicable to all machines. That means that if you would deploy that with all it's dependencies, it wouldn't do anything on the desktops as it's not applicable to them.
    In this case, if you want to use one deployment, the easiest solution is a task sequence. That way you can target everything in one time and still build some logic to prevent some (un-)installs.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Basic Package Deployment - Failed with exit code 1

    Hello everyone!
    I am new to SCCM and I am trying to create my first package and it is a basic one (I suppose).
    What I am trying to do is to install the File & Printer Sharing service on all Windows 7 computers in our domain. It is completely uninstalled (not only uncheck from the network adapter properties).
    I created a .cmd with these two lines
    cmd /c
    netcfg /c s /i MS_Server
    I create the package/program and configure it to download and run locally. I always get this error in execmgr : Script for Package:ALI00022, Program: File & Printer Sharing - Installation failed with exit code 1 execmgr 10/5/2014 5:55:43 PM 1712
    (0x06B0)
    I can see the package has been downloaded in the folder c:\windows\ccmcache\ of the client machine.
    When I launch the file there by running it as Administrator, it does work perfectly.
    When I launch the file by opening a command prompt (not running as administrator) it is not working. I am now supposing that the main problem I have is when my script need to be run as an administrator, it doesn't work.
    Thank you for your help!

    Ok,
    I used psexec to run the script in the SYSTEM context and it is working correctly.
    I tried to recreate a package in SCCM by using the command line only.
    here is what I got in my execmgr.log
    Successfully prepared command line "C:\Windows\system32\netcfg.exe" /c s /i MS_Server execmgr 10/6/2014 12:21:34 PM 3484 (0x0D9C)
    Command line = "C:\Windows\system32\netcfg.exe" /c s /i MS_Server, Working Directory = C:\Windows\system32\ execmgr 10/6/2014 12:21:34 PM 3484 (0x0D9C)
    Running "C:\Windows\system32\netcfg.exe" /c s /i MS_Server with 32bitLauncher execmgr 10/6/2014 12:21:34 PM 3484 (0x0D9C)
    CreateProcess or CreateProcessAsUser failed to execute command line with non-recoverable error 0x80070002 execmgr 10/6/2014 12:21:41 PM 3484 (0x0D9C)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramUnableToExecuteEvent
     AdvertisementId = "ALI2000D";
     ClientID = "GUID:D357F21F-E804-41AB-AB39-4B874C635118";
     CommandLine = "\"C:\\Windows\\system32\\netcfg.exe\" /c s /i MS_Server";
     DateTime = "20141006162141.138000+000";
     MachineName = "L1WIN7";
     PackageName = "ALI00023";
     ProcessID = 1940;
     ProgramName = "File & Printer Sharing - Installation";
     SiteCode = "ALI";
     ThreadID = 3484;
     Win32ErrorCode = 2147942402;
     WorkingDirectory = "C:\\Windows\\system32\\";
     execmgr 10/6/2014 12:21:41 PM 3484 (0x0D9C)
    Raised Program Unable to Execute Event for Ad:ALI2000D, Package:ALI00023, Program: File & Printer Sharing - Installation execmgr 10/6/2014 12:21:41 PM 3484 (0x0D9C)
    EnterRsRuningState failed to run script netcfg /c s /i MS_Server 0x87d01101 execmgr 10/6/2014 12:21:41 PM 3484 (0x0D9C)
    Fatal error 0x87d01101 enountered for program File & Printer Sharing - Installation. This program will not retry. execmgr 10/6/2014 12:21:42 PM 3484 (0x0D9C)

  • Migrated Package/Deployment - Downloaded Package - Installation Error 1625

    Hello there
    We have kind of a weird problem after migration of Packages and Advertisements from SCCM 2007 to SCCM 2012 R2. If packages are configured like this:
    and Deployments have the following settings:
    If we have a couple of programs within a chaining and use different installation contexts within this chaining (SYSTEM an User) the installation will fail with Error 1625 on the user installation part.
    The error status message is:
    The program for deployment "A012015A" failed ("B0000C36" - "Program Name"). A failure exit code of 1625 was returned. User context: Domain\User
    For test purposes we changed the permissions  on the ccmcache to and gave the user read permissions. After this the installation finished with no error. Did anybody else encounter this problem? We have about 150 similar programs of this kind so this
    is a real issue for us. We don't want to execute programs from distributio point and we don't want to give a permanent read permission to users.
    Thank you!

    Hi,
    Have you checked the local computer policy? The link below might be helpful.
    Error 1625: "This installation is forbidden by system policy"
    (Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee
    the accuracy of this third-party contact information.)
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Packaging & deploying an ear file

    I am trying to write a script to package and deploy our application from a source-code directory structure. The script is named build.cmd and I've tried to model it off of the build.cmd script that ships with the sample PetStore application. I've attached the build.cmd file.
    I can get the script to work, except for the part where it tries to pre-compile JSP's. However, when I try to login to the "Login" servlet, I get the following error:
    java.lang.NoClassDefFoundError: com/edeploy/util/EdeployConfig
    at com.edeploy.pers.Login.defaultAction(Login.java:67)
    at com.edeploy.pers.Login.doPost(Login.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:208)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1127)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    This is even though the EdeployConfig.class file is packaged in the .ear. I think it has something to do with the web.xml file in the war file - but
    I can't get it to work.
    The web.xml file is as follows:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <display-name>WebTier</display-name>
    <description>no description</description>
    <servlet>
    <servlet-name>Login</servlet-name>
    <display-name>LoginServlet</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.pers.Login</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/pers/Login</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>EdeployConfig</servlet-name>
    <display-name>EdeployConfig</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.util.EdeployConfig</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>EdeployConfig</servlet-name>
    <url-pattern>com/edeploy/util/EdeployConfig</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>120</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>/edeploy.html</welcome-file>
    </welcome-file-list>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/util/ErrorHandler.jsp</location>
    </error-page>
    <resource-ref>
    <res-ref-name>jdbc/DBConn</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>default</realm-name>
    <form-login-config>
    <form-login-page>edeploy.html</form-login-page>
    <form-error-page>/pers/LoginFailed.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <env-entry>
    <env-entry-name>serverType</env-entry-name>
    <env-entry-value>WebLogic Server 6.0</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    </web-app>
    [att1.html]
    [build.cmd]

    I am trying to write a script to package and deploy our application from a source-code directory structure. The script is named build.cmd and I've tried to model it off of the build.cmd script that ships with the sample PetStore application. I've attached the build.cmd file.
    I can get the script to work, except for the part where it tries to pre-compile JSP's. However, when I try to login to the "Login" servlet, I get the following error:
    java.lang.NoClassDefFoundError: com/edeploy/util/EdeployConfig
    at com.edeploy.pers.Login.defaultAction(Login.java:67)
    at com.edeploy.pers.Login.doPost(Login.java:48)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:208)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:1127)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    This is even though the EdeployConfig.class file is packaged in the .ear. I think it has something to do with the web.xml file in the war file - but
    I can't get it to work.
    The web.xml file is as follows:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <display-name>WebTier</display-name>
    <description>no description</description>
    <servlet>
    <servlet-name>Login</servlet-name>
    <display-name>LoginServlet</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.pers.Login</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/pers/Login</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>EdeployConfig</servlet-name>
    <display-name>EdeployConfig</display-name>
    <description>no description</description>
    <servlet-class>com.edeploy.util.EdeployConfig</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>EdeployConfig</servlet-name>
    <url-pattern>com/edeploy/util/EdeployConfig</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>120</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>/edeploy.html</welcome-file>
    </welcome-file-list>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/util/ErrorHandler.jsp</location>
    </error-page>
    <resource-ref>
    <res-ref-name>jdbc/DBConn</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>default</realm-name>
    <form-login-config>
    <form-login-page>edeploy.html</form-login-page>
    <form-error-page>/pers/LoginFailed.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <env-entry>
    <env-entry-name>serverType</env-entry-name>
    <env-entry-value>WebLogic Server 6.0</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    </web-app>
    [att1.html]
    [build.cmd]

  • Trigger VBS Script on Folder Open Help

    I am not a programmer. I learn as I go. I have been looking for a few days for a solution for what I want to accomplish. Basically I want to trigger a VBS script when a folder is opened. I have looked into using windows task scheduler but cannot figure out
    how to set the trigger when a specific folder is opened. I have also looked into vbs folder lock scripts, thinking that I could modify one for my purpose, but they all reference creating a new folder with the script. The folder I want to apply this to already
    exists. I already have the VBS script set up and operational. The script is for making the computer "talk". 
    This is what I am looking for:
    Folder located at 
    C:\Users\username\Videos\targetfolder
    When this folder is opened I want it to trigger target.vbs file containing this code:
    strText = ("What I want the computer to say")
    Set objvoice = CreateObject ("SAPI.SpVoice")
    ObjVoice.Speak strText
    So when the user clicks on the folder the VBS will be triggered and the computer will "say" what I have set it to.
    Is there an easy way to do this? I feel like I have all of the pieces but cannot put them together. I should also mention, I want to accomplish this without installing any other software. I need this to work on windows XP, 7, 8. 
    Any advice would be appreciated. 

    As in, click on it to view the contents.
    Right now I have the vbs file. I can double click on it and the computer "says" what I want it to say. I can double click on the folder and view the contents. I want both to happen at the same time.
    Essentially, I double click on the folder to view its' contents and hear the audio from the vbs script. 
    Can't be done in a script.  In C++ or a compiled program you can create a DLL hook process. With script we can only monitor the available events.
    ¯\_(ツ)_/¯

  • Calling startrfc.exe from within a vbs script

    Hello, can someone help me please
    I am trying to process xml idocs into SAP on a Windows 2008 server. I have written a vbs script to process the file and am trying to call STARTRFC.EXE from within the vbs script. However I keep getting an error that it cannot open the file. The code is shown below. I have changed the server name and gateway and user/passwd for security. I'm passing the filename as a variable (str_expfile) but it does not seem to be able to extract the actual file name from the variable. I know from past experience that you can pass it variables if its running on a unix box and in a shell. But for some reason it not decipering the variable name in the vbs script
    Set objShell = CreateObject("Wscript.Shell")
    str_startrfc = "D:\usr\sap\SID\SYS\exe\uc\NTAMD64\startrfc.exe -d SID -3 -h hostname -s 00 -g hostname -x sapgw00 -u user -p passwd -c 100 -l EN -t -F EDI_DATA_INCOMING -E PORT=MYPORT -E PATHNAME=str_expfile"
    objShell.Run str_startrfc, ,True
    The error I'm getting is shown below:
    ERROR file opened at 20110510 134219 GMT Daylight Time, SAP-REL 700,0,278 RFC-VER 3 1200864 MT-SL
    T:2584 Error in program 'startrfc': ======> Error at OPEN 'str_expfile' (check file)
    T:2584 Error in program 'startrfc': <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
    T:2584 Error in program 'startrfc': <* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
    Thanks
    Regards
    Steve

    Hi Markus
    Unfortunately I can't do that because I need it to process hundreds of files one after another and I would have to hard code the file path each time. That's why I need it automated.
    Can startrfc.exe not take a variable for the pathname in a vb script? It works fine in a unix shell. We are migrating from unix to windows and I need to convert all my unix scripts into vb scripts.
    I notice there is a nother rfc type program available, can I use rfcexec.exe instead of startrfc.exe and would it take variables?
    Thanks
    Regards
    Steve

  • Best report to check application and package deployment compliancy?

    I am looking for the best report to check application and package deployment compliancy.
    Preferably targeting a collection.
    tconners

    I'm recommending this one:
    Software Distribution - Application Monitoring folder -
    All application deployments (advanced)
    It allows you to select Collections and applications
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • Is it possible to read the contents of an Excel cell in DIAdem and assign its value to a variable in a VBS script.

    Hi All,
    Initially I thought this little problem would be relatively straight forward but now I’m not so sure. I am familiar with the mechanism by which DIAdem communicates with Excel and how to change the contents of a cell via a VBS script. In my task the contents of the cell in the first row, first column of MyProblem.xls contains the text “DIAdem”. I would like to be able to read this value and assign it to the variable MyString. I originally thought of doing something simple like this:
    Dim MyString
    Dim Excel, ExcelSheet
    Set Excel = CreateObject(“Excel.Application”)
    Excel.Workbooks.Open(“C\MyProblem.xls”)
    Set ExcelSheet = Excel.Workbooks(“MyProblem.xls”).Sheets(“Sheet1”)
    MyString = ExcelSheet.Cells(1,1)
    At this point I would have hoped that MyString would have been set equal to “DIAdem” and I could have used MyString to change the name of a channel in the data portal if I desired using the following code:
    Data.Root.ChannelGroups(1).Channels(1).Name = MyString
    Doesn’t seem to work though. I’m guessing it is because MyString has not picked up the value of the contents of the cell? Can anybody propose a solution to my problem or indeed confirm whether what I am proposing to do is technically feasible.
    Thanks in advance for any responses.
    Matthew

    Hi Matthew,
    Just staring at your ActiveX code, it looks fine to me.  My first thought is that this should work as you outlined it, and I've done this sort of thing many times, so I know it can work.  My second thought though, is that what you probably really want is a DataPlugin and not a VBScript.  Then you could just drag&drop the Excel file into the Data Portal and load all the properties and channels you want from the Excel file.  If you have DIAdem 2010 or later you can use the SpreadSheet reader object in the DataPlugin to avoid the Excel ActiveX functions (and Excel's jealously with other applications trying to read a file it has open already).
    Feel free to send me a few sample Excel files and describe what you want to load from the various cells, and I'd be happy to help you get a DataPlugin written to load your data.  You can also email me at [email protected]
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to call a java script program in a vi?

    Hi,
    I have to call a script in java script with arguments. This script
    contains 4 functions, and need an array to works. This array is
    produced by my vi. It returns a float.
    How can I call this script with parameters in my vi?
    Thanks.
    BD.
    ~ La programmeuse compile le C. ~
    http://www.pmeonline.fr.st
    http://www.nihon-fr.com
    http://www.cinemasie.com
    http://ippai.free.fr

    No, my java script program is composed of several functions. I just want to call the functions in my vi, with arguments, etc.
    I don't know if it is easy to use
    ~ La programmeuse compile le C. ~
    http://www.pmeonline.fr.st
    http://www.nihon-fr.com
    http://www.cinemasie.com
    http://ippai.free.fr

  • Java Script Error while deploying a Model with Value Help

    Hi,
    I am using EP 7.0 SP 10.
    I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
    The model compiles successfully, but gives a Java Script Error while deploying the model,
    ! Error on Page
    When Click on this java script error, it shows that ,
    Line:14985
    Char 1: Error
    object does n't support this property or method.
    code
    URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
    The Same model works in dev server, and it fails in the production server.
    Thanks and Regards,
    Sekar

    Hi jakob,
    Thankyou for your quick response.
    I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
    I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
    And i think am not paring any formulas here.
    Please guide me.
    thanks and regrads
    Pradeep.B

  • Calling SAP script program in BAPI and want to display in html format

    Dear All,
    I am writing bapi and calling sap script program in it.
    I want output in html format pl suggest me
    same coding is working for report giving error in sapscript only.
    types: begin of tt_html,
                 html type w3html,
           end of tt_html.
    data: list_tab type standard table of abaplist.
    SELTAB-SELNAME = 'S_INVNO'.
    SELTAB-KIND = 'S'.
    SELTAB-SIGN = 'I'.
    SELTAB-OPTION = 'EQ'.
    SELTAB-LOW =  INVOICE_NUM1.
    SELTAB-HIGH = INVOICE_NUM2.
    APPEND SELTAB.
    submit ZSDRDINVPNBRPT with selection-table seltab
    exporting list to memory and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = MTAB_REPORT_LIST
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
        CALL FUNCTION 'WRITE_LIST'
         EXPORTING
           WRITE_ONLY       = 'X'
          TABLES
            listobject       = MTAB_REPORT_LIST
         EXCEPTIONS
           EMPTY_LIST       = 1
           OTHERS           = 2.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
           TABLES
                HTML   = MTAB_REPORT_HTML
           EXCEPTIONS
                OTHERS = 1.
    LOOP AT MTAB_REPORT_HTML.
    ENDLOOP.

    For displaying output in html format,
    u can either use BSP ( Business Server Pages)
    or Webdynpro.
    Reward if helpful.

  • How to include script program in nace

    Hi experts,
    I developed one script program now i want to transport this program to production.How to include this program in the NACE tcode
    and this program belongs which application type (how to decide).This program belongs to MM module.(creating a material issue slip).I am basic abaper and i am handilng first time the script task  and also i am seraching sdn forums.Please gine me the steps.

    Hi,
    1. Goto in NACE
    2. You need to ask your functional buddy to let you know about Application area, I suppose u need to take EF.
    3. Select EF from the list and than click on Output Types, select any output type (Which you wud like to give to your script)
    4. Else if you like to create a new one for your script, then on same screen click on change button, then click on New Entries
        And give all the detailed info.
    5. To use existing output types, select a output type like "ZEDI", at the left hand side double click on Processing Routines.
    6. In the Processing Routines block , Give the Program name as print program and here you need to give your SAP scrip name in Form option.
    save it.
    I Hopr I have covered everything, that you need.
    Regards,
    Lokesh

  • App for SharePoint online : Resource files can not with the app install package deployment

    I come from China, my English is not very good, bring you the confusion, I apologize;In the development of the APP to the store, I met a problem, hope someone can help me to solve, thank you very much, specific as follows:
    The development tools: vs2012
    Platform: office 365 development version
    Host:Auto
    Problem presentation:
    Press "F5" debugging running normally,Generate app install package, deploy to test environment, the app page error, tip can't find the resource file"
    error:
    Server Error in '/' Application.
    Object reference not set to an instance of an object.
    Description: An
    unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error: 
    Line 107: <div id="FoundareADUserIndex_PageHead">
    Line 108: <span><img alt="" src="../images/head.png" height= "45px" width="45px" /> </span>
    Line 109: <span style="color: #000000; font-size: 28px; font-weight: bold"><%=HttpContext.GetGlobalResourceObject("FoundareADUserResource", "foundare_index_head").ToString()%></span>&nbsp;
    Line 110:
    Line 111:
    Source File: c:\DWASFiles\sites\fzym9dfaguchcdqnvjrwcr2pqasevj5hpvhmcaydkdg1.0.0.0\VirtualDirectory0\site\wwwroot\Pages\Default.aspx   
    Line: 109 
    Stack Trace: 

    Hi,
    According to your post, my understanding is that you want to use resource files in your SharePoint app project.
    Here is an article for your reference:
    http://msdn.microsoft.com/en-us/library/office/fp179919.aspx
    Code sample: SharePoint 2013: Localize the app web, host web, and remote components of an app
    http://code.msdn.microsoft.com/office/SharePoint-2013-Bookstore-328060fc/sourcecode?fileId=60464&pathId=1536365664
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for