cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Function For Context Handaling

Former Member
0 Kudos

<u><b>Source structure</b></u>

<b>PO_MILESTONES</b> 1+

<b>PO_MILESTONE</b> 1+

WIP_DATE_QUALIFIER string required

WIP_DATE string required

<b>WIP_STATUS_TEXTS</b> 0 to 1

<b>WIP_STATUS_TEXT</b> 0 to 1

REASON_CODE string required

FREE_TEXT_DESCRIPTION string required

<b><u>Target structure</u></b>

this has 2 node for the target structure one as a sub node of other.

<b>HDR</b>

Record Type

Vendor ID

Purchase order number

Customer order number

Article number

Transfer date

Transfer time

WIP date

Division

WIP date qualifier

Client Number

LSCD

Reason Code

Filler

<b>STS</b>

Record Type

Vendor id

Purchase order number

Customer order number

Article number

Transfer date

Transfer time

Free text description

Division

Filler

my question is i want some <b>fuction</b> or <b>UDF</b> which will take thecontext of source <b>PO_MILESTONES</b> for souce node <b>WIP_STATUS_TEXTS</b> because i need WIP_STATUS_TEXTS to be mapped as may times PO_MILESTONES occur in the souce

and PO_MILESTONES is 1 to unbounded and WIP_STATUS_TEXTS is 0 to 1

how can i take the context of PO_MILESTONES to WIP_STATUS_TEXTS because this is not posssible by <b>Context chage</b> and I chekced it .

it need to be done by <b>UDF</b> ,,,i feeeeellllllll

help me and send me the Code

thanks

shakif

Accepted Solutions (0)

Answers (3)

Answers (3)

prabhu_s2
Active Contributor
0 Kudos

ur req is not still much clear.

Former Member
0 Kudos

Hi Mohamed,

Maybe you should see if the node function UseOneAsMany provides what you need.

justin_santhanam
Active Contributor
0 Kudos

Mohamed,

Could you please give the exact logic. Which field of the target u want to map?

Please be lil bit more specific.

Best regards,

raj.

Former Member
0 Kudos

i want to map two nodes A and B and it's element with same context level to 2 nodes C and D hear D is a Sub node of C

the number of occurence A has to be taken to B and has to be manipulated and mapped to D

Example

A comes 3 times in the souce

B comes only once

i need to make B 3 times and Map to the Target ...this i am not able to do with contect chage

plz help......