Application Development 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: 

Filter Column of ALV -> F4 shows only 3 characters

matthias_kasig2
Participant
0 Kudos

Hi SDN,

we are on WAS 620, R3 4.7

the problem:

on a report, which uses FM REUSE_ALV_GRID_DISPLAY

1.

I mark a column (which carries usernames) and then

2.

hit the filter icon of ALV

3.

a select option pop-up appears.

4.

on the left field I hit the F4 help arrow

5.

a hitlist in a new small window comes up. But in the table here, only the first 3 characters of the usernames are being displayed

The weird thing about it: This happens only in our production system, not in the technically identical development system - here I get to seeth ecomplete usernames in the F4 help.

The ZREPORT I wrote is the same version in both systems. Also the FM DYNP_VALUES_READ, which is called for the F4 from the ALV is the same version in both systems.

I also checked with differnet users in both systems - same effect...

has somebody a clue about this? Why is that?

thanx in advance,

matthias kasig

10 REPLIES 10

Former Member
0 Kudos

Hi Matthias,

can you try this and telle if you have the problem too

or can you show the FM-Call of grid?

TABLES: USR01.

DATA: GT_USR01 TYPE TABLE OF USR01.

*

SELECT * FROM USR01 INTO TABLE GT_USR01.

*

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_STRUCTURE_NAME = 'USR01'

TABLES

T_OUTTAB = GT_USR01.

*

Regards, Dieter

0 Kudos

Hi Dieter,

thanx for your fast reply. I tried your code in my dev. system

now in the F4 help I get the first 5 characters...

Is that, what you expected?

matthias

0 Kudos

and here goes the FM call of my grid:

FORM reuse_alv_grid_display TABLES outtab.

  wg_layout-zebra             = 'X'.
  wg_layout-colwidth_optimize = 'X'.

  IF outtab[] = ig_liste[]. "Benutzer anlegen
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_pf_status_set = 'STATUS_USER'
        i_callback_program       = 'ZPMIM_ADMIN_1'
        i_callback_user_command  = 'UC_BENUTZER'
        i_structure_name         = 'ZPMIM_USR01'
        is_layout                = wg_layout
        it_fieldcat              = ig_fcat[]
      TABLES
        t_outtab                 = ig_liste.

matthias

0 Kudos

Hi,

i get the whole User-Name BNAME in the F4-List.

if you SU01 and press F4, do you have also problems?

Try to show your code.

Regards, Dieter

0 Kudos

in SU01 I get another selection screen when using the F4 help.

Code is in my reply above, but I don't use the usr01 in the ALV but a structure of this type:

Table ZPMIM_USR01:


MANDT	MANDT	CLNT	3	0	Mandant
BNAME	XUBNAME	CHAR	12	0	Benutzername im Benutzerstamm
ANREDE	ZANREDE	CHAR	4	0	Anrede mit Domäne Wertebereich Herr Frau
NAME_LAST	AD_NAMELAS	CHAR	40	0	Nachname
NAME_FIRST	AD_NAMEFIR	CHAR	40	0	Vorname
TEL_NUMBER	AD_TLNMBR1	CHAR	30	0	Erste Telefon-Nr.: Vorwahl + Anschluß
FAX_NUMBER	FAXNR	CHAR	25	0	Faxnummer
SMTP_ADDR	AD_SMTPADR	CHAR	241	0	E-Mail-Adresse
LOEKZ	ZLOEKZ	CHAR	1	0	Löschkennzeichen
ANMKZ	ZANMKZ	CHAR	1	0	ANMK

again the ALV call:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_pf_status_set = 'STATUS_USER'
        i_callback_program       = 'ZPMIM_ADMIN_1'
        i_callback_user_command  = 'UC_BENUTZER'
        i_structure_name         = 'ZPMIM_USR01'
        is_layout                = wg_layout
        it_fieldcat              = ig_fcat[]
      TABLES
        t_outtab                 = ig_liste.

matthias

0 Kudos

Dieter, I wanted to reward points for your help, but there is something wrong in the forum. The radio buttons, which are usually on the left side for rewarding points are missing - I guess this is a current mess in the forum...

sory for that,

matthias

0 Kudos

Hi Matthia,

I think you use

i_structure_name = 'ZPMIM_USR01'

and

it_fieldcat = ig_fcat[]

and

t_outtab = ig_liste.

do they all have the same structure? Do you have set client never display in layout?

Regards, Dieter

i think reward poits are stopped ot canceled.

look here:

Message was edited by:

Dieter Gröhn

0 Kudos

Hi Dieter,

I also use the fieldcatalog FM like this:

  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = 'ZPMIM_ADMIN_1'
      i_internal_tabname     = l_outtab
      i_client_never_display = 'X'
      i_inclname             = 'ZPMIM_ADMIN_1'
    CHANGING
      ct_fieldcat            = ig_fcat
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

so here I have the i_client_never_display = 'X'.

you write: "I think you use

i_structure_name = 'ZPMIM_USR01'

and

it_fieldcat = ig_fcat[]

and

t_outtab = ig_liste."

ig_liste and ZPMIM_USR01 are of the same structure and ig_fcat is the fieldcatalog type as required in: TYPE slis_t_fieldcat_alv...

I still wonder, why your first mini-test report returns only 5 chars in the F4 help, even in my dev.system, which works for my zreport fine and shows all chars of the username...

conderning the point system... read your links! this is bollocks! if there are plans to investigate the rewarding system, why is it not announced in the forums area - and like some guys state, the amount of questions being answered is becoming less and less! I mean - many points also indicate, that somebody is doing a good job on the SDN - and the amount of points might be also a status symbol for those with tons of points - but yeah, why not? For me SDN was always a big help, much better than OSS! So why cut it off? or is this in fact the idea behind it?

matthias kasig

0 Kudos

Hi Matthias,

i remember that anyone had the same problem as you and post it in SDN.

I have tried find this, but without result.

I think it's a problem betwenn giving structure and fieldcat in the FM.

But i'm not quite sure if it helps.

Regards, Dieter

0 Kudos

Hi Dieter,

thanx for you effort. I noticed, the points system is back online again

I also had my contribution in the coffe corner in the points-thread! Anyway, now I donated a 6 to you. Seems you are one of the nice SDN users, who also help, even without points!

Still my problem persists. Concerning your last message:

<i>I think it's a problem betwenn giving structure and fieldcat in the FM.

But i'm not quite sure if it helps.

</i>

I doubt, it helps - otherwise, how can I have different behaviour with the same code in different systems, which are technically the same? As I mentioned before: I checked the versions of the programs involved, esp, the FM DYNP_VALUES_READ, which is called for the F4 matchcode, my zprogram, and the program SAPLSLVC_FULLSCREEN, which is used somehow (the name of it appears in my taskbar SAP GUI in the lower right corner, because I copied the GUI Status of it for my z-program.

All programs are the same in my systems ...

regards, matthias