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

optimoze the code

Former Member
0 Likes
782

hello all,

can i optimize the code.

SELECT * FROM zsbhdr itab

WHERE vdatu GE start_date

AND vdatu LE end_date .

APPEND itab .

CLEAR itab .

ENDSELECT .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
767

Try this,

SELECT * FROM zsbhdr

INTO CORRESPONDING FIELDS OF TABLE ITAB[]

WHERE vdatu GE start_date

AND vdatu LE end_date .

5 REPLIES 5
Read only

Former Member
0 Likes
767

SELECT * FROM zsbhdr into itab

WHERE vdatu GE start_date

AND vdatu LE end_date .

Read only

Former Member
0 Likes
767

Hi,


SELECT * FROM zsbhdr
into  table itab

WHERE vdatu GE start_date

AND vdatu LE end_date .

Read only

Former Member
0 Likes
768

Try this,

SELECT * FROM zsbhdr

INTO CORRESPONDING FIELDS OF TABLE ITAB[]

WHERE vdatu GE start_date

AND vdatu LE end_date .

Read only

Former Member
0 Likes
767

SELECT * FROM zsbhdr itab INTO TABLE itab[]

WHERE vdatu GE start_date

AND vdatu LE end_date .

Reward if useful

thanks Arjun

Read only

Former Member
0 Likes
767

SELECT * FROM zsbhdr

into table itab

WHERE vdatu >= start_date

AND vdatu <= end_date .

Give as many fields as possible in where condition .