on 09-08-2016 11:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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:
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
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
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.