cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting context changes for the incoming source field in UDF

Former Member
0 Kudos

Hello all,

I want to detect the chage in context of the incoming source fields , and then create the UDOC root node if context change is detected .

How can i achieve it through UDF.

Regards,

Keith

Accepted Solutions (0)

Answers (4)

Answers (4)

justin_santhanam
Active Contributor
0 Kudos

Keith,

Consider the below incoming message

A123

B123

C123

D123

E123

<b> Context Change</b>

A123

B123

C123

D123

E123

If you want to see whether incoming message element has context change, then follow the logic.

if(incomingmessages.equals("__cC_"))

{

result.addValue(" Context change happens");

}

Apply your business logic wrapping over the above logic.

Keith did above logic works for u?

Best regards,

raj.

Message was edited by:

Raj

Former Member
0 Kudos

Keith,

Follow this blog...This will really help you out...

/people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi

Regards,

ravi

justin_santhanam
Active Contributor
0 Kudos

Keith,

Can u give an example ,so that we can suggest.

Best regards,

raj.

Former Member
0 Kudos

Keith,

ResultList.CC is a constant that means a context change.

More

http://help.sap.com/saphelp_nw70/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm

Regards,

Jai Shankar