on 02-26-2008 6:03 AM
Hi,
I have a requirement where in the scenario is IDOC to XML File.
I have done the Message mapping for Transformation Logic.
But the Output XML prolog should look like this < XML Version='1.0/None' encoding = 'Shift-JAS/None'>
If the RCVLAD Field ends with the String "JP", then my Version should be '1.0 and encoding = Shift-JAS'
else
Version should be NONE and encoding should be NONE.
Any pointers are highly appreciated and will be rewarded with points.
Thanks in advance
Regards,
Babu
Done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi -
You can definately change it. If you are from Java Background You will have to use UDF and do some Java coding for this
The API used is com.sap.aii.af.ra.ms.api. There you are provided with some classes like PayLoad, TextPayLoad
You can create an Object of this type of your XML Message, and then Access/edit "encoding" & "version" attribute based on your conditions with methods like getEncoding() & getVersion().
Let me know if you need any further help on this.
Regards.
Jeet.
Reward points if Helpful.
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.