Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

default input in a search help

Former Member
0 Likes
845

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

6 REPLIES 6
Read only

Former Member
0 Likes
798

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

Read only

Former Member
0 Likes
798

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

Read only

0 Likes
798

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

Read only

0 Likes
798

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.

Read only

Former Member
0 Likes
798

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

Read only

Former Member
0 Likes
798

done