10-20-2008 7:42 AM
I have to transfer my work area to a certain path,
lets say ;
transfer wa_header to file.
in my print program it displays,
7 1000 Scheider Corporation KEL DE 10/06/2008
but in the dir.
00000000070000010000020810006Scheider Corporation E KELOWN DE,
what might cause this problem?
Edited by: Enrique Mancao on Oct 20, 2008 8:45 AM
10-20-2008 7:47 AM
Hello Enrique Mancao,
Check the value in the debugging while you are transfering the internal table data to Applicaion server directory for the value 71000.
You only character fields while transfering to Application directory.
other wise copy you r code so that we can have solution.
10-20-2008 7:53 AM
SELECT SINGLE f1~vbeln
f1~kunnr
f1~audat
f1~vdatu
f2~name1
f2~spras
f2~stras
f2~ort01
f2~pstlz
f2~land1
INTO wa_header
FROM vbak AS f1 INNER JOIN kna1 AS f2 ON f1kunnr EQ f2kunnr
WHERE f1~vbeln EQ p_saleno.
IF v_answer = 1.
OPEN DATASET c_path FOR output in TEXT MODE ENCODING DEFAULT.
condense wa_header.
transfer wa_header TO c_path.
CLOSE DATASET c_path.
MESSAGE s003 WITH c_path.
ENDIF.
10-20-2008 8:03 AM
the prob is that u r using the same data type contenet in ur internal table to transfer it to UNix .
Declare a internal table with char type for all fields and before passing it to unix directory move the contents of ur current internal table into this new internal table (with all char datatypes ) .
new internal table
data : begin of itab occurs 0,
f1(10) type c.
...
and after passing this to char int table u can condense and also mark a separator if required.
Vijay.