Skip to Content
0
Former Member
Oct 19, 2007 at 09:44 AM

need to write UDF for following scenerio in sap xi graphical mapping

8 Views

Hi ,

can any one help to write UDFs for the following scenarios.

my scenario is:

mail adapter---- >XI ---->proxy

scenario 1:

source field: subject

target field: priority

mapping logic: This uses semi-colon as separator on the Subject, and parses it to get the PRIORITY. If there are less than 4 parameters in the Subject line, then it returns NULL.

scenario 2:

source field: subject

target field: shortdescription

mapping logic: This uses semi-colon as separator on the Subject, and parses it to get the Short Description. If there are less than 4 parameters in the Subject line, then it returns NULL. Also, if there are more than 4 semi-colon separated parameters, then all the parameters after the 4th parameter are considered to be part of the Short Description.

can you please provide java code for above logic in step by step

i am new to write UDFs .

your immediate response will be appreciative

Thanks in advance.

Regards,

Raghu.