Skip to Content
0
Former Member
Aug 22, 2009 at 10:00 AM

2 IDOC scenarios

19 Views

Hi Experts,

I need help on the following two scenarios , and wanted to know if some one can help me with the code or if this can be done through PI standard functions

a) File to IDOC scenario - where in the File the first 6 characters of a line item will determine the number of IDOCS i.e

for every change of the combination of first 6 characters a new IDOC should be generated

for eg

abc def ............

abc def...............

abc def............ will be one idoc and

abc rty .............will be 2nd idoc and

def ghr

def ghr

deg ghr.............will be 3rd IDOC

So in all ,3 idocs from these 7 lines , each time the combination of first 6 characters changes a new target IDOC should be generated.

b) File to IDOC scenario

One field will come in a serial number and as soon as it starts with 1 again a new IDOC should be generated

ie. the line items with that filed need to be grouped in one IDOC.

for eg

......1 .....1st target IDOC starts here ..

......2.......

......3.....

......1......2nd IDOC should start as soon as this field is 1 again

......2.....

......1.....3rd IDOC starts here

so every time this field in the legacy file(fixed length) comes as 1 , a new target IDOC needs to be generated

Thanks

Rohan