cancel
Showing results for 
Search instead for 
Did you mean: 

User-specific problem with ALV grid control

Former Member
0 Kudos

Hi everyone,

I have a strange problem with an ALV grid control I have created to display a list of entities selected from a database. It is working fine for almost everybody except one user - the grid shows no entries for him though they are obviously selected from the db (when he clicks on define filter rules, the entries are shown in the F4 entry help).

It is nor an authorization problem but rather seems to be specific to that system. It's working fine in any other system for this user.

Has anyone ever experienced this or can give me a hint on where to find a possible solution? It must be something specific to the user in that system but I can't imagine anything except the authorizations (which are fine).

Best regards,

David

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

HI,

there might be a default variant which is user specific was set to alv layout. that is the reason it is not showing any thing for that user. if you remove that variant layout, you can see the data in alv.

regards

vijay

Former Member
0 Kudos

Thanks Vijay, that explains a lot. Problem is that the user has defined a layout for another grid control (which should have nothing to do with the current one) and it is taken as default.

Obviously the grid doesn't distinguish between variants for different grids.

Do I have to alter the structure of type DISVARIANT I pass to set_table_for_first_display?

Up to now, I do it like in the example BCALV_GRID_09 (for both grids):

* 'gs_layout' must at least contain the report-id to allow
* saving a layout.
  g_repid = sy-repid.
* § 2.At least field REPORT of this structure has to be filled!
  gs_layout-report = g_repid.

Shouldn't the repid do the differentiation?

gs_layout is of type DISVARIANT and has the following structure:

REPORT	REPID
HANDLE	SLIS_HANDL
LOG_GROUP	SLIS_LOGGR
USERNAME	SLIS_USER
VARIANT	SLIS_VARI
TEXT	SLIS_VARBZ
DEPENDVARS	SLIS_DEPVS

former_member188685
Active Contributor
0 Kudos

Hi,

if you want to know about your layout variants

go to table LTDX , give your <b>Report name</b> and see any variants are present for that Report.

and there you can see the variants for your alv layout.

regards

vijay

Former Member
0 Kudos

I checked the coding again and found out that both grids are defined in (different) form includes - therefore sy-repid always contains the name of the development class. I have to change this and it should be working.

Thanks again for the help.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi David,

Hope the person has logged on a different client..

i think that shud be the problemm.. Not with ALV..

regards

satesh