I want to use RemoveContext function in UDF ...as this will be based on few conditiond.
Hence i can not use the standard removeContext node function..
can any one tell me the code for doing the same..
if you Create QUEUE function.you can check context change using ResultList.CC constant and you can add context change using ResultList.CC constant.
so if you want to create target Queue from source Queue which have context changes, just read source and use result.addValue() and if you want to add context change use result.addValue(ResultList.CC)
you can have a remove context functionality outside the UDF itself.
Right click the source field and change the context from the parent node to the top(root) node to remove all contexts.
Note: you can indeed ADD context etc in a UDF - http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm