Is it possible to call a CMD or VBS within MAXL? Need script help
Hello,
I have a CMD script that uses MAXL to execute Essbase backups, the details of which are located in a txt file. That works fine, and I have the logs being sent to a folder.
What I am trying to accomplish is AFTER it is finished running the backup, it calls a CMD script to parse the log file for errors, then either send a successful or failure notification through SMTP.
I have all the scripts to perform the operations and they all function properly, but when I run it, the email is sent before the Essbase backup has completed.
Is there a better way to do this like possibly calling the other CMD/VBS directly from within the MAXL shell? This is my current CMD file:
Echo Calls Maxl shell with reference to EssbaseBackup.txt for variables
call \\<server>\HyperionPlanning\App\Backups\MaxlBackup.cmd
Echo Search Essbase Backup Logs for Errors
findstr /c:"ERROR" \\<server>\HyperionPlanning\App\Backups\Logs\HyperionSetEssbaseForBackuplog.txt
if %ERRORLEVEL% NEQ 0 goto NO_ERROR
goto ERROR
Echo Sends backup success mail
:NO_ERROR
\\<server>\HyperionPlanning\App\Backups\mail_send_success.vbs
EXIT 0
Echo Sends backup failure notification
:ERROR
\\<server>\HyperionPlanning\App\Backups\backup_failed.vbs
EXIT 1MaxlBackup.cmd
"C:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient-32\bin\startmaxl.cmd" "\\<server>\HyperionPlanning\App\Backups\EssbaseBackup.txt"EssbaseBackup.txt
spool on to '\\<server>\HyperionPlanning\App\Backups\logs\HyperionSetEssbaseForBackuplog.txt';
set timestamp on;set timestamp off;
login admin identified by <password> on <server>;
alter system logout session on application App force;
alter application App disable connects;
alter database App.main force archive to file 'F:\Backups\App\Appmain.arc';
alter database App.cap force archive to file 'F:\Backups\App\Appcap.arc';
alter application App enable connects;
set timestamp on;set timestamp off;
logout;
spool off;Edited by: Metatron on Mar 30, 2012 8:10 AM
Try taking the code that is in the MaxLBackup.cmd and stick it into the root script just to remove that area of complexity. If that works, you might also try removing CALL from the line. Although I thought the point of CALL was to run another script and then return control to originating script.
Here's some old (System 9.3.1) code that does what you're doing -- the pathing is wrong for 11x:
REM Write filters to disc
%hyperion_home%\products\Essbase\EssbaseClient\bin\essmsh.exe -D write_filters_to_disc.mshs %7,%8
REM If error, go to end, else write
IF ERRORLEVEL == 1 (SET errormsg=Error! - Read of filters from Essbase failed & GOTO ERROR)The -D and .mshs are to handle an encrypted MaxL script.
Regards,
Cameron Lackpour
Similar Messages
-
Is it possible to call C++ code from a HTML5 panel?
I have thousands of lines of C++ code that I need to reuse inside my HTML5 panel for Illustrator. Is it possible to call my C++ functions from within my HTML5 panel? Some kind of wrapper maybe?
Hi,
A possible solution is to dispatch CSXS events from your HTML panel, and listen to those events in your C++ code and then execute your C++ code.
Hui -
Is it possible to call the Print Quote functionality from Custom ADF page
Hi,
We are researching if it is possible to call the Print Quote functionality from the Custom ADF application.
Goal is to pop up the PDF report upon clicking the Print Quote button on the custom page. Is it possible ?
Atleast advice on the direction to go forward is appreciated.
Thanks
SaiHi ,
Please check following thread on forum -
Re: ADF: Calling OAF Page from ADF page
Check this may also be useful-
https://blogs.oracle.com/shay/entry/to_adf_or_oaf_or
I have not tried yet but Steven Chan (Sr. Director OATG) suggest following methodolgy for this-
https://blogs.oracle.com/stevenChan/entry/appsdatasource_jaas_ebs
Thanks,
Ashish -
Is it possible to call ms-dos command in abap program?
Hi,
is it possible to call ms-dos command in abap program?
Thanks.Hi Cemil,
You probably have your answer here:
[Re: DOS/Windows command in app server;
You create your external command with SM69 (you can test it with SM49).
Then you call this command with function module "SXPG_COMMAND_EXECUTE".
(See function group SXPT for all the calls to external commands).
Regards,
Thomas -
Is it possible to call a adobe form inside a function module?
Hi gurus,
i am trying to generate the pdf data source inside a custom function module,
the function module will call the FUNCTION 'FP_JOB_OPEN' , then call the function module of the pdf interface. then get the pdf data back and return.
but at run time i got the error message:
FPRUNX101, the job already started.
then the program stopped.
i checked the service market place, there is a note for that:858325 Message "Job already started" when you display PDF forms .
according to the notes,it seems that it's only possible to call the pdf generated function module in a program.
my question is , is there a way to call that in a funciton module?
best regards.
Jun
the note states that:
Reason and Prerequisites
At runtime, a PDF-based form is called using a generated function module. If you use the new interface, it is necessary to set the function modules FP_JOB_OPEN and FP_JOB_CLOSE as control structures with one or several generated function modules. In order for the single test from Transaction SFP to work simultaneously, however, the system checks for the test environment of Transaction SE37 (in which the test ultimately runs) in the single test. In this case, the function modules FP_JOB_OPEN or FP_JOB_CLOSE are called automatically.
If you then test a function module that calls a PDF based form and therefore calls the function module FP_JOB_OPEN itself, this leads to the error message mentioned above.
Solution
The test should be carried out using a program that in turn calls the function module to be tested.sorry, i found out the reason.
the fm can not test direct in se37, it should be wrapped by a program.
br.
zj -
Is it possible to call a VI that is inside a LabVIEW executable from a TestStand sequence?
I have created a custom TestStand operator interface and have modified the default sequential process model to display a UUT information dialog that prompts for more information than just the UUT serial number. This UUT information dialog is a LabVIEW VI. To distribute the operator interface, I build it into an executable. As part of the build process, I make a copy of the UUT information dialog VI (which is part of my operator interface project) and place it in the same folder as the executable. I have then configured the sequential process model to call the dialog VI from this location. It would be really nice if I could embed the UUT information dialog VI inside the operator interface executable so that I could distribute just an executable instead of an executable and separate VIs. Is this possible? In other words, is it possible to call a VI that is inside a LabVIEW executable from a TestStand sequence just like a standard LabVIEW VI call?
Ryan,
The dialog that you've created isn't being directly called by the OI at all and shouldn't need to be included in the same directory as the OI for distribution. Since you are modifying the PreUUT of the default process model, you will give the path to the VI in that step, create a deployment and then manually copy the VI to the directory referenced in the step. The VI is considered a support file for the process model and is not related to the OI at all.
Test Engineer - CTA -
Is it possible to call a 9i Forms from a 6i Forms ?
Hello,
I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
Is it possible to call a 9i Forms from a 6i Forms ?
Thank you in advanced for help,
Marcos Souza.I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.
-
Is it possible to call custom designed RFC function module, apart from BAPI
Hi Friends,
1. Is it possible to call custom designed RFC function module, apart from BAPI.
2. Why we call it Adaptive RFC layer, Since every time the JCO layer updated with SAP, Why cant be dynamic.
Thanx for Ur time.
Cheers,
SamAlso check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm">here</a> for more information on aRFC. Here you can find why it is called adaptive.
Regards,
Christophe -
Is it possible to call a locally installed ibook from a hyperlink? What about to a bookmarked page?
I have 2 questions..
1. Can I send a link via email that when launched will open an ibook that has already been downloaded to the bookshelf?
2. If question 1 is possible, can I take it a step further and call a bookmark, i.e. chapter 3.
Our company has it's own appstore and I want to send out links to sections of the ibooks using bookmarks or at the very least take them to the start of the ibook.
I don't need to give them a link to install the ibook as they already have it installed.
Any help would be much appreciated.
Chris.That would be cool, but it's not possible. The ibook is not accessible by URL in the user's bookshelf.
-
Is it possible to call the contact number indicated in the cell?
Hello! Tell me please, I want to move a lot of contacts in the electronic form and organize a list of contacts in Numbers. Is it convenient to use it on the iphone? Is it possible to call the contact number indicated in the cell? That is an example: name, contact, etc. A few columns. I click on the number of human cell, and then what would happen if a set of user (as it happens in the notes for example)?
Sorry for my english.Your post is now in the iWork for iOS community. You should be able to get to it using the link in the email you receive with this message.
Regards,
Barry
PS: Interesting that I received the notification of your post in Russian (except for the first and last words).
Here's Googles translation of my reply above:
Ваше сообщение в настоящее время в IWORK для IOS сообщества. Вы должны быть в состоянии добраться до него по ссылке в сообщении электронной почты вы получите с этим сообщением.
С уважением,
Барри -
Is it possible to call a Web Application from OSB Business Service
Hi,
Is it possible to call a Web Application that has URL - http://host:port/parse.php using a business service in OSB?
What I have seen is it is able to call the service but the data we are sending that is the string in the form of the URL encoded data is not going there. Any help would be appreciated.
Regards,
AnujWhat I have seen is it is able to call the service but the data we are sending that is the string in the form of the URL encoded data is not going there. Any help would be appreciated.How did you configure your BS. My guess is some thing to do with what your BS is configured and what the Back-end is expecting? HTTP Get Vs HTTP Post
Manoj -
Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.
Is there a way to answer the 5c without swiping? It really is a pain and hard to do at times one handed. Maybe allow favorites to be answered with a click of the home button or possibly all calls with a home button push. First smart phone I have owned and the old flip phone was much easier to answer.....just press one button.
-
Is it possible to call the import/export utilities from a procedure?
I was just wondering if it is possible to call these utils as
they are command line .exe's in Windows.
Thanks
MikeHi ,
Please check following thread on forum -
Re: ADF: Calling OAF Page from ADF page
Check this may also be useful-
https://blogs.oracle.com/shay/entry/to_adf_or_oaf_or
I have not tried yet but Steven Chan (Sr. Director OATG) suggest following methodolgy for this-
https://blogs.oracle.com/stevenChan/entry/appsdatasource_jaas_ebs
Thanks,
Ashish -
Is it possible to call a URL from a table entry
Hi Abap Experts,
Is it possible to call a URL when we double click on the record of a table
for example I have a table zmanifest in which if i double click on the tracking number(table field)
it should go to UPS website
Thanks & Regards,
Tharun.PHi
It depends on what you mean to do a doubleclick, i.e. where you want to do it?
If you mean a program created ad hoc, yes you can else I don't think
Max -
Is it possible to call web service from ABAP SAP 4.6 c..If yes how
Hi Friends,
Is it possible to call web service from ABAP-SAP 4.6 c..If yes Could you please let me know how.
Thanks in Advance.
Murali Krishna K
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:09 PM
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:11 PMOlivier CHRETIEN wrote:>
> Hi Terry,
>
> So these function modules must use the SAPHTTPA RFC destination which uses the exe saphttp.exe ?
>
> How much abap code lines do you have for a web service call ?
> Do you have to code the call specifically for each different web service ?
> Are you able to use the WSDL ?
>
> Nice job if you have coded your own private SOAP runtime !
>
> But I don't think this is an easy solution for everybody...
>
> Regards,
>
> Olivier
Yes, SAPHTTPA (runs on application server) and/or SAPHTTP (runs on front-end pc), one of which, is required for HTTP communication. So far, nothing too elaborate as far as SOAP goes, but the logic is simplistic. Here's some sample code:
DEST = 'SAPHTTPA'.
TRANSLATE HOST TO LOWER CASE.
MYURL = 'wssrvTest/Service.asmx/GetByOrderItem'.
CONCATENATE HOST MYURL INTO MYURL.
REQUEST_HEADERS-DATA =
'Content-type: application/x-www-form-urlencoded'.
APPEND REQUEST_HEADERS.
CLEAR REQUEST_HEADERS.
*........Convert Order Number to External Format........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ORDER
IMPORTING
OUTPUT = ORDER.
*........Convert Item Number to External Format.........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ITEM
IMPORTING
OUTPUT = ITEM.
*........Convert Material Number to External Format.....................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = MATERIAL
IMPORTING
OUTPUT = MATERIAL.
CONCATENATE 'sOrder=' ORDER
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sItem=' ITEM
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sMaterial=' MATERIAL
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CALL FUNCTION 'HTTP_POST'
EXPORTING
ABSOLUTE_URI = MYURL
RFC_DESTINATION = DEST
BLANKSTOCRLF = 'X'
TABLES
RESPONSE_ENTITY_BODY = RESPONSE_BODY
REQUEST_ENTITY_BODY = REQUEST_BODY
RESPONSE_HEADERS = RESPONSE_HEADERS
REQUEST_HEADERS = REQUEST_HEADERS
EXCEPTIONS
CONNECT_FAILED = 1
TIMEOUT = 2
INTERNAL_ERROR = 3
TCPIP_ERROR = 4
DATA_ERROR = 5
SYSTEM_FAILURE = 6
COMMUNICATION_FAILURE = 7
OTHERS = 8.
CHECK SY-SUBRC = 0. "more appropriate msg goes here
LOOP AT RESPONSE_BODY.
IF RESPONSE_BODY+0(7) <> '<string' AND
RESPONSE_BODY+0(8) <> '</string' AND
RESPONSE_BODY+0(5) <> '<?xml'.
SPLIT RESPONSE_BODY-DATA AT '=' INTO FIELD_NAME FIELD_VALUE.
TRANSLATE FIELD_NAME TO UPPER CASE.
CASE FIELD_NAME.
WHEN 'HEIGHT'.
HEIGHT = FIELD_VALUE.
WHEN 'WIDTH'.
WIDTH = FIELD_VALUE.
WHEN 'LENGTH'.
LENGTH = FIELD_VALUE.
WHEN 'WEIGHT'.
WEIGHT = FIELD_VALUE.
WHEN 'QTY'.
QTY = FIELD_VALUE.
ENDCASE.
ENDIF.
ENDLOOP.
Hope this helps...
Terry
Edited by: Terry West on Feb 4, 2008 3:08 PM
Maybe you are looking for
-
Using ASA as an Anyconnect profile deployment tool
I have a requirement to use an ASR router as a IKEv2 headend for Anyconnect clients. For ease of deployment, I want to use the ASA firewall to enable users (multiple OS - Win/Mac/Linux) to download their respective Anyconnect clients as well as the
-
I'm working on an application where the original designers have put an escape character preceding every single quote when entering data into a DB. Ex: A user enters O'Riely, and it gets put into the DB as O\'Reily. The problem is that when using JSTL
-
Hi we are developing an application in J2ME where the files can be hidden in mobile. So please can you suggest some API or any other source where i can find some clue. Thank you
-
Dears, I am facing an issue where I am not able to open a project on a different computer after it was created on Premiere CC in my computer. It is saying a message that the project cannot be opened because it was created on a latest version. I am st
-
My big old IPod is stuff with an error stating Disk mode at top with a big check mark in middle of screen and an OK to disconnect at the bottom. Please help I have a lot of reggae music I can't lose.