cancel
Showing results for 
Search instead for 
Did you mean: 

Calling MII Trans From Perl Script

former_member1170711
Participant
0 Kudos

As part of a migration from MII 115 to 12.1, I am trying to kick off an MII transaction from a Perl script on an external system. This is currently working fine in our 11.5 environment but I am not having any luck in 12.1.

Here is how I am trying to run the transaction from Perl:

$request = HTTP::Request->new(POST => 'http://MyHostNameHere:50000/XMII/Runner?Transaction=MyTransDirHere/MyTransNameHere&InputParameter=MyParam&OutputParameter=status&Content-Type=text/html&XacuteLoginName=MyAccoutNameHere&XacuteLoginPassword=MyAccountsPasswordHere');

Here is the error I am getting:

HTTP/1.1 404 Not Found Cache-Control: no-cache Connection: close Date: Mon, 24 Oct 2011 22:49:08 GMT Pragma: no-cache Server: SAP NetWeaver Application Server 7.11 / AS Java 7.11 Content-Length: 1816 Content-Type: text/html Expires: 0 Client-Date: Mon, 24 Oct 2011 22:49:08 GMT Client-Peer: 155.104.117.34:80 Client-Response-Num: 1 Sap-Isc-Etag: J2EE// Title: Error Report

I have also tried it without a port number and with port 53000. Do I have something wrong in the URL? What should the port be and is the "/XMII/Runner" part correct? In the security section of the transaction I made sure it was readable/writable to everyone.

Thanks,

Mike

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Michael,

Change the "POST" to HTTP::Request->new(GET

Danilo Santos

former_member1170711
Participant
0 Kudos

The "POST" is needed because we are posting an XML document as part of the HTTP request.

I actually just got this issue resolved though. We had a hostname alias issue.

So, for the record, the format of the URL I posted does work. I tried it using the XacuteLoginName/XacuteLoginPassword and j_username/j_password and both ways seemed to work.

Thanks,

Mike

Former Member
0 Kudos

Try using j_username and j_password instead of XacuteLoginName and XacuteLoginPassword. Port 50000 or 50100 are most common. They usually increment by 100 depending on how many sap servers are sharing the box.

former_member1170711
Participant
0 Kudos

Hi Christian,

Thanks for trying to help. Unfortunately it did not make any difference. I still get the same error.

FYI, if I put the same URL in a browser address bar it will run the transaction.

Thanks,

Mike