cancel
Showing results for 
Search instead for 
Did you mean: 

advanced UDF

Former Member
0 Kudos

Hi all,

this is a file to idoc scenario.there are 2 parameters that may required to be passed to below udf.

taxamt,dtl

taxamt is a fieldname,dtl is rootnode which has about 15 fields.

int i = 0;

for ( int j = 0; j < b.length ; j ++)

{

if (b[j].equals(ResultList.CC))

{ result.addContextChange(); i = i + 2; }

else{

if (a<i>.equals("000000000"))

result.addValue("U0");

// else if (a<i>.equals(ResultList.CC)){}

else

result.addValue("U1");

}

}

taxamt----


dtl----


UDF tax_code

r1

r2

.

.

.

r15

the problem i am facing is that there are about 11 line items in my fileeg U1,U2......U11.

all these elements must be sent to the receiver Idoc.I could able to receive only 1 line item.

Please correct my code so that I can receive all the line items..

Thanks,

Srinivasa

Accepted Solutions (1)

Accepted Solutions (1)

ravi_raman2
Active Contributor
0 Kudos

Srinivas,

I can fix this, but i would need your source and expected target.

Regards

Ravi Raman

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Potharaju

Did you check UDF type function is ? Context or Queue..

Or maybe need to verify the context for the field taxamt

..

Former Member
0 Kudos

Hi,

did you check the occurrance of the line item in target idoc structure? if it is 1:1 then change it to 1: unbound...

it shd work...

Karna,,,