Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with LDB

Former Member
0 Likes
1,176

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.

10 REPLIES 10
Read only

Former Member
0 Likes
1,132

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.

Read only

Former Member
0 Likes
1,132

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

Read only

0 Likes
1,132

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

Read only

0 Likes
1,132

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

Read only

0 Likes
1,132

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...

Read only

Former Member
0 Likes
1,132

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 .

Read only

Former Member
0 Likes
1,132

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.

Read only

0 Likes
1,132

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.

Read only

0 Likes
1,132

because..

classes are not accessible of internal tables with header line

Read only

Former Member
0 Likes
1,132

thanks all