2005 Oct 24 7:29 AM
Hi,
I need popup FM name to get input from the user...
can any body help me on this..
rayudu
2005 Oct 24 7:33 AM
Hi,
Try using fm POPUP_GET_VALUES
or POPUP_TO_GET_ONE_VALUE..
In fact try searching for fms POPUPGET..
Hope this helps..
For example,
DATA: l_rcode,
t_fields LIKE sval OCCURS 0 WITH HEADER LINE.
t_fields-tabname = 'VBAK'.
t_fields-fieldname = 'VBELN'.
APPEND t_fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
popup_title = 'Test'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE = l_rcode
tables
fields = t_fields[]
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.
OR
DATA: l_answer,
l_value(30).
CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'
EXPORTING
textline1 = 'Line1'
TEXTLINE2 = 'Line2'
TEXTLINE3 = 'Line3'
titel = 'Test'
valuelength = 30
IMPORTING
ANSWER = l_answer
VALUE1 = l_value
EXCEPTIONS
TITEL_TOO_LONG = 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.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
Message was edited by: Srikanth Pinnamaneni
2005 Oct 24 7:33 AM
Hi,
Try using fm POPUP_GET_VALUES
or POPUP_TO_GET_ONE_VALUE..
In fact try searching for fms POPUPGET..
Hope this helps..
For example,
DATA: l_rcode,
t_fields LIKE sval OCCURS 0 WITH HEADER LINE.
t_fields-tabname = 'VBAK'.
t_fields-fieldname = 'VBELN'.
APPEND t_fields.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
popup_title = 'Test'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE = l_rcode
tables
fields = t_fields[]
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.
OR
DATA: l_answer,
l_value(30).
CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'
EXPORTING
textline1 = 'Line1'
TEXTLINE2 = 'Line2'
TEXTLINE3 = 'Line3'
titel = 'Test'
valuelength = 30
IMPORTING
ANSWER = l_answer
VALUE1 = l_value
EXCEPTIONS
TITEL_TOO_LONG = 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.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
Message was edited by: Srikanth Pinnamaneni
2005 Oct 24 7:34 AM
Try this - POPUP_FOR_INFORMATION
There are quite a few function modules. You should be able to search with POP UP keyword and then the choose the right one for you.
Regards,
Ravi
Ntoe : Reward points if this helps you.
2005 Oct 24 7:35 AM
2005 Oct 24 7:37 AM
Hi
try: in se37, try the keyword:
popup_to_confirm and you will get lots of function modules that can cater to your needs.
e.g: there is one FM that gives 3 buttons in a popup:
POPUP_WITH_3_BUTTONS_TO_CHOOSE
Cheers
Ashish
2005 Oct 24 7:43 AM
Hi
'popup_to_confirm' allows for 2 push buttons with custom text
Here is an example code for 'popup_with_3_buttons......':
CALL FUNCTION 'POPUP_WITH_3_BUTTONS_TO_CHOOSE'
EXPORTING
DIAGNOSETEXT1 = 'CHOOSE'
DIAGNOSETEXT2 = 'OR'
TEXTLINE1 = 'PRESS CANCEL'
TEXT_OPTION1 = '1: STUDENT TABLE'
TEXT_OPTION2 = '2: COURSE TABLE'
TEXT_OPTION3 = '3: TEACHER TABLE'
TITEL = 'to maintain the database'
IMPORTING
ANSWER = ans.
if sy-subrc <> 0.
MESSAGE E012.
endif.
if ans = '1'.
CALL TRANSACTION 'ZAJ_STU1'.
Elseif ans = '2'.
CALL TRANSACTION 'ZAJ_STU2'.
Elseif ans = '3'.
CALL TRANSACTION 'ZAJ_STU3'.
endif.