09-17-2008 7:22 AM
Hi,
I need to popup a dialog box,in the box there is a parameter requried to input by user.and i will use the value of the parameter in my program.
is there standard function to do this ,
i check some popup functions ,they are almost use to confirm or warning,but no input.
Thank you
09-17-2008 7:26 AM
Use Table Control For The User Input,
Suppose U using ALV Then Provide Option Of
input = 1 in field Catelog,
Or u can Use this Function Module
REUSE_ALV_POPUP_TO_SELECT
Regards,
Alpesh
09-17-2008 7:26 AM
Use Table Control For The User Input,
Suppose U using ALV Then Provide Option Of
input = 1 in field Catelog,
Or u can Use this Function Module
REUSE_ALV_POPUP_TO_SELECT
Regards,
Alpesh
09-17-2008 7:29 AM
Hi,
I think there is no standard function module for popup window with one input parameter.
So you have to desing a screen like popup window with one input field and one push button. When you entered the value and press the push button, you should fetch the value.
Regards,
Harish
09-17-2008 7:33 AM
hii
try using POPUP_TO_CONFIRM_WITH_VALUE
or you can use
CALL SELECTION-SCREEN scr STARTING AT x1 y1
statement.
regards
twinkal
09-17-2008 7:34 AM
Hi,
You can use FM REUSE_ALV_POPUP_TO_SELECT.
Here is an example.
IF wa_price-matnr IS NOT INITIAL.
SELECT * INTO TABLE itab_popup FROM ZPRO_PRICE WHERE matnr =
itab-matnr.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'REQD. DATA FROM ZPRO_PRICE'
i_selection = 'X'
i_tabname = 'ITAB_POPUP'
i_structure_name = 'ZPRO_PRICE'
IMPORTING
es_selfield = popup_selfield
TABLES
t_outtab = itab_popup
EXCEPTIONS
program_error = 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.
IF popup_selfield IS NOT INITIAL.
READ TABLE itab_popup INDEX popup_selfield-tabindex.
itab-netpr = itab_popup-netpr.
itab-waers = itab_popup-waers.
itab-meins = itab_popup-meINH.
SELECT SINGLE maktx FROM makt INTO itab-maktx WHERE matnr =
itab-matnr
AND spras = sy-langu.
itab-netwr = itab-netpr * itab-meins.
itab-waers1 = ZPRO_EKKO-waers.
Regards,
Amit.
09-17-2008 7:35 AM
Hi,
Try POPUP_TO_GET_VALUE as below;
CALL FUNCTION 'POPUP_TO_GET_VALUE'
EXPORTING
fieldname = 'WERKS'
tabname = 'T001W'
titel = 'Input Plant'
valuein =
IMPORTING
* ANSWER =
VALUEOUT = lv_getvalue.
You will get the value entered by the user in the lv_getvalue field.
Regards
Karthik D
09-17-2008 7:42 AM
Hi,
You can also use POPUP_TO_GET_ONE_VALUE if u want to get a field which is not in database.
CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'
EXPORTING
textline1 = 'Enter Your Name'
* TEXTLINE2 = ' '
* TEXTLINE3 = ' '
titel = 'Name'
valuelength = 20
IMPORTING
* ANSWER =
VALUE1 = lv_name.
Here all inputs will be returned in character format.
Revert back if you have doubts.
Regards
Karthik D
09-17-2008 7:42 AM
sry u can use the above FM
Edited by: jean liker on Sep 17, 2008 8:48 AM
09-17-2008 7:44 AM
There are a lot of FM which enable you to take one or more input through pop up
wa_tab-tabname = 'EQUI'.
wa_tab-fieldname = 'GERNR'.
APPEND wa_tab.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
popup_title = 'Please Enter Meter No.'
start_column = '28'
start_row = '10'
IMPORTING
returncode = r_code
TABLES
fields = wa_tab
EXCEPTIONS
error_in_fields = 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.
If you want to take 2 input just append the field and referance table into the internal table wa_tab.
Other FMs to achive the same are
POPUP_GET_VALUES_USER_CHECKED
POPUP_GET_VALUES_DB_CHECKED
POPUP_TO_GET_ONE_VALUE
Hope this helps...
Bikas
09-17-2008 7:50 AM
Hi,
We can use 'POPUP_TO_GET_VALUE' function module.
example :
FORM get_file_name.
CALL FUNCTION 'POPUP_TO_GET_VALUE'
EXPORTING
fieldname = 'FILENAME'
tabname = 'DXFILE'
titel = 'Enter file name'
valuein = file_name
IMPORTING
answer = return
valueout = file_name.
EXCEPTIONS
FIELDNAME_NOT_FOUND = 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.
ENDFORM. " get_file_name
thanx.
09-17-2008 8:03 AM
Hi,
system say the fm is out of date.
and i try it,because the parameter is Date type, so i want to like it to continue search help.