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

ALV

Former Member
0 Likes
807

hei,

I have a select option for VBELN.

select-option: salesdoc for vbak-vbeln.

when I dont select any data(selection screen) and simply execute it......my ALV displays grid and also data in it. It works fine

but when I select the data in select option in selection screen...all i see is just the column headings.....no grid and no data......

my select stmt also has data retreival as....select........vbeln in salesdoc.

pl help.....is something wrong with fieldcat assignment? if its the case...its displaying all fine when no selection criteria is specified

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
789

Hi,

Go to VBAK table and check for the entries, pick any one VBELN and give it in your select-option.

Your issue will get resolved.

The problem may be that all the select statement may not be fetching records.

Reward points if useful.

Regards,

Atish

7 REPLIES 7
Read only

Former Member
0 Likes
790

Hi,

Go to VBAK table and check for the entries, pick any one VBELN and give it in your select-option.

Your issue will get resolved.

The problem may be that all the select statement may not be fetching records.

Reward points if useful.

Regards,

Atish

Read only

0 Likes
789

select-option: salesdoc for vbak-vbeln.

select vbeln erdat erzet ernam angdt bnddt audat

into CORRESPONDING FIELDS OF table hd_vbak

UP TO 15 ROWS

from vbak

where vbeln IN salesdoc.

this is my select stmt.

Read only

0 Likes
789

Hi,

Have you tried the things which I written in my ealier post.

Just give more entries, or a big range in your selct option and you will see the output.

Also you can write this code to check if the data is being fetched or not after the selct statement.

select vbeln erdat erzet ernam angdt bnddt audat

into CORRESPONDING FIELDS OF table hd_vbak

UP TO 15 ROWS

from vbak

where vbeln IN salesdoc.

<b>if sy-subrc NE 0.

message e000(su) with 'No Data in VBAK for given selection'.

endif.</b>

Reward points if useful.

Regards,

Atish

Read only

0 Likes
789

hei atish,

its not just abt displaying the data. i understand when u mentioned abt giving a greater range.i tried that. my problem here is......its not displaying the physical grid...at all...with all the rows and columns(if we forget the data for now....i guess fieldcat is not being read by the grid_display FM when i specify the selection criteria....

Read only

0 Likes
789

Hi,

If no data present in ITAB then it doesn't display any GRID in ALV. PLease check the data is present in database with ur selection screen and it populating the respective hd_vbak, it_vbak.....

Regards

SAB

Read only

0 Likes
789

hei

thanks syed and atish.....

i was not aware that it wouldn't display grid when there is no data.

i gave a greater greater range.....it works......

Read only

0 Likes
789

Hi Alchemi,

Then reward points and close the thread

Regards,

Atish