on 04-13-2007 4:23 AM
Hi Experts,
I have file system at outbound side and defined the Data Type, Message Type for this. Now a want to validate the outbound file against the Message type structure i have defined. Now if the file is not validated against Message type, i want to create the log file that will explain what were the errors in the outbound file and move the file to other archive else send it to inbound system.
Plz suggest the solution.
Thanks and regards,
Vishal
Hello Vishal,
May be you can control it at the Communication Channel level.
Use 'Run Operating System Command Before Message Processing'
CommandLine <pass the shell script>
begin of shell script..
First check for the record count...% wc -l <sourcefilename>
check for the records gt 1.
if no...
mv <sourcedirectory>/<sourcefilename> <targetdirectory>
OR
rm <sourcedirectory>/<sourcefilename> (for ur testing)
end of shell script..
In this case message processing will not be done since there is no file available its moved.
Let me know if that was useful or need any help with the shell script.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bhavesh,
Plz give me some links for adapter modules..
Regards,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the best document for starting on Adapter Modules,
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a">How To Create Modules for the J2EE Adapter Engine</a>
Example Adapter Module,
http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm
Regards
Bhavesh
PS : Do a search on SDN. For instance, look into the How To gudies Section on the XI home page.You will find most of the documents available here.
Hi Bhavesh,
I have a simple file(CSV) to file(CSV) scenario and i am going with graphical maping. On the outbound message type the record occurance is (2...unbounded) . but even if the there is only one record in the file it is processed and i receive it on inbound side.
I should not happen.. i want to move such files to different archive and correct files should be processed only.
Suggest me the solution.
Regards,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vishal,
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.
Regards
Bhavesh
Vishal,
What is the mapping that yhou are using?
If it is graphical mapping then the output of the graphical mapping is always validated against the XSD strcutures.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.