2006 Oct 16 12:11 PM
hi all,
While displaying field contents of my Z table in SE11, (i.e. in the selection-screen of se11) all the fields of the table are shown as select-option fields i.e. every field is displayed with low and high textboxes. I want all the fields to be displayed as paramters. Is this possible?
Plz let me know
Thanks in advance
Vinny
hi all,
While displaying field contents of my Z table in SE11, (i.e. in the selection-screen of se11) all the fields of the table are shown as select-option fields i.e. every field is displayed with low and high textboxes. I want all the fields to be displayed as paramters. Is this possible?
Plz let me know
Thanks in advance
Vinny
2006 Oct 16 12:37 PM
Yes this is possible
Please check the following Code and see if it is useful for you
DATA: i_fields LIKE TABLE OF sval.
DATA: i_dd03l TYPE STANDARD TABLE OF dd03l.
DATA: wa_dd03l TYPE dd03l,
wa_fields TYPE sval.
PARAMETERS : p_table TYPE tabname.
AT SELECTION-SCREEN.
SELECT * FROM dd03l
INTO TABLE i_dd03l
WHERE tabname = p_table.
LOOP AT i_dd03l INTO wa_dd03l.
IF wa_dd03l-fieldname NE '.INCLUDE'.
wa_fields-tabname = wa_dd03l-tabname.
wa_fields-fieldname = wa_dd03l-fieldname.
APPEND wa_fields TO i_fields.
CLEAR wa_fields.
ENDIF.
ENDLOOP.
CALL FUNCTION 'POPUP_GET_VALUES_DB_CHECKED'
EXPORTING
popup_title = 'Choose Fields'
TABLES
fields = i_fields
EXCEPTIONS
error_in_fields = 1
OTHERS = 2.
The table i_fields will contain the values which you have entered in the popup
2006 Oct 16 12:46 PM
hi Dominic,
Thanks for the response.
plz let me kknow, where im supposed to add this code? in the standard program behind the Z table? plz clarify.
Thanks,
Vinny
2006 Oct 16 1:04 PM
2006 Oct 17 11:11 AM
Hi,
If you just want a Report to dispaly the contents of the field in ALV or LISt format with selection screen containing only Parameters, You can try using SAP Queries .
( <b>SQ01</b> )
Where u get more options for reporting.
Regards,
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |