on 04-01-2011 9:06 AM
Hello.
We are in the middle of a migration phase from Linux SLES to Win 2003 for a R/3 4.7 installation.
Currently only the sandbox has been migrated.
The old Linux sandbox is still running for testing purposes therefore and anyhow i don't want to include the migrated hosts in the existing transport domain.
With regards to transports i copy the data/cofiles from the saptranshost on Linux to the migrated windows host.
I have executed some transports without any problem, but i have realized that the cofiles are socalled Unix ascii formatted, meaning they have the LF without the CR.
The datafiles are binary so they are ok.
I know that i can change a TR parameter to create universally compatible cofiles.
But, what is the problem with importing the files as they are (Into windows R/3, without the proper CRLF) ?
Also i've created the following snippet to convert, is this enough ?
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
if(argc != 2)
{
printf("\nConverts unix ascii to windows (LF -> CRLF)");
printf("\nUsage: %s filename", argv[0]);
return 1;
}
char buf[100];
sprintf(buf, "%s.out", argv[1]);
FILE *fp = fopen(argv[1], "r");
FILE *fout = fopen(buf, "w");
int ch = 0;
while((ch = fgetc(fp))!=EOF)
{
if(ch == 0x0A)
{
fputc(0x0D, fout);
}
fputc(ch, fout);
}
fclose(fp);
fclose(fout);
return 0;
}
Thank you for your response.
You can use the Linux "dos2unix" and "unix2dos" conversion tools.
We had mixed environments for some time but I never had to change any files, they were detected and handled properly. Do you get any errors when you try to import?
And I wouldn't go for Windows 2003, this operating system is already out of maintenance
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello.
Thanks for reply.
I haven't received any errors during import yet. My thoughts are that the tp control program would eliminate errors or cancel the import if it couldn't read the cofile properly. So i follow, it might not be necessary to convert, anyhow thanks for the tip.
We have to migrate to Windows 2003 cause R/3 4.7x110 is not supported on Win2008.
We plan to upgrade to w2k8 R2 once the upgrade to ERP 6.0 is complete.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.