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: 

problem with pop-up window

Former Member
0 Kudos

Hi all,

i caught up with one issue while using Function-Module POPUP_WITH_TABLE,with this Func-module im able to display all the entries in the pop-up,but if i press the continue button with out selecting any item in the window ,that window does not getting closed.What should i have to do for closing that window even if i press the continue button without selecting any entry of pop-up window.

Thanks in advance,

Regards,

Asmitha.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

i dont think there is any continue button for the pou up window that is displayin,there is only two buttons one is ok sysmbol and one is cancel symbol.

if you select the ok symbol by selecting one line than it ll take you to output ,otherwise you can cancel that window by selection the cancel button.

If you r not selecting any line in this than what is point of selecting ok button ,you can select the cancel button to comeout of that popup.

Thanks

mrutyun^

6 REPLIES 6

Former Member
0 Kudos

Hi,

I think you have writen in wrong event, when you press the continue button it should close the popup .. see your once again, still you have problem then paste your code here

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_date.

  CHECK NOT lwa_date[] IS INITIAL.
  CALL FUNCTION 'POPUP_WITH_TABLE'
    EXPORTING
      endpos_col   = 5
      endpos_row   = 10
      startpos_col = 2
      startpos_row = 1
      titletext    = 'DATE'
    IMPORTING
      choice       = lwa_date
    TABLES
      valuetab     = lwa_date
    EXCEPTIONS
      break_off    = 1
      OTHERS       = 2.
  p_date = lwa_date-lv_d.

Regards

Sudheer

0 Kudos

Hi,

im not getting u my code is like this,whenever we press the release button the pop-window has to be displayed.

when 'release'.

CALL FUNCTION 'POPUP_WITH_TABLE'

EXPORTING

endpos_col = 5

endpos_row = 10

startpos_col = 2

startpos_row = 1

titletext = 'TEST'

TABLES

valuetab = itab

EXCEPTIONS

break_off = 1

OTHERS = 2.

0 Kudos

Hey I got ur problem, u havenot captured the value that is getting chosen.

CHOICE is the parameter that is holding the value.

Choice may have a value or Blank.

Former Member
0 Kudos

Hello,

Ideally the continue button is pressed only after selection of data.If you do not want to select any data,then use of the Cancel button is made which comes by default in the pop-up.

Regards,

Beejal

**reward if this helps

Former Member
0 Kudos

you cant get that fn ality in POPUP_WITH_TABLE here you have to cross the window and uncomment the exception part for that.

try this fm

data : choice like sy-tabix.

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY_OK'

EXPORTING

ENDPOS_COL = 30

ENDPOS_ROW = 30

STARTPOS_COL = 5

STARTPOS_ROW = 5

TITLETEXT = 'chose3'

IMPORTING

CHOISE = choice

TABLES

VALUETAB = itab

EXCEPTIONS

BREAK_OFF = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

regards

shiba dutta

Former Member
0 Kudos

hi

good

i dont think there is any continue button for the pou up window that is displayin,there is only two buttons one is ok sysmbol and one is cancel symbol.

if you select the ok symbol by selecting one line than it ll take you to output ,otherwise you can cancel that window by selection the cancel button.

If you r not selecting any line in this than what is point of selecting ok button ,you can select the cancel button to comeout of that popup.

Thanks

mrutyun^