‎2008 Jul 28 12:50 PM
hi guru's
help me oout with that is wrong with the following code it gives me an error in extendeed syntax check.
and that too 25 messages.
i am using the LDB ADA and the code is as follows.
TABLES: anlav,
data begin of itab_anlav,
include STRUCTURE anlav.
end of itab_anlav.
select-options: ktansw type anlav-ktansw.
GET anlav FIELDS bukrs ktogr.
MOVE-CORRESPONDING anlav TO itab_anlav.
PERFORM zf_process_anlav USING anlav .
FORM zf_process_anlav USING anlav STRUCTURE anlav.
wa_asset-bukrs = anlav-bukrs.
.......
endform.
helpful replies will be rewarded.
‎2008 Jul 28 12:53 PM
B,
just ignore extended syntex check.because if you are expecting zero error from extended check than we must design our code up to SAP guidlines.
Amit.
‎2008 Jul 28 12:54 PM
hiii
dont your code give you a syntax error..when you press CTRL+F2..i think it should be like follows.
TABLES: anlav.
data begin of itab_anlav.
include STRUCTURE anlav.
data end of itab_anlav.
select-options: ktansw for anlav-ktansw.
regards
twinkal
‎2008 Jul 28 12:58 PM
can u please write a bit more...i am not able to get ur ans.
it still give me 25 mess in slin check
Edited by: babu on Jul 28, 2008 1:59 PM
‎2008 Jul 28 1:02 PM
hii
ya sure ..i found some syntax error in your program so i told you to check that as i copied your program in to my program ..i got some error..i tried to solve it like follows..check or just copy this code
TABLES: anlav.
data begin of itab_anlav.
include STRUCTURE anlav.
data end of itab_anlav.
select-options: ktansw for anlav-ktansw.
GET anlav FIELDS bukrs ktogr.
MOVE-CORRESPONDING anlav TO itab_anlav.
PERFORM zf_process_anlav USING anlav .
FORM zf_process_anlav USING anlav STRUCTURE anlav.
i hope this can help you to solve your problem.
regards
twinkal
‎2008 Jul 28 1:06 PM
thanks very much for the quick response,
but can u tell me leaving behind the syntax check ...when i go for slin check it says 25 time that the statement is obsolete at the line
tables: anlav.
can u tell me y or how to removce that...
‎2008 Jul 28 12:56 PM
hi check this..
TABLES: anlav.
data: begin of itab_anlav.
include STRUCTURE anlav.
data: end of itab_anlav.
GET anlav FIELDS bukrs ktogr.
MOVE-CORRESPONDING anlav TO itab_anlav.
PERFORM zf_process_anlav USING anlav .
FORM zf_process_anlav USING anlav STRUCTURE anlav.
endform .
‎2008 Jul 28 1:08 PM
TABLES: anlav.
data : begin of itab_anlav.
include STRUCTURE anlav.
data : end of itab_anlav.
data: wa_asset like anlav.
select-options: ktansw for anlav-ktansw.
GET anlav FIELDS bukrs ktogr.
MOVE-CORRESPONDING anlav TO itab_anlav.
PERFORM zf_process_anlav USING anlav .
FORM zf_process_anlav USING anlav STRUCTURE anlav.
wa_asset-bukrs = anlav-bukrs.
*.......
endform.
compare this code with ur code and clear the errors u got.
‎2008 Jul 28 1:12 PM
HI all,
this is the error i get in slin let me know how to remove that...
Program: progname Row: 35
The current ABAP command is obsolete and problematic, especially so in ABAP
Objects
Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
types (not "LIKE" or "STRUCTURE").
line 35:- tables:anlav.
‎2008 Jul 28 1:18 PM
because..
classes are not accessible of internal tables with header line
‎2008 Jul 28 1:26 PM