Skip to Content
0

SAP ME CNC Machine Integration Setup

Jul 11, 2017 at 01:24 PM

122

avatar image

Dear Experts,

we are trying to test CNC Machine integration in SAP ME/MII with PCo but we are facing an issue when invoking LOAD_CNC_PLUGIN activity through standard POD.

Following the steps to reproduce the issue:

1) In SAP MII define a custom transaction/web service that retrieves the list of CNC/DNC resources in the XML format described below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://visiprise.com/integration/predator/service">
	<soapenv:Header/>
	<soapenv:Body>
		<ser:getDNCResourcesResponse>
			<ser:getDNCResourcesResult>
				<ser:DNCResource>
					<ser:Id>0001</ser:Id>
					<ser:Name>Resource 0001</ser:Name>
				</ser:DNCResource>
				<ser:DNCResource>
					<ser:Id>0002</ser:Id>
					<ser:Name>Resource 0002</ser:Name>
				</ser:DNCResource>
				…
				<ser:DNCResource>
					<ser:Id>NNNN</ser:Id>
					<ser:Name>Resource NNNN</ser:Name>
				</ser:DNCResource>
			</ser:getDNCResourcesResult>
		</ser:getDNCResourcesResponse>
	</soapenv:Body>
</soapenv:Envelope>

The transaction parameters are the following:

- input parameter: "XMLIn", Data Type XML

- output parameter: "XMLOut", Data Type XML

2) Test the SAP MII transaction/web service call via the following URL

http://<server>:<port>/XMII/Runner?Transaction=<Folder>/<Transactionname>&InputParameter=<InputParameterName>&OutputParameter=<OutputParameterName>&XacuteLoginName=<Username>&XacuteLoginPassword=<Password>

where:

- Server: SAP MII server hostname/address

- Port: SAP MII server port

- Folder: SAP MII transaction folder

- Transactionname:SAP MII transaction name

- InputParameterName: Name of the transaction input parameter. Must be set to “XMLIn”

- OutputParameterName:Name of the transaction output parameter. Must be set to “XMLOut”

- XacuteLoginName:SAP ME/MII user username

- XacuteLoginPassword:SAP ME/MII user password

3) In SAP ME Activity “System Rule Maintenance” set “CNC/DNC Type” to CNC

4) In SAP ME Activity “System Rule Maintenance” set “CNC/DNC Server” with the URL tested at step 2)

5) In SAP ME Activity “Resource Maintenance” define a new resource and set "CNC/DNC Resource" in it.

6) In SAP ME Activity “CNC Program Maintenance” define a CNC Program by adding as attachment point the resource defined at step 5)

7) In SAP ME Activity "POD Maintenance" define a new operation POD with two new buttons that call LOAD_CNC_PLUGIN and UNLOAD_CNC_PLUGIN activities respectively.

8) In SAP ME create a new Shop Order to be used in Operation POD created at step 7)

9) Press button that calls LOAD_CNC_PLUGIN

10) A "Load CNC Program Plugin" window appears with the message "An internale error occurred; contact technical support"

11) SAP MII LogViewer records this error/stack trace

ASJ.ejb.005044 (Failed in component: sap.com/me~ear) Exception raised from invocation of public com.sap.me.system.base.ApplicationVO com.sap.me.cncdnc.LoadCNCProgramApplicationBean.loadProgram(com.sap.me.system.base.ApplicationVO) throws com.sap.me.frame.BasicBOBeanException method on bean instance com.sap.me.cncdnc.LoadCNCProgramApplicationBean@25cd560 for bean sap.com/me~ear*xml|me.integration.cnc.ejb-151.1.0.jar*xml|LoadCNCProgramApplication in application sap.com/me~ear.; 
nested exception is: javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005044 (Failed in component: sap.com/me~ear) Exception raised from invocation of public com.sap.me.frame.Data com.sap.me.cncdnc.CNCBOBean.getCNCMachineCommands(java.lang.String,java.lang.String) throws com.sap.me.frame.BasicBOBeanException method on bean instance com.sap.me.cncdnc.CNCBOBean@462f40fe for bean sap.com/me~ear*xml|me.integration.cnc.ejb-151.1.0.jar*xml|CNCBO in application sap.com/me~ear.; 
nested exception is: javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005044 (Failed in component: sap.com/me~ear) ....

As we could not find any exhaustive documentation for the setup of CNC Machine Integration in SAP ME we don't know how to go over this blocking issue.

Any hint would be very appreciated.

Thank you in advance.

Regards, Luca

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers