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

select query with package size

Former Member
0 Likes
526

Hi ,

i am trying to use select qurey with package size , to limt the data fetching .

Can any one gives sqample code or idea select query using 'package size'.

Advance Thanks,

Regards

veera

4 REPLIES 4
Read only

Former Member
0 Likes
497

Hi,

Check this link for a sample program

http://www.sap-img.com/abap/package-size.htm

Thanks,

Naren

Read only

Former Member
0 Likes
497

SELECT vbeln erdat 
    FROM vbak 
    INTO TABLE li_vbak PACKAGE SIZE 50. 

    SELECT posnr matnr meins 
      FROM vbap 
      INTO TABLE li_vbap 
      FOR ALL ENTRIES IN li_vbak 
      WHERE vbeln = li_vbak-vbeln. 

Girish

Read only

0 Likes
497

Hi,

-


SELECT vbeln erdat

FROM vbak

INTO TABLE li_vbak PACKAGE SIZE 50.

SELECT posnr matnr meins

FROM vbap

INTO TABLE li_vbap

FOR ALL ENTRIES IN li_vbak

WHERE vbeln = li_vbak-vbeln.

-


Hi i want to select only from vbeln ,ie single selct query only using pakage size.200,blocks in data base ..How ?

Regards

veera

Read only

0 Likes
497

types: begin of ty_in,

vbeln type vbak-vbeln,

end of ty_in.

data it_in type table of ty_in with header line.

SELECT vbeln FROM vbak

INTO TABLE it_in PACKAGE SIZE 200.

SELECT posnr matnr meins

FROM vbap

apppending TABLE li_vbap

FOR ALL ENTRIES IN it_in

WHERE vbeln = it_in-vbeln.

endselect.