2008 May 15 7:49 AM
Hi,
Is there a Function Module that can Pop-up my Internal Table and return selected record from the Pop-up Screen?
Thanks...
james
Hi,
Is there a Function Module that can Pop-up my Internal Table and return selected record from the Pop-up Screen?
Thanks...
james
2008 May 15 7:54 AM
Hi,
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynpprog = 'ZREM_AGENCY_REPORT'
dynpnr = '1000'
dynprofield = 'COMPANY'
value_org = 'S'
TABLES
value_tab = gt_bukrs
return_tab = return_tab
dynpfld_mapping = dynpfld_mapping.
fm takes internal table and shows that in F4 help for input field.
Award points
2008 May 15 8:00 AM
Hi,
I dont have input field so that i cant use ur suggestion...
thank..
james
2008 May 15 8:00 AM
Hi,
Check the code
DATA : v_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
SELECT-OPTIONS : s_plant1 FOR
zaw_pol_plan-plant MODIF ID chg NO-EXTENSION NO INTERVALS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_plant1-low .
SELECT werks INTO TABLE i_t001w
FROM t001w.
IF sy-subrc EQ 0.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'WERKS'
dynpprog = ws_repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = i_t001w
return_tab = v_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
s_plant1-low = v_return-fieldval.
IF you want to just display in popup this can do
Check out the below link ...
http://www.geocities.com/mpioud/Z_REUSE_ALV_POPUP_TO_SELECT.html
Display data in a POPUP
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_selection = 'X'
i_zebra = 'X'
it_fieldcat = lt_fieldcat
i_tabname = 'GT_USER'
i_checkbox_fieldname = 'CHECKBOX'
is_private = ls_private
IMPORTING
e_exit = l_exit
TABLES
t_outtab = gt_user.
Regards,
Raj.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |