on 08-17-2007 12:54 PM
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
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.
http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.