02-14-2007 2:07 PM
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.
02-15-2007 6:29 AM
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^
02-14-2007 2:13 PM
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
02-15-2007 6:03 AM
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.
02-15-2007 6:11 AM
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.
02-15-2007 6:16 AM
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
02-15-2007 6:23 AM
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
02-15-2007 6:29 AM
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^