cancel
Showing results for 
Search instead for 
Did you mean: 

Custom actions for 12.0

Former Member
0 Kudos

Hi,

I am migrating the custom action code that is written for xMII 11.5 to MII 12.0. I read that the only difference in creation of custom actions from 11.5 to 12.0 is the package name structure has been changed from com.Lighthammer to com.sap.xmii.

In the process, for the new xMII classes i downloaded a JAR from custom action developer kit which is available over SDN and started using the XMII.jar file for all the internal MII class references. Somehow, it seems there are few things which are missing in the JAR. I am unable to find actionObject attribute of AbstractActionDialog class.

The following statement which used to work in 11.5 is not working in 12.0

((MaterialMasterAction) actionObject).setInput(input.getText()) for passing the input from dialog to action object.;

I am getting an error actionObject cannot be resolved.

Can anyone tell me if this is changed or the XMII jar i am using is out of date ?

Thanks,

Prasad.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Object actionObject = super.getAction();

if(actionObject instanceof MaterialMasterAction)

{

MaterialMasterAction ma = (MaterialMasterAction) actionObject;

}

This way one can get the handle to the action object and can pass the values.