cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Execute MS-DOS command in Transaction

Former Member
0 Likes
800

Hello,

I am copying encrypted files from the ftp server with the action: FTP Input.

This works fine, but after this action i want that it executes a dos command from xMII to decrypt the files. I have a statement like this:

raes-1.exe -d %TEST% DELFOR_20080507095802864.aes DELFOR_20080507095802864.xml

I already tried some things, but i do not use a htm page or javascript. I want only the functions in a transaction and schedule this transaction. It has to look every day if their are files. Copy and decrypt them.

When i executed through windows --> start --> run it works, so somehow it should also be possible to execute the command through MII.

Kind regards,

Nick

Edited by: N. Meuter on Oct 17, 2008 3:38 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

The last question i have is wow to start xMII logic editor?

Thank you very much, the rest i will sort out myself.

regards,

Nick

agentry_src
Active Contributor
0 Likes

Are you using 12.0.x or 11.5.x?

Former Member
0 Likes

Sorry, i am using 12.0

agentry_src
Active Contributor
0 Likes

Hi Nick,

The logic editor, along with the other editors (display, query) have all been incorporated into the Workbench. Under Data Services, select SAP xMII Workbench. Create a new transaction and the (familiar?) features of the business logic editor will appear.

Good luck,

Mike

Former Member
0 Likes

Never mind, this is not what i mean. Will contact our xMII partner they will explain it to me.

Former Member
0 Likes

Maybe someone else another idea?

Former Member
0 Likes

A custom action is definitely the best, most secure, and most reusable approach.

Former Member
0 Likes

thank you very much. But is there somewhere a clear document how to create a custom action. I already searched on SDN and google and downloaded already stuff, but for me it is not clear. I now how to upload the jar file, but how do i creat this jar file and with which tool?

agentry_src
Active Contributor
0 Likes

Use the link that Christian provided. Look under the version xMII 11.5.x for

"Creating SAP xMII 11.5 User-Defined Action Blocks"

That should give you a good outline of what is required. The implementation is a bit different for 12.0, but not by much. Read that article and then ask questions here.

Good luck,

Mike

Former Member
0 Likes

I have done this before with a custom action block, though if you are going to go that route I strongly recommend using something java native within your action to perform the decryption.

Opening a portal to the OS's command line is a huge liability.

Former Member
0 Likes

How can you execute java within a transaction?

Thanks for your fast reply.

Former Member
0 Likes

[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xmii/customization|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xmii/customization]

Former Member
0 Likes

I have achieved to add a customer action block from the example custom action.

The only problem is that wenn i want to drop it in the transaction is doesn't show anything the block will be empty. Someone an idea?

Edited by: N. Meuter on Oct 22, 2008 3:34 PM

Former Member
0 Likes

Check the logs and/or clear your java cache.

Edited by: Christian Libich on Oct 22, 2008 3:47 PM

Former Member
0 Likes

I have developed it on my own system and uploaded it through the xmii menu custom action blocks.

Now i deleted the action block and wanted to upload it again. But it did deployed directly. Where should i clear java? On my own computer or server?

My java console on local machine says this:

JNLP JREDesc in Component ignored: null

JNLP JREDesc in Component ignored: null

JNLP JREDesc in Component ignored: null

ConsoleLogger::Creating NEW instance...

WARN - Could Not Load Muffins, Using Defaults: http://smnlxmii2:50000/XMII/CMSLogicEditor/LookAndFeel

<<< frog.jar: version 5.4.6 02/01/06 sap.theme: Tradeshow >>>

Unable to localize label 'null', null

Unable to localize label 'null', null

Former Member
0 Likes

I now have create an action and i can set the action, but when i execute it it says that it is not an action Custom Action is not an action? Someone already had this error from the example?