cancel
Showing results for 
Search instead for 
Did you mean: 

how does remove context influence on userdefined function

Former Member
0 Kudos

hi everybody

I hava querri regarding removecontext if we use both an userdefined function and remove context in the message mapping than does how does the removcontext influence on the user defined functions, can any one please help me regarding this

thanks and regards

sandeep

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Remove context is used to remove the context changes while mapping. It will removed all the supress line feeds.

If you are using the UDFs with Queue, then only you need to use the remove context API to process it.

If your UDF (with Context) is constrained from a particular Context then there will be no need to use it.

Context Handling

Context handling you use when you want to group elements in different node from source into the single node of target with multiple occrance of element( remove context) and if you want to do rever of it the use function split by value .

You need advanced UDFs to handle these manipulations for multiple ocurances.

Now suppose in the target you want to have sum of all Amount in the record. So this you can achieve by removing the context of Amount to Records rather than Item. So that you can have all Amount(s) in same context and hence you can use 'sum' function from Statistics function group in graphical mapping.

Similarly you can use UDFs to handle these kind of processes which are not directly available in graphical mapping APIs.

There are few reference material, this could help you

/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

Thanks

Swarup

VijayKonam
Active Contributor
0 Kudos

If the UDF is inserting some context changes programmatically inside it, Remove contexts would remove them. Did I understand your question correctly??

VJ