VBScript as program object - alternative to WScript.Arguments?

I am trying to create a program object with a VBScript that will change the name of a PDF created by a scheduled report.  I need to be able to tack on the string "OH_2010_Qtr_1" (or whatever state - OH is used as an example) before the file extension - the VBScript creates that string based on the date the report is run.  I want to be able to pass parameters to this script but when I try to do so I get the error "Variable is undefined 'WScript'" when trying to run the program object.  I tried creating a batch file that would pass in the parameters and I get a generic error. 
How can I pass arguments to my VBScript?  The arguments are necessary because this is for multiple instances of the same report, run for different states.
Edited by: marykDBA on Mar 24, 2010 10:17 PM

please post this question in the developer forum below
.NET SDK Application Development

Similar Messages

  • Passing arguments to VBScript Program Object - Without WScript.Arguments?

    I am trying to create a program object with a VBScript that will change the name of a PDF created by a scheduled report. I need to be able to tack on the string "OH_2010_Qtr_1" (or whatever state - OH is used as an example) before the file extension - the VBScript creates that string based on the date the report is run. I want to be able to pass parameters to this script but when I try to do so I get the error "Variable is undefined 'WScript'" when trying to run the program object. I tried creating a batch file that would pass in the parameters and I get a generic error.
    How can I pass arguments to my VBScript? The arguments are necessary because this is for multiple instances of the same report, run for different states.

    For VBScript Program Objects, some injected objects:
    For Each arg in Script.Args
        ' Do something interesting with String arg here
        Script.Writeln(arg) ' Output to stdout
    Next
    and
    ' Get InfoStore
    Set infoStore = Session.Service("", "InfoStore")
    Sincerely,
    Ted Ueda

  • Error when scheduling a cmd file (program object) via the cmc

    Hi,
    I have added a program object which is a cmd file in the BO repository.
    When I try to schedule it through the cmc, I'm receiving the following error message:
    "Could not capture output for the program". The credentials to execute this program object are correct.
    I'm using SAP BI 4.1 SP4
    Does anyone has any clue to solve this problem?
    Thanks

    We are on SAP BI 4.1 SP3 patch3 (not sp4 as mentioned above)
    Yes I did enter the user name and password to run the program object.
    It has never worked before on SAP BI 4.1 but the same program object works well on BOXI 3.1 SP3.
    If I try with an other program object, it's also failing.
    I checked the sap notes and I did some adjustments.The domain user account has now all the requested rights.
    But I still have the same error message when I try to schedule a program object

  • This message cannot be displayed because of the way it is formatted. Ask the sender to send it again using a different format or email program. multipart/alternative

    When trying to read messages on one email account I often get the following error message:  This message cannot be displayed because of the way it is formatted. Ask the sender to send it again using a different format or email program. multipart/alternative
    IMAP Email account is with Telus Shared hosting.  I have been through set up with their tech support and everything is set up correctly.
    Of course my gmail account and icloud account works perfectly.
    Any ideas?
    Thank you.

    My iPad not working with hotmail and all Microsoft it working only with icloud ,Google,yahoo mail you andestandyou me or not system not working with this divies

  • Program object schedule success but is not executed in real time

    Hi all,
    I have a batch file ad following is the content
    set path=C:\WINDOWS\system32
    echo Copying started at %date% %time%>>_date_.txt
    XCOPY "
    Boxis\c$\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes\qaawsWsdl.zip" "
    Sxi31\d$\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes" /s /a /d
    echo Copying finished at %date% %time%>>_date_.txt
    echo Completed Successfully at %date% %time%>>_date_.txt
    echo -
    >>_date_.txt
    pause
    I have uploaded this batch file in enterprise. When I schedule it the status is shown as Success however the file qaawsWsdl.zip is not copied to the destination.
    Note: When executing the batch file real time the file is getting copied
    I have added the user in Replace a process level token policy
    I have set program object rights to run script/binaries
    SIA is running on domain account that has access to source as well as destination folders.
    Am I missing something?
    Environment
    Business Objects XI 3.1 SP3 clustered (Also tried above in standalone, same issue)
    Windows Server 2003

    The program object will run with the credentials of the user you provided in the schedule panel unless you did not provide any and you have set a default user account in the CMC under Application->CmC->Program object settings. THis user has to have access on the source and target directories.
    What you can do is try to login manually on the BOBJ server using the credentials of the windows user that runs the program object and try to run the script from the command line.
    The domain account under which the SIA is running is not really relevant
    Regards,
    Stratos

  • Program Objects Stuck in Running Status

    I have some batch files that runs as  scheduled program objects in Business Objects XI.  They will work correctly for a week or so and then they stay stuck in running status without completing, with several jobserverchild.exe processes running and several folders still in the procSched folder.  I can sometimes delete the processes and the folders and get it to work and sometimes not.  Anybody know the problem

    Anybody have any idea about this? I am still having the problem

  • The object contains an unrecognized argument: "JobId"

    Hi all,
    I'm trying to push configuration on two nodes using WMF 5.0 Preview February 2015 but it is failing to create job on one the second node. Would appreciate any advise on how to resolve this issue.
    Command:
    Start-DscConfiguration -Path C:\MOF\AzurePackAdmin -Verbose -Wait -Force
    Error:
    The WinRM client cannot process the request. The object contains an unrecognized argument: "JobId". Verify that the spelling of the argument name is correct.
    + CategoryInfo : MetadataError: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : HRESULT 0x803381e1
    + PSComputerName : node02.domain.lab

    Try and delete the content of the c:\MOF\AzurePackAdmin folder, generate the MOFs again and try to apply the configuration. If that is unsuccessfull, reboot the nodes if you have not tried that. If the error persist, create a dummy configuration like this:
    configuration Telnet
    Param(
        [String[]]$Computername
        Foreach ($computer in $computername)
            Node "$computer"
                WindowsFeature TelnetClient
                    Ensure = "Absent"
                    Name = "Telnet-client"
    Try and apply that configuration to the nodes. If the configuration gets applied, then there is most likely an error in WMF5, the DSC resource/module or the configuration. 
    Cheers
    Tore

  • When we create a table maintenance generator what is the program object

    When we create a table maintenance generator what is the program object
         & What is the database object is being created?

    check links
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=use%20of%20table%20maintenance%20generator&cat=sdn_all
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Rewards if useful.....................
    Minal

  • What is the program object is being created when we activate smartform?

    What is the program object is being created when we activate smartform?

    hi,
    while activate the smart form, a function module is being created.
    by using this function module we can pass the business data to the form.
    in print program we can simply call the function module which has been created by smart form while it activate and pass required parameters to it.
    for more information follow this link.
    http://sap.niraj.tripod.com/id67.html
    regards,
    Ashok Reddy

  • Program object doesn't work.

    Hi BO experts,
    I'm going to schedule a batch file to send some files to another file server via pscp command.
    my code like this,
    @echo off
    md d:\pscp
    PSCP.EXE -1 -2 -batch -q -l ndmp03 -i d:\Putty\mykey.ppk d:\test.txt [email protected]:download/test.txt
    After running the program object, I find the folder "pscp" has been created.
    But the file test.txt is not sent to server 192.168.1.3. And the job  always  be running.
    BTW, If I run the batch file directly on OS. It works fine.
    Do you have any experience on it? Many thanks.

    Hi,
    Manys thanks for your reply.
    Yes, I use the same account. (Administrator). 
    The issue is remaining. Now,
    In the Bo Schedule, the batch file can be executed. But when the program go to pscp command, it always keep running and can not get any further.
    I was trying to use a java script to call the batch file in the BO schedule. And it also stop in the command pscp.
    Do you have any comment? Thanks.

  • RSTT (RS Trace Tool) - checkable program objects

    Hello,
    I have read the presentation "Automatic Test of Queries with RS Trace Tool" but I can`t find an answer on this question:
    What is the reason for some navigation steps being "Recorded Program Objects" or "Checkable Program Objects".
    I execute a query via RSRT2 (HTML Display), set some filter, drill down etc..
    This query is saved as a trace at RSTT but it doesn't`t have any checkable program objects and can`t be used for testing.
    So what could be the problem in this case?

    Hi!
    It look like that you missed one little checkbox... Please have a look at slide "User Activation with Transaction RSTT" (slide 12). In step 2, you have to activate the checkbox "Activation for Test Generation". Only with activated checkbox, checkable program objects are added to the trace.
    Please try this checkbox. Let me know, if you still have an issue.
    Enjoy,
       Tobias

  • Program Objects Rights and Analytics Scheduling Error

    Hi Guys,
    I just would like to ask if you guys would know who to solve my problem with scheduling analytics.  I've read a number of forums but it didn't help mush.  Anyway, I'm getting 2 problems in doing this:
    1. When i'm scheduling in the Infoview, it always fails.  The error is "Could not authenticate using the provided operating system credentials"
    So i went to the CMC>Application>Program Objects Rights> and did the following:
    -check the Run scripts/binaris (as directed from other forums)
    -Clicked the Schedule radio button in the "Schedule with the following operating system credentials."
    -Placed a username and a password
    Now, here's where my 2nd problem happens
    2. Every time i set a password and try to save it, the page refreshes and removes the password.
    Hope you can help me.
    Kind Regards and Many Thanks,
    Mark

    My first thought is to not just apply permissions to the folder but be sure to apply them to all objects inside them. It would be interesting to see if you can rename this file, then rename it back to its original name; this would test permissions nondestructively.

  • Getting ClassNotFoundException in sheduling a program object

    Hi,
    I am trying to schedule a program object called MoveReports , it shows status as Success  but program object has not ran, if I click on Instance time, it displays error message as:
    Could not instantiate MoveReports
    java.lang.ClassNotFoundException: MoveReports
    Could you please suggest me what configurations I need to do in CMS
    Thanks&Regards
    Damodar

    Hi,
    did you configure the progam object correct in the CMC? You need to specifiy the working folder and expecially the main class of your progam object here. Did you upload the jar file as Java program object? It sound somehow like the job server cannot find your main class inside your jar file...
    Regards,
    Harald

  • LSO Course Program Objects - EHP2

    Hello, everyone I am on a LSO Project and we have applied the EHP2 BSP, and we dont not see the Course Program Object "EK" within the list of Course Object, nor do we see the relationships that are associated with Course Program.  Can anyone tell me how to correct this issue.
    Keith

    I am in the same situation.  When I go to Delivery methods I can create the delivery method ( it should be in the menu as item 12) as a 9012 as the Delivery attributes exist.  I just don't have the object - s/b EK

  • Interconnection of programs, objects and functions

    If you do not have written documentation of the ABAP program you are trying to debug and you need to find out like:
    1. what other programs that calls a certain function or object?
    2. what are the subprograms or include programs connected to a whole project?
    Is there any way the SAP system can help you find the interconnection of programs, objects, functions used in the entire project?
    <b>thanks for the help.</b> newbie here.

    If all the objects are in thge same package, you can use SE80 to display the components of the package.
    You can also use SE80 to display all of the includes, screens, transactions, etc. of a single program or function group.
    Rob
    Message was edited by:
            Rob Burbank

Maybe you are looking for

  • Handling Large Files in XI

    we  have designed couple of integration process for the project. we need to handle messages more than 5MB and the message rates are approximately 100 Msgs/Hr - and we did the tuning as per the tuning guide . we are now facing the following issues 1.

  • Uploading videos from phone to laptop but getting ...

    Hi there I have a nokia 6303 classic and i'm trying to upload videos filmed on it to my laptop via the data cable.  the videos seem to be uploading fine but i'm not getting any sound on them.  Just wondered what i am doing wrong?? thanks

  • Credit control sales area wise

    Dear Friends, Sales organisation model is my company is distributor for all manufacturers,  it will take care of credit control so  we proposed a sales area  which resembles like this Mumbai -glaxo- pharma, Mumbai -Novartis- pharma(sales org-disti ch

  • How do I set home page?

    I want to make a specific page as my Home page for Firefox. Can someone please email me with the answer st. [email protected] THANKS

  • Where to set Java system parameter for embedded WLS in JDev 11g?

    Hi, I am trying to test web service invocation via JAX-WS proxy generation on Jdeveloper 11g. When I test client code, I got following error message. Exception in thread "main" java.lang.Error: Jaxrpc 1.1 method is not supported.      at weblogic.web