Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog Box in Dialog Program

Former Member
0 Kudos

Hi

I 'm going to create dialog program and I need to create another screen for dialog box and use this below code to pop up the dialog box. This dialog box is required for summary data .

CALL SCREEN 200 STARTING AT 1 1 ENDING AT 80 8.

After the dialog box show in the screen , I can't use close at right up corner of dialog box . I don' t know why . Please help me .

Regards

Wiboon

9 REPLIES 9

Former Member
0 Kudos

I think you need to handle the function code for cancel.

0 Kudos

Hi Srihari

I don't understand what you mean. It 's like the standard sap doesn't provide or I need to create button to cancle .

Regards

Wiboon

Former Member
0 Kudos

You need to set user_commands for screen 200.

0 Kudos

Hi grub089

It's only dialog box , I don't want application toolbar or something like that , I would like to use close button in standard (on the top right corner of dialog box) .

Regards

Wiboon

Former Member
0 Kudos

Hi Wiboon,

try it

Set Screen 0 before the "Call Screen"

SET SCREEN 0.

CALL SCREEN 200 STARTING AT 1 1 ENDING AT 80 8.

Regards

Allan Cristian

0 Kudos

Hi Allan

I did it but It 's not working.

Regards

Wiboon

0 Kudos

Hi Wiboon

set "Gui Status" to screen, if it's no work, try to use a "POPUP";

Regards

Allan Cristian

0 Kudos

Hi Wiboon,

look this example to call a popup.

REPORT ZEXIT .

DATA: POP(1) TYPE C.

CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'

EXPORTING

TITEL = 'Excluir'

TEXTLINE1 = 'Unsaved data will be lost.'

TEXTLINE2 = 'Do you want to log off?'

  • if you want to display the button Cancel set CANCEL_DISPLAY as 'X'

CANCEL_DISPLAY = ''

IMPORTING

ANSWER = POP.

IF POP = 'Y' OR POP = 'J'.

message i398(00) with 'YES'.

  • ...

ELSEIF POP = 'N'.

message i398(00) with 'NO'.

  • ...

ELSEIF POP = 'A'.

message i398(00) with 'CANCEL'.

  • ...

ENDIF.

0 Kudos

Hi Wiboon,

In the GUI Status for the Screen 200 add EXIT function. This should solve your issue.

Please reward if useful.

Regards,

Lijo Joseph