cancel
Showing results for 
Search instead for 
Did you mean: 

Advance UDF --- Remove Context

former_member190313
Active Participant
0 Kudos

Hi all

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..

Sheetal

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member214364
Active Contributor
0 Kudos

Hi Sheetal,

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)

Shabarish_Nair
Active Contributor
0 Kudos

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

Shabarish_Nair
Active Contributor
0 Kudos

also in UDF try,

<node/field>.removeContext(); Do confirm if it works.