--- pipe2sap.pl 2003/02/03 14:30:50 1.4 +++ pipe2sap.pl 2003/02/06 08:45:46 1.5 @@ -33,7 +33,7 @@ my $outfile = $config_file; $outfile =~ s/\.xml//i; $outfile =~ s/^.*\/([^\/]+)/$1/i; # basename -$outfile .= "_${yy}-${mm}-${dd}_${hh}:${mm}:${ss}_$$"; +$outfile .= sprintf("_%04d-%02d-%02d_%02d:%02d:%02d_%d",$yy,$mm,$dd,$hh,$mm,$ss,$$); my $rfc = new SAP::Rfc( ASHOST => $config->{sap}->{ashost}, @@ -98,8 +98,8 @@ close(OUT); # cludge filename to nark.0004 - rename "$outdir/$outfile", "$outdir/nark.0004"; - $it->FILENAME("nark.0004"); + #rename "$outdir/$outfile", "$outdir/nark.0004"; + #$it->FILENAME("nark.0004"); # call SAP R/3 $rfc->callrfc( $it );