cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem -UDF

Former Member
0 Kudos

I have a scenario where i had to map file data to a Z rfc in R/3.

but i am new to java language ...can any one help me..

My source File field is :

EDI_DC40 2DELVRY02RCVCONN

<b>E2EDL20 xxxxx</b>

E2EDL24 field1 field2

E2EDL24 field1 field2

E2EDL24 field1 field2

E2EDL24 field1 field2

EDI_DC40 2DELVRY03RCVCONN

<b>E2EDL20 yyyyyy</b>

E2EDL24 field1 field2

EDI_DC40 2DELVRY03RCVCONN

<b>E2EDL20 zzzz</b>

E2EDL24 field1 field2

E2EDL24 field1 field2

and My Targetdaat in RFC import parameter is of table type will be :

xxxxx field1 field2

xxxxx field1 field2

xxxxx field1 field2

xxxxx field1 field2

yyyyyy field1 field2

zzzz field1 field2

i am not able to achive it by till now..

Regards

ajay Pant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

You can use "UseOneAsMany" if you want to repeat one value in many places at target side.

Regards,

Akshay Jamgaonkar,

    • Reward points if find useful.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

<b>like wise <recordset> will repeat</b> means each segement should come under separate record set,is't like that.

regards

yugapreetha

prateek
Active Contributor
0 Kudos

U ll first have to import the RFC under Imported objects

At the sender end u ll have to first use file content conversion to convert ur file structure into xml format

/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

Then u can do the graphical mapping directly.

Where exactly u want UDF?

Regards,

Prateek

Former Member
0 Kudos

hey

your requirement is not clear,could you please explain what u exactly wanna do?

why do u want to use UDF?

Thanx

Aamir

Former Member
0 Kudos

hi

i want xxxxx field of segment E2EDL20 come along with field1 & field2 of segment E2EDL24

IN A ROW :

Table

E2EDL20 xxxxx xxxxx field1 field2

E2EDL24 field1 field2 -


>> field1 field2

E2EDL24 field1 field2

SIMILARLY

E2EDL20 yyyy -


>> yyyy field1 field2

E2EDL24 field1 field2

THX

AJAY

Former Member
0 Kudos

hi

try using concat function with desired delimiter

Former Member
0 Kudos

hi,

when u map the field xxxx to a target field use the standard function "copy value " so that u can copy the single occurence of that field to multiple target fields

Former Member
0 Kudos

but the record set is repeating like

<Recordset>

<E2ED20>

<FIELD1>020</FIELD1>

<VBELN>0083662685</VBELN>

</E2ED20>

<E2E24>

<FIELD2>020</FIELD2>

<POSNR>900001</POSNR>

<CHARG>1078629</CHARG>

</E2E24>

<E2E24>

<FIELD2>020</FIELD2>

<POSNR>900002</POSNR>

<CHARG>1078630</CHARG>

</E2E24>

</Recordset>

<b>like wise <record set> will report</b>

as given data in source file mentioned above:

regards

Ajay

Former Member
0 Kudos

sorry

>>>

<b>like wise <record set> will repeat</b>