cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress Structure

itabhishek9
Participant
0 Kudos


Hi SDNites,

I have to split file into multiple file based on no. of records present in input file. Here Footer sent in sender file is to be mapped to last generated file in the receiver.

To achieve this functionality I have written an UDF (All values of a queue) which identifies my last file. After this used ifWithoutElse and the same is also giving the output as expected but when mapped to the receiver strutcure values are displayed only in first generated file.

Ex:

Header

Item 1

Item 2

(For discussion lets say receiver file should not contain more than 2 item records)

Header

Item 1

Item 2

Item3

Item 4

Footer

Expected receiver files

File 1

Header

Item 1

Item 2

File 2

Header

Item3

Item 4

Footer

After UDF is executed and queue shows, (Here 1 and 2 are theno. of  files which will be generated. I obatined these with previous steps in message mapping)

1     False

2     True

IfWithoutElse queue displays

Suppress

[]

Receiver mapped field

Suppress

[]

When execution o/p is seen value is seen in first file generated.

Regards,

Abhi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Abhishek,

Its better to use Multimappping for splitting the file.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...

It will be easy to understand and implement.

Regards,

Rudra