Skip to Content

outbound file validation

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 17, 2007 at 12:09 PM

    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-a01e29d75a6a

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2007 at 02:41 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 31, 2007 at 08:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded