33 |
my $outfile = $config_file; |
my $outfile = $config_file; |
34 |
$outfile =~ s/\.xml//i; |
$outfile =~ s/\.xml//i; |
35 |
$outfile =~ s/^.*\/([^\/]+)/$1/i; # basename |
$outfile =~ s/^.*\/([^\/]+)/$1/i; # basename |
36 |
$outfile .= "_${yy}-${mm}-${dd}_${hh}:${mm}:${ss}_$$"; |
$outfile .= sprintf("_%04d-%02d-%02d_%02d:%02d:%02d_%d",$yy,$mm,$dd,$hh,$mm,$ss,$$); |
37 |
|
|
38 |
my $rfc = new SAP::Rfc( |
my $rfc = new SAP::Rfc( |
39 |
ASHOST => $config->{sap}->{ashost}, |
ASHOST => $config->{sap}->{ashost}, |
98 |
close(OUT); |
close(OUT); |
99 |
|
|
100 |
# cludge filename to nark.0004 |
# cludge filename to nark.0004 |
101 |
rename "$outdir/$outfile", "$outdir/nark.0004"; |
#rename "$outdir/$outfile", "$outdir/nark.0004"; |
102 |
$it->FILENAME("nark.0004"); |
#$it->FILENAME("nark.0004"); |
103 |
|
|
104 |
# call SAP R/3 |
# call SAP R/3 |
105 |
$rfc->callrfc( $it ); |
$rfc->callrfc( $it ); |