cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction call

former_member329434
Participant
0 Kudos

Hi Friends,

I have a BLT  developed at Plant MII server which needs to be called from Primary MII server. What should be the best approach and design for calling Plant BLT from Primary MII server?

Both MII servers are under same network and connected using virtual connector.

Thanks,

Suman

Accepted Solutions (1)

Accepted Solutions (1)

former_member211944
Active Participant
0 Kudos

Hi Suman,

You can use the Xacute Connector for your scenario.

Steps needed are:

1. Create a transaction in the source MII System.

2. Create a Virtual Xacute connector connecting to the Xacute connector of the source MII System.

3. Create a Xacute query with this virtual acute connector as data source.

     Here in this query, you would get all the transactions of the Source MII System.

Another way could be calling the Runner service. URL would be :

<protocol>://<server>:<port>/XMII/Runner?Transaction=<transaction path>&OutputParameter=<name of output parameter>&j_user=<user name>&
j_password=<password>&Content-Type=text/xml

Better way would dependent on from where you want to call the transaction.

Regards,

Rohit Negi.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Suman,

    Adding to what Rohit has said, you could also use

1. A HTTPPost action block with the URL mentioned in Rohit's reply. Make sure pass the credentials by creating a credential alias or by using the link editor in the action block.

2. You could use WSDLGen Service to expose the Plant MII's transaction as webservice and then call the same from Primary MII's server using webservice action.

3. You could also use an XML Query/Xacute Query to call the transaction using its corresponding virtual connectors. these connectors would inturn point to the Plant MII server.

I would suggest using HTTPPost or using WSDLGen services,

Check SAP Library - Content Development for more information on different ways to call a transaction.

Regards

Tufale Ashai

former_member329434
Participant
0 Kudos

Hi Rohit / Ashai,

I have explored both the options suggested by you and both are working. Thanks a lot .

keep rocking

Thanks,

Suman

former_member329434
Participant
0 Kudos

Hi Ashai,

I am facing one problem while calling URL using webservice action from the primary server.

any suggestions for the below error:

soap service could not be loaded : xmlproxyError :status(400) bad request.

I have created a  transaction in the primary server with one  web service action block.Even unchecked, WSDL Gen sec enabled checkbox from the system properties.


Thanks,

Suman

Former Member
0 Kudos

  You have to expose the transaction as a webservice inorder to execute it from the webservice Action block.

Try this,

http://<servername>/XMII/WSDLGen/<TransactionFolder(s)>/<Transaction>. For example, if you have a transaction named Line1OEE in a KPI folder, and your server's name is Atlantis, the URI is http://Atlantis/XMII/WSDLGen/KPI/Line1OEE.

Web Service Interface - SAP Documentation

Incase you are calling any other URL, make sure its a webservice. When you put the same URL in the browser, it should return you a WSDL.