cancel
Showing results for 
Search instead for 
Did you mean: 

Container Object in Mapping not accessible

Former Member
0 Kudos

Hi everybody,

I read the same problem in this thread: , but unfortunately no solution has been provided.

I am using a UDF from the TBIT44 course to generate a sequence number:

int inc = 1;

Integer seqNo = (Integer)container.getParameter("seqNo");

if (seqNo == null) {

seqNo = new Integer(inc);

}

else {

int number = seqNo.intValue() + inc;

seqNo = new Integer(number);

}

container.setParameter("seqNo",seqNo);

return seqNo.toString();

If I am adding some traces, I see, that every time the command container.getParameter("seqNo"); returns "null".

Why does the Parameter not be set??

Did something changed in container functionality??

Any help is appreciated.

Regards Oliver

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Do you want to access a variable with different / same UDF's across the instance of a mapping?

If yes, you have the Global Variables that make task simpler which are available from SP 14.

Refer this blog and use them ,

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

Regards

Bhavesh

Former Member
0 Kudos

Thanks Bhavesh. That's it!

Regards Oliver

Answers (0)