cancel
Showing results for 
Search instead for 
Did you mean: 

outbound file validation

michael_buchli
Participant
0 Kudos

Hi All

i need to validate my outbound file before content conversion into xi soap format. Is it possible configure a outbound file validation step before or during the file 2 xi soap transformation?

e.g.

I have a outbound flatfile with a data recored per line. The line has a fix length, which is always the same and also the record field gets fixed lenths. Now i have to be able to detect

a: if a record (line) length is to short

b: if a record (line) length is to long

Line ok:

0031070000993063000095651820070600000000000

Line too short:

031070000993063000095651820070600000000000

Line too long:

00031070000993063000095651820070600000000000

I did a "normal" file 2 file szenario with content conversion that works fine, but don't recognize invalid line lengths.

Thx in advance

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

try this

Write an Adapter Module on the Sender File Adapter,.

This will check for the Source Strcture.

If valid, set some falg and if inavlid set sometoher flag.

Do a conditional Receiver Determination and determine if the file is to be sent to thtarget system or the error archive folder.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d7...

http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm

Answers (2)

Answers (2)

michael_buchli
Participant
0 Kudos

Thanks for your recommendations.

I did a FCC to a format with a xml tag per record line and did the length vaildation afterwards in a Java Mapping.

Former Member
0 Kudos

1.use content conversion in file adaper.

2. get the all the record.

3. create a user define function and pass the whole line as parameter.

4. check the input length in UDF and throw error or success accordingly.

5. you can use standard function for the same purpose..

first sequence would->file adapter ->content conversion->udf ->error or success.