cancel
Showing results for 
Search instead for 
Did you mean: 

result.addValue() & result.addContextChange()

former_member200267
Participant
0 Kudos

Hi,

Where does the result.addValue() & result.addContextChange() is used and how. could anyone explain the exact usage of these two.

Regards,

RDS

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

Both result.addValue() & result.addContextChange() are used in Advanced UDF to add the vaules\Context to Output Queue

result.addValue is used to appends a value to the results list

result.addContextChange is used to appends a context change to the list.

result.addContextChange is similar to result.addValue(ResultList.CC).

http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/frameset.htm

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

void addValue(String value);

Appends a value to the results list

void addContextChange();

Appends a context change to the list. This can also be achieved if you append the constant ResultList.CC by using addValue().

Regards,

Phani

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

it's used in user defined functions in message mapping.

You could create the output queue with them.

addValue is for adding an element to the output queue and

addContextChange inserts a context change in the output queue.

Here is the documentation about it:

http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/frameset.htm

An example could be found here:

Regards

Patrick

Edited by: Patrick Koehnen on Jul 21, 2008 3:29 PM