cancel
Showing results for 
Search instead for 
Did you mean: 

file sender message type

Former Member
0 Kudos

hi all

my question is

how i can create datatype for sender file message which is in the form of

HEADER|22012007|WMD

123565139|220.05

131675434|345.45

178765544|421.00

143563345|334.00

TRAILER|4|1324.50

HERE how i can include header info in my data type

in header date is going to change and site like wmd,rmd,usa is going to vary.

and in addition to that i want to check count all records with trailer and if ok i should send 'ok'message' to reciever and if not 'error'to reciever and in same way i have to check amount with trailer.

waiting for ur answer.

bye.

regards.

seeta ram.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

As explained above you need to use the below structure

Header ( 0.. 1)

field1

feidl2

Data (0.. unbound)

field3

field4

Footer (0.. 1)

field5

field6

and to count the no of records of data and check with the footer field5 value if it is equal then we can do required

this you can achieve by the UDF .. in that take the count of Data as one input and the field 5 value as second input ..

Chilla

Former Member
0 Kudos

Hi Seeta Ram

you can create the data type like

Header(1..1)

field1(date)

field2

data(0..unbounded)

field1

field2

trailer(1..1)

field1

field2

field3

Thanks

Rinku