‎2005 Dec 06 2:26 PM
hi all,
i want to have the input dialog box when i click on the pushbuttons. i am doing module pool programming. please help if you have any such FM.
Thanx in advance
‎2005 Dec 06 2:29 PM
‎2005 Dec 06 2:29 PM
‎2005 Dec 06 2:29 PM
If you are saying that you want to make a input field appear only when the user presses a pushbutton then....
Create the input field via screen painter, set the attribute for "invisible".
When the user presses the fcode, you should set a flag that you can use in the PBO. In the PBO of the screen,
LOOP AT SCREEN.
IF screen-name = 'YOUR_INPUT_FIELD_NAME'.
screen-invisible = '0'.
screen-active = '1'.
modify screen.
endif.
endloop.Regards,
Rich Heilman
‎2005 Dec 06 2:31 PM
If you want to throw a dialog box with values in it, try this. You will just fire this function module in your PAI.
data: fields type table of SVAL with header line.
fields-TABNAME = 'MARA'.
fields-FIELDNAME = 'MATNR'.
append fields.
fields-TABNAME = 'MARA'.
fields-FIELDNAME = 'MATKL'.
append fields.
call function 'POPUP_GET_VALUES'
exporting
* NO_VALUE_CHECK = ' '
popup_title = 'Test'
* START_COLUMN = '5'
* START_ROW = '5'
* IMPORTING
* RETURNCODE =
tables
fields = 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.
Regards,
Rich Heilman
‎2005 Dec 06 2:29 PM
‎2005 Dec 06 2:32 PM
‎2005 Dec 06 2:35 PM
use :
data: fields type table of sval with header line.
fields-tabname = 'VBAK'.
fields-fieldname = 'VBELN'.
append fields.
fields-tabname = 'VBAP'.
fields-fieldname = 'POSNR'.
append fields.
call function 'POPUP_GET_VALUES'
exporting
NO_VALUE_CHECK = ' '
popup_title = 'Popup'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE =
tables
fields = 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.
this will give you a pop .
‎2005 Dec 06 2:38 PM
Hi
You can use one of these fm:
POPUP_GET_VALUES:
Dialog box for the display and request of values, without check
POPUP_GET_VALUES_DB_CHECKED:
Dialog box for requesting values, check against the DB table/view
POPUP_GET_VALUES_SET_MAX_FIELD:
Dialog box for setting the maximum no. of fields per dialog box
POPUP_GET_VALUES_USER_BUTTONS:
Dialog box for requesting values and offering user pushbuttons
POPUP_GET_VALUES_USER_CHECKED:
Dialog box for requesting values, check by user exit
POPUP_GET_VALUES_USER_HELP:
Dialog box for requesting values, call of user exits and help
Max
‎2005 Dec 06 3:34 PM
Thanks for one and all for ur co-operation and giving ur suggestions in different manners.
surely reward the points.
‎2009 Jan 02 4:41 AM
hi ,
in the event
At selection on value request for the field ...
initially use POPUP_TO_GET_ONE_VALUE FM to get the table name ..
select the fields required from given table name ...
append the fields to the internal table which u using in F4 function module ,,,
hope it helps ...