2009 Sep 11 6:20 AM
Hello All,
I want to display the values in the selection criteria of a search help on the basis of a certain condition before it is displayed. Can anyone provide me the code for it. I cannot specify the value as a default option as I have to assign two different values on the basis of a condition.
Thanks in advance.
Regards,
Anju
Hello All,
I want to display the values in the selection criteria of a search help on the basis of a certain condition before it is displayed. Can anyone provide me the code for it. I cannot specify the value as a default option as I have to assign two different values on the basis of a condition.
Thanks in advance.
Regards,
Anju
2009 Sep 11 6:26 AM
Dear Anju,
use this..
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_info.
g_t_dynp-fieldname = 'P_INFO'.
APPEND g_t_dynp.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'ZAB_SCM_DP_LISTCUBE_DATA'
dynumb = '1000'
translate_to_upper = 'X'
TABLES
dynpfields = g_t_dynp
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
OTHERS = 9.
Regards,
Vijay
2009 Sep 11 6:32 AM
Hi,
I suppose the default values you need are on a report for a parameter so you can do the defaults in the initialization of the report like below:
Initialization.
if condotion 1.
screen-fields = value1.
else.
screen-fields = value2.
endif.
Regards,
Himanshu
2009 Sep 11 6:35 AM
I want to default the values of search help fields on the basis of a condition before display. the fields are present in the search help only not any other screen element.
Thanks,
Anju
2009 Sep 11 6:49 AM
if the condition is not coming from any element in screen, on what conditions you need the values to change??
else.
what you can do is get the values to a internal table as per your conditions and display them in at selection-screen on value request for p1.
2009 Sep 11 7:03 AM
Hi,
For This purpose u have to use ur own elementry search hlp this in this search hlp use ur own database view now in this database view u can assign conditions on the last tab.
Regards,
Manish
2009 Sep 16 1:28 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |