Skip to Content
0
Former Member
Oct 04, 2007 at 02:12 PM

ABAP for displaying message using performance assistant

686 Views

I want to display the long form of a custom message using the performance assistant.

The following code successfully displays the long form of the message, but in the old style (before the performance assistant).

CALL FUNCTION 'HELP_OBJECT_SHOW'

EXPORTING

DOKCLASS = 'NA'

DOKLANGU = SY-LANGU

DOKNAME = 'ZINTERFACES001'

  • DOKTITLE = ' '

CALLED_BY_PROGRAM = sy-cprog

CALLED_BY_DYNP = sy-dynnr

  • CALLED_FOR_TAB = ' '

  • CALLED_FOR_FIELD = ' '

  • CALLED_FOR_TAB_FLD_BTCH_INPUT = ' '

MSG_VAR_1 = 'ABC'

MSG_VAR_2 = ' '

MSG_VAR_3 = ' '

MSG_VAR_4 = ' '

  • CALLED_BY_CUAPROG = ' '

  • CALLED_BY_CUASTAT =

  • SHORT_TEXT = ' '

CLASSIC_SAPSCRIPT = 'X'

TABLES

LINKS = links

EXCEPTIONS

OBJECT_NOT_FOUND = 1

SAPSCRIPT_ERROR = 2

OTHERS = 3.

That is because we have CLASSIC_SAPSCRIPT = 'X' ("not in the performance assistant").

However when we have CLASSIC_SAPSCRIPT = ' ', then nothing is displayed.

Help please!

John