16.10.11

SAPNote 28487 - Dynamic text in GUI status with icon: quickinfo

Symptom:

If you place an icon in the dynamic text for a pushbutton, you get the program code of the icon, possibly including the text, as quickinfo.

Cause and prerequisites

At runtime the dynamic text is supplied with the contents of a variable from the ABAP/4 program. This value must be transferred both into the short text and the long text of the respective function code.
An icon is a pseudo text and it is possibly stored with the respective text in the short text. The quickinfo for a statically defined icon is stored in the long text. In this respect, the "quickinfo" for icons that are dynamically generated by SAPGUI is also supplied by the long text.

Solution
Up to maintenance level 3.0F you can only enter dynamically a character string for different texts which belong to a function code.
As of maintenance level 3.1G, variables which contain the dynamic text should have structure SMP_DYNTXT. You then have the option to specify different character strings for the text in the menu or on the pushbutton, for an icon text (if available) as well as for the quickinfo.

No comments:

Post a Comment