01-07-2008 8:40 PM
Hello friends,
I have a search help which will take KAPPL and give me the results for KZNEP for the value of KAPPL.
I have created a search help exit for it. I am calling function module F4UT_PARAMETER_VALUE_GET, but i am not aware of what all parameters to be passed to this function.
Can anyone help me out in this. This really very urgent.
Thanks for all the help.
Regards,
Salil
01-08-2008 4:07 AM
Hi Salil
check my code of search help exit in CRM.
>CALL FUNCTION 'F4UT_RESULTS_MAP'
>TABLES
>shlp_tab = shlp_tab
>record_tab = record_tab
>source_tab = lt_result
>CHANGING
>shlp = shlp
>callcontrol = callcontrol
>EXCEPTIONS
>illegal_structure = 1
>OTHERS = 2.
lt_result will have all the data that need to be shown in the search help window.
01-07-2008 8:49 PM
data: l_value like ddshiface-value,
SHLP_TAB TYPE SHLP_DESCR_TAB_T,
RECORD_TAB STRUCTURE SEAHLPRES,
l_results_tab like Your output occurs 0 with header line,
set additional parameter text_prop
call function 'F4UT_PARAMETER_VALUE_GET'
exporting
parameter = 'TEXT'
OFF_RESULT = 0
LEN_RESULT = 0
FIELDNAME = ' '
importing
value = l_value
tables
shlp_tab = shlp_tab
record_tab = record_tab
SELOPT_TAB =
results_tab = l_results_tab
changing
shlp = shlp
callcontrol = callcontrol
exceptions
parameter_unknown = 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.
Hope this Helps.
Vinodh Balakrishnan
01-07-2008 8:50 PM
01-08-2008 4:07 AM
Hi Salil
check my code of search help exit in CRM.
>CALL FUNCTION 'F4UT_RESULTS_MAP'
>TABLES
>shlp_tab = shlp_tab
>record_tab = record_tab
>source_tab = lt_result
>CHANGING
>shlp = shlp
>callcontrol = callcontrol
>EXCEPTIONS
>illegal_structure = 1
>OTHERS = 2.
lt_result will have all the data that need to be shown in the search help window.
01-08-2008 4:32 AM
Hi
hope this will resolve ur issue,
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter =
OFF_RESULT = 0
LEN_RESULT = 0
FIELDNAME = ' '
IMPORTING
VALUE =
tables
shlp_tab =
record_tab =
SELOPT_TAB =
RESULTS_TAB =
changing
shlp =
callcontrol =
EXCEPTIONS
PARAMETER_UNKNOWN = 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.
reward if help.