Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Custom Action Block in xMII: Working with XML and DateTime Types

Hello all,

I am in the middle of developing custom action block for xMII. I have no problem creating the basic (I have successfully created a custom action block that perform simply things).

However, I am having trouble getting XML types in and out of a custom action.

Our setter never executes, perhaps because we have the type wrong? Is

org.w3c.dom.Document the type we should be using? We can get it to

work for int, double, and string.

If org.w3c.dom.Document the correct type, can someone please show me segment of code for working with XML type (just getting value in and out would be sufficient)

Also, what is the type for Datetime in the back-end java code, anyone know?

Thank you very much.

Former Member
Former Member replied

Your action should use the Calendar type in its method signature, but the GregorianCalendar class in its implementation:

public Calendar getQueryStartDate() {

return _startdate;


public void setQueryStartDate(Calendar value) {

_startdate = value;


public Calendar getQueryEndDate() {

return _enddate;


public void setQueryEndDate(Calendar value) {

_enddate = value;


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question