on 03-29-2006 5:01 PM
Hello -
I have done an IDOC->XI-File scenario, everything looks good except for one line that needs to be added.
Without using XSLT/JAVA mapping (not that complex scenario), is it possible to modify the file that has been received to add an extra line.
For e.g after i have received the file, looks like this:
<xml>
<a>
<b>test</b>
</a>
Can i write a command line program for the file receiver adapter in the communication channel to modify the receiver file to add an extra line.
For e.g.
<xml>
This is a test
<a>
<b>test</b>
</b>
This is an example but in the real case its a huge file and believe me its a straight mapping from IDOC to the file but only thing needed is an extra line of text that needs to be added for which i do not want to use the XSLT or JAVA mapping programs.
Is it possible through the command line to read the Received file and modify the file by writing that extra line.
Any clues would really help.
Thanks,
Tirumal
Hi,
You have option of "Run Operating System Command After Message Processing" in adapter. You can call this code of modifying the file and this will be called after the message is processed.
Thanks,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I dont know much unix but you can refer to this blog.
/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
Thanks,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tirumal,
Are you trying to create some kind of header in your file.
You cand ot he samein the File content conversion prameter: NameA.addHeaderLine
Or you can actally do this in your message mapping.
Regards
Vijaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, if you are using file content conversion all you need to do is add this parameters.
The URL tells yuo how u should use it.
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards
Vijaya
Message was edited by: vijaya kumari
Hi Tirumal,
You can write the script unix which will open the file and modify it(Assuming operating system of the server is unix).
Thanks,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.