cancel
Showing results for 
Search instead for 
Did you mean: 

Insert Context Change

Former Member
0 Kudos

Dear All

For one of the mapping requirements I need to insert a context change for a field based on some logic.

Is there any way we can insert a context change?

Regards

Sourabh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

See this blog [Introduction to queues in message mapping|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1832].

And especially at the end to know which instruction you can used in a UdF to manage a Change Context... if you cannot acheive it by a graphical function...

regards.

Mickael

former_member184681
Active Contributor
0 Kudos

Hi Sourabh,

If SplitByValue doesn't match your requirements (some more sophisticated logic required), then you could define a trivial UDF that will loop over input values, test the required conditions and add the context change with the following line of code:

result.addValue(ResultList.CC);

Hope this helps,

Greg

jagdishwar_b
Active Participant
0 Kudos

use the standard function SplitByValue from Function Category:Node Functions

http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

if you want to do that within a udf, use method addContextChange() of ResultList Class

Former Member
0 Kudos

Dear Jagdishwar

Splt By value will insert a context change based on "Each Value", Empty Value and Value Change.

But my requirement is different and this node function is not usefull in the scenario. If I can understand how SplitByValue inserts a context change then my problem will be solved.

Regards

Sourabh

Former Member
0 Kudos

Please share your requirement

regards,

Krishna