cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with SAP GUI HTML

martin_svik2
Participant
0 Kudos

hi,

i have a problem with SAP GUI HTML:

i have a z-report with a dynpro where i use dropdown-fields. i am filling dropdown list with FM VRM_SET_VALUES.

when opening the dropdown with "normal" windows sap gui it looks like this. Key values on the left side, description on the right side (splitted by "|")

when opening the dropdown with sap gui html (sap_corbu style) it looks awful like this: depending on the lenght of the key values, the description is concatenated just after the key value. this is looking awful !

does anybody have an idea why this is displayed this way ? is it a "bug" in sap gui html ? can i avoid it ?

br Martin

Accepted Solutions (1)

Accepted Solutions (1)

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

Is the first "column" in the dropdown list the "key" value?

If yes, then there is a specific parameter to be set in the GUI Configuration of the WEBGUI service: ~webgui_combobox_with_keys = 1.

Please visit the ITS community for SAPGUI for HTML questions.

Thank you.

Kind regards,

Cris

martin_svik2
Participant
0 Kudos

hi cris,

i know this parameter and i have already set it in sicf parameters to 1. so yes, it is the key.

but this problem has nothing to do with it. i need the key AND the value in the dropdown and i have it there.

it is only a problem of displaying it in a proper way.

br Martin

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,


Try not using VRM_SET_VALUES to present the key as part of the dropdown. Then use the parameter and check the results in WEBGUI.

Kind regards,

Cris

martin_svik2
Participant
0 Kudos

hi cris,

sorry, but what else i should use ? i am using VRM_SET_VALUES for almost 20 years now

and it is NOT a problem in sap gui windows, so why it is a problem in sap gui html ?!?

br Martin

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

I would say that this is the first time you are trying to use it within WEBGUI.

The FM itself is not released, so probably was never tested for WEBGUI use.

I would suggest looking for an alternative to build your dropdown, without setting a key value. The WEBGUI parameter is available for this reason: show the key when needed.

Regards,

Cris

martin_svik2
Participant
0 Kudos

Hi Cris,

i know no other way to fill a dropdown ! do you know one ?

The problem is: this is an existing, complex Z-report with about 10 different drop downs. it is used in sap gui windows for about 5 users until now.

but now we have "to go out" to nwbc with sap gui html to about 2000 users !

and the requirment is "same dropdown as in sap gui windows" so i need key AND value in the dropdown there

so i think this is kind of rendering problem inside sap gui html. I am afraid that even when filling the dropdown in another way i will have this problem.

br Martin

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

Maybe you can evaluate sample report DEMO_DROPDOWN_LIST_BOX ?

You know that you can enable the dropdown keys using the SAPGUI for Windows configuration. So, you can use GUI configurations (Windows and/or HTML) to display the keys.

a) Setting the Key visualization in SAPGUI for Windows:

b) Using DEMO_DROPDOWN_LIST_BOX via SAPGUI for Windows:

c) Using DEMO_DROPDOWN_LIST_BOX via SAPGUI for HTML:

Regards,

Cris



martin_svik2
Participant
0 Kudos

Hi Chris,

of course it looks okay with the sample you gave: all 3 Airlines have a 2 char key (AC, AF, LH) !

As soon as the  keys have different lenght the output in sap gui html looks awful ! Look to my screenshots in initial posting. E.g. the key "LKW" has 3 characters, while the key "KOMPRESSOR" has 10 characters.

the problem is the proportional/non proportional font difference between sap gui windows and html i think.

br Martin

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

Even using a different key length (I used a z-test report):

SAPGUI for Windows:

SAPGUI for HTML:

Regards,

Cris

martin_svik2
Participant
0 Kudos

hey chris,

this is strange now, why does it work @your system ?!?

i have copied the coding of the  DEMO_DROPDOWN_LIST_BOX to my z-report and changed the key so that text of airline is key.


It still looks awful in sap gui html, see screenshots below:


so now the big question: what have you done other then me ?!? which theme you are using. my theme is sap_corbu !


br Martin

SAP gui windows:

SAP gui html:

martin_svik2
Participant
0 Kudos

p.s. what also looks strange on my system is the space between the entries in sap gui html ? on your screenshot i can't see this gaps. they are also looking strange.

Cris, can you do me a favour ? can you give me version and supp.package of your SAP_BASIS component ?

br Martin

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

Check this code:

"...

REPORT ZLIST.

TYPE-POOLS: VRM. " Use type group VRM for list

DATA: IT_LIST     TYPE VRM_VALUES.
DATA: WA_LIST    TYPE VRM_VALUE.
...

   WA_LIST-KEY = 'GREEN'.
   WA_LIST-TEXT = 'Green'.
   APPEND WA_LIST TO IT_LIST.
   WA_LIST-KEY = 'BL'.
   WA_LIST-TEXT = 'Blue'.
   APPEND WA_LIST TO IT_LIST.
   WA_LIST-KEY = 'LARANJA'.
   WA_LIST-TEXT = 'Orange'.
...

CALL FUNCTION 'VRM_SET_VALUES'
     EXPORTING
       ID              = 'COLORS'
       VALUES          = IT_LIST
     EXCEPTIONS
       ID_ILLEGAL_NAME = 1
       OTHERS          = 2.
..."

Is your code similar?

I have the impression that you are use only "TEXT" to concatenate the Key and the actual Value, adding the resulting string to the dropdown.

Regards,

Cris

martin_svik2
Participant
0 Kudos

Hi Cris,

my coding looks exactly like yours ! i am using not only "TEXT", also the "KEY"-field. and i played around with it in 100ways, result is always the same

br Martin

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

I have a SAPKB74010 system with kernel 7.42 pl 424.

Regards,

Cris

PS: See my previous reply with ABAP coding.

martin_svik2
Participant
0 Kudos

Hi Cris,

i already have replied to your abap coding

well, we have SAPKB74007 with kernel 741 pl 300 -> so my system is "older" then yours !

Slowly i begin to believe that this is really a bug -> i have created OSS message to SAP -> or maybe YOU have some other hints ?

br Martin

martin_svik2
Participant
0 Kudos

and just to be 100% sure: i have copied your code now, see result in screenshot, it still looks awful

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

Kernel 7.41 is no longer supported.

Kernel 7.42 or 7.45 are two good options.

I suggest going to kernel 7.42 pl 401 (stack kernel) or higher.

Corrections for ITS/WEBGUI issues are, usually, made in the kernel.

Cheers,

Cris

Message was edited by: Cristiano Hansen

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

As I am a Product Support engineer at SAP, I took over your incident.

Kind regards,

Cris

cris_hansen
Advisor
Advisor
0 Kudos

Hi Martin,

Please read SAP note 2162607: Columns of a dropdown listbox are not properly aligned

The correction is available only in kernel 7.22, 7.42 and 7.45 (for your 7.40 release means that you can have the fix with kernel 7.42 or 7.45).

Kind regards,

Cris

martin_svik2
Participant
0 Kudos

Hi Cris,


so we have to fix that with kernel patch. i have to talk with basis guys here.

Thank you very much for your help !

br Martin

Answers (0)