cancel
Showing results for 
Search instead for 
Did you mean: 

Creating idocs based on invoice number ocurrences

Former Member
0 Kudos

Hi ,

I want to create idocs based on invoice numbers .

Lets say i have a file coming in from sender system

Invoice1 material customer value

Invoice1 materail1 ..........

imvoice2 material2.....

invoice2 material1.....

invoice1 material3..

Invoice3. material4....

So for Invoice1 only one Idoc should be created similarly for invoice 2 which is ocurring twice in the file

only 1 idoc should be created

Let me know how to achieve this .. by UDF , or by split by value

please help

thnx

Chirdip

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Change the IDOC occurance to 0-unbounded.Export the xsd change the occurance and import it to external definition.

Map Like below:

invoice number--removecontext--sort--splitbyvalue(valuechange)--IDOC

other fields you need to map like below.

invoice number--removecontext--sortbykey--SplibyValue(Each)---IDOC fields
 source field----removecontext------

Regards,

Prakasu.M