Skip to Content
avatar image
Former Member

Batch script in Business Objects

I am trying to run a batch script in SAP BI 4.2.I followed below steps to run btach script as program object

https://blogs.sap.com/2013/04/30/business-objects-program-object-what-we-can-do/

But when i try running this script from CMC,it is running for a long time without any status change.

Do i need modify or check anything before running .bat file in BO,let me know if i am missing anything.

Thanks,

Vikram

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jun 26, 2017 at 11:33 PM

    Does the script which you are running as program object is executable standalone? Does that user who runs BusinessObjects can execute the script without any access issues? If you can share the script, then we should be able to help you from ourside.

    Thanks

    Mani

    Add comment
    10|10000 characters needed characters exceeded

    • why are you looking in output FRS ??
      if your executable creates the file - the file it creates will not be in FRS, it will be in location your executable specifies or in same location as executable.

      BOE here is only running the exe you specify, its not storing its output or controls where it goes.

  • Jun 26, 2017 at 11:33 PM

    Does the script which you are running as program object is executable standalone? Does that user who runs BusinessObjects can execute the script without any access issues? If you can share the script, then we should be able to help you from ourside.

    Thanks

    Mani

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 27, 2017 at 06:47 PM

    Things to try:

    Log in to the BOE server as the user account that BO runs as, then execute the batch file and see if it completes successfully.

    If so, I would add some debugging steps throughout the script, ex:

    echo Starting step 5 >> c:\temp\batch.log

    This should at least give you an indication about the source of the problem.

    Add comment
    10|10000 characters needed characters exceeded

    • Regarding whether changes are required in the program -- it depends on how it is referencing the output file. I suspect it's just writing to the current working directory, which is why I suggesting setting the Working Directory in the program object settings.

      You can use Windows Scheduler instead.

  • avatar image
    Former Member
    Aug 02, 2017 at 06:49 PM

    Thank you all ,The issue is solved.

    Add comment
    10|10000 characters needed characters exceeded