Skip to Content
0
Former Member
Dec 08, 2004 at 09:24 AM

Open Archive Object in BSP.

71 Views

Dears,

I want to open an archive object in my BSP application.

But I have a runtime error when I call function 'ARCHIVOBJECT_DISPLAY' in BSP event handler.

After I trace the program got a error when excuting CL_IMC_MODE=>DIALOG_CHECK.

METHOD DIALOG_CHECK.

DATA: GUI_FLAG TYPE SY-BATCH.

  • IMC NUR in Online-Modus ? (kein Batch und dunkle Batch-Input-Betrieb)

IF GUI_IS_ON IS INITIAL.

CALL FUNCTION 'RFC_IS_GUI_ON'

EXPORTING

LOGIN_CHECK = ' '

IMPORTING

ON = GUI_FLAG.

IF GUI_FLAG <> 'Y'.

IF RABAX IS INITIAL.

CLEAR EXISTS.

ELSE.

<b> MESSAGE X005(IMC).</b>

ENDIF.

ELSE.

GUI_IS_ON = 'Y'.

EXISTS = 'X'.

ENDIF.

ELSE.

EXISTS = 'X'.

ENDIF.

ENDMETHOD.

The MESSAGE is 'Cannot be displayed on screen'.

Any idea?

Please help, many thanks...