Hello, ich hätte ein problem, ich bin neu in Abap-programierung, und jetzt probiere ich sehr viel functionen aus. Unter dem Beilegen kann mann meiene Testprogram sehen.
Meine Frage: warum lautft es nicht?
Näher bestimmen lauft es aber nach F8 gibt mir die folgende Fehlertexte:
*Parameters: le type i default 20.
format color col_normal.
Select * from lfa1 into corresponding fields of user where lifnr in s_lifnr.
das zeigt nicht die ganze Zeie. Report Zcgpr_0002 line-size 95. Tables: LfA1, lfbk. data: sw_intens(1) type p. DATA: BEGIN OF USER OCCURS 100, lifnr like lfa1-lifnr, name1 like lfa1-name1, name2 like lfa1-name2, ort01 like lfa1-ort01, pstlz like lfa1-pstlz, erdat like lfa1-erdat. DATA: END OF USER. SELECT-Options: S_lifnr for lfa1-lifnr matchcode object kred memory id lif. *Parameters: le type i default 20. format color col_normal. Select * from lfa1 into corresponding fields of user where lifnr in s_lifnr. format intensified = sw_intens. sw_intens = 1 - sw_intens. write :/ user-lifnr, at (20) user-name1, at (20) user-Name2, at 60(13) user-ort01, at (5) user-pstlz, 81 user-erdat DD/MM/YYYY. uline. skip. endselect. CALL FUNCTION ’DOWNLOAD’ EXPORTING FILENAME = ’C:\tmp\SAPEXL1.XLS’ FILETYPE = ’WK1’ "ASC, WK1, DBF, DAT, bin MODE = ’ ’ "Mode ’ ’ = Rewrite Mode ’A’ = Appending TABLES DATA_TAB = USER.
das zeigt nicht die ganze Zeie.
das zeigt nicht die ganze Zeie.
Report Zcgpr_0002 line-size 95.
Tables: LfA1, lfbk.
data: sw_intens(1) type p.
DATA: BEGIN OF USER OCCURS 100,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
name2 like lfa1-name2,
ort01 like lfa1-ort01,
pstlz like lfa1-pstlz,
erdat like lfa1-erdat.
DATA: END OF USER.
SELECT-Options: S_lifnr for lfa1-lifnr
matchcode object kred
memory id lif.
*Parameters: le type i default 20.
format color col_normal.
Select * from lfa1 into corresponding fields of user where lifnr in s_lifnr.
format intensified = sw_intens.
sw_intens = 1 - sw_intens.
write :/ user-lifnr,
at (20) user-name1,
at (20) user-Name2,
at 60(13) user-ort01,
at (5) user-pstlz,
81 user-erdat DD/MM/YYYY.