Skip to Content
avatar image
Former Member

how does remove context influence on userdefined function

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 17, 2008 at 11:13 PM

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

    VJ

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 18, 2008 at 02:41 AM

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

    Thanks

    Swarup

    Add comment
    10|10000 characters needed characters exceeded