on 2007 Jul 12 7:42 AM
Hi all,
I am doing a file to file bypass scenario .My client has demanded that the output file should be in ANSI format.
I checked the <b>file.encoding</b> option in sap-help but ANSI is not available can u suggest that what encoding type i must use.
I used ISO-8859-1 as well.But client rejected this file saying that ANSI characters not present in ISO-8859-1
Any one pls throw some light on this how to acheive.
Regards
Seema.
K seemz one of your colleages has asked the same ques and both of you are looking for the same answer
Stefan gave him this reply
The CR/LF question has nothing to do with encoding.
In UNIX the end of line is marked with \n, in Windows it is marked with \r\n.
How XI treates the end-of-line depends on the system where it is installed.
There is no way to influence this. You have to change the EOL with a script.
The question is: What happens with the file after the XI has written this? Is it relevant whether the end-of-line is \r\n or not?
When you have XI installed on UNIX then I assume that cp1252 is not available is this is a Windows code page.
Ask saurab wether he figured the solution? Else gotta try some other options.
cheers
*RAJ*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interseting. To threads with the same issue.
I have another idea: You can use the sample adapter module ConvertCRLFfromToLF. Here you can exchange the LF with CRLF
http://help.sap.com/saphelp_nw04/helpdata/en/96/f04142099eb76be10000000a155106/frameset.htm
If you want use content conversion of the file adapter, you have to do use the StrictXml2PlainBean instead of using the standrad conversion of the file adapter.
http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/frameset.htm
Put the StrictXml2PlainBean before the ConvertCRLFfromToLF in the module chain in the receiver channel.
Regards
Stefan
Hi Stefan,
Thanks for those links.. I have few doubts .. please suggest me.
Based on those links and as per my thinking, now i have to follow below steps in File Module .
-
Processing sequence:
-
<b>Module Name :</b> AF_Modules/StrictXml2PlainBean
<b>Type :</b> Local Enterprise Bean
<b>ModuleKey :</b> 0
<b>Module Name :</b> AF_Modules/StrictXml2PlainBean
<b>Type :</b> Local Enterprise Bean
<b>ModuleKey :</b> 1
Module Configuration :
-
<b>ModuleKey :</b> 0
<b>Parameter Name :</b> singleRecordType (Since it is Bypass scenario,i want the entire file to have endseparator as /r/n.)
<b>Parameter value: </b> What i need to mention i this field??
<b>ModuleKey :</b> 1
<b>Parameter Name :</b> Convert
<b>Parameter value:</b> No value ??
-
In the links, i found these 3 parameters stating as
Enter the parameter convert. It can have the following values:
● none - no conversion
● CRLFtoLF - conversion from Microsoft Windows CRLF to Unix LF
● No value or another value - conversion from Unix LF to Microsoft Windows CRLF
So now i want the file to be in (CRLF).SO i need to mention "No value" here??
Please suggest me stefan if iam thinking in correct way.
Regards
Seema.
> Processing sequence:
> -
> <b>Module Name :</b> AF_Modules/StrictXml2PlainBean
> <b>Type :</b> Local Enterprise Bean
> <b>ModuleKey :</b> 0
>
> <b>Module Name :</b> AF_Modules/StrictXml2PlainBean
> <b>Type :</b> Local Enterprise Bean
> <b>ModuleKey :</b> 1
>
> Module Configuration :
> -
> <b>ModuleKey :</b> 0
> <b>Parameter Name :</b> singleRecordType (Since it is
> Bypass scenario,i want the entire file to have
> endseparator as /r/n.)
> <b>Parameter value: </b> What i need to mention i
> this field??
Do you have a content conversion in your file adapter? Then you have to apply all relevant parameters here. If not, then you can omit this module.
> <b>ModuleKey :</b> 1
> <b>Parameter Name :</b> Convert
> <b>Parameter value:</b> No value ??
Put <b>LFtoCRLF</b> here.
Hi Stefan,
Here we need to use J2SE adapter which is a separate url where we will give configuration details like dir name ,file name etc in that url.
So i need to use XI adapter in ID in XI .
For XI adapter,the module tab is in Disabled state.
Do you have any idea where we can add those Module processing steps in J2SE adapter?
Thanks.
-Seema.
User | Count |
---|---|
63 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.