11-03-2009 7:59 AM
Hi Experts,
I have created a customised search help ,for transaction MIRO ,I want the values in vendor tab of my search help to be defaulted as vendor number appearing in the miro transaction . how can i do that .
regards
Prasun
11-03-2009 8:35 AM
hai,
use the function module as
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = co_retfield
dynpprog = co_dynprog
dynpnr = sy-dynnr
dynprofield = wf_dynpro
value_org = co_s
TABLES
value_tab = tb_object_range
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.
11-03-2009 8:25 AM
Hi Prasun,
You use FM: F4IF_INT_TABLE_VALUE_REQUEST, by using this you can display default value in your z search help.
Regards,
Tutun
11-03-2009 8:33 AM
hi tutun,
in my searchhelp i am using a customised fm in searchhelp exit , where i need to use this fm mentioned by you
regards
Prasun
11-03-2009 8:33 AM
1.Go to your Z search help by se11
2.Down in the parameter tab
3. Check the field for which you want to give the default value
4.Mark Sdis and scroll right there you can give the default value for ur search help
hope this helps
Bhanu
11-03-2009 8:38 AM
12-23-2009 9:11 AM
11-03-2009 8:35 AM
hai,
use the function module as
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = co_retfield
dynpprog = co_dynprog
dynpnr = sy-dynnr
dynprofield = wf_dynpro
value_org = co_s
TABLES
value_tab = tb_object_range
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.
11-03-2009 10:31 AM
Hi, you can try following peice of code to have search help similar to one provided as standard for vendor field.
FM :
call function 'DD_SHLP_CALL_FROM_DYNP'
exporting
help_infos = help_infos
importing
selection = selection
select_value = select_value
rsmdy_ret = rsmdy_ret
tables
dynpselect = dynpselect
dynpvaluetab = dynpvaluetab
exceptions
others = 1.
Fill structure help_infos as below :
1 CALL C 1 M
2 OBJECT C 1 F
3 PROGRAM C 40 SAPLMR1M
4 DYNPRO C 4 6215
5 TABNAME C 30 RM08M
6 FIELDNAME C 30 SUPERFIELD
7 FIELDTYPE C 4 CHAR
8 KEYWORD C 40 9 FIELDLNG C 2 40
10 FLDVALUE C 255
11 MCOBJ C 30 KRED
12 SPRAS C 1 E
13 MENUFUNCT C 20 HC
14 MESSAGEID C 20
15 MESSAGENR C 3 16 MESSAGE C 300
17 TITLE C 79 Enter Incoming Invoice: Company Code 2030
18 DYNPROFLD C 132 RM08M-SUPERFIELD
19 DYNPROFLAG C 1
20 CHECKTABLE C 30
21 CHECKFIELD C 30
22 VALEXIST C 1
23 TCODE C 20 MIRO
24 PFKEY C 20 6000
25 DOCUKEY C 79
26 REPORT C 40
27 DOCUID C 2 FE
28 DOCUOBJECT C 60
29 HEADERTEXT C 132
30 F1SYSHEL C 1
31 MSGV1 C 50 SAPLMR1M
32 MSGV2 C 50 6000
33 MSGV3 C 50
34 MSGV4 C 50
35 SHOW C 1
36 POV C 1 N
37 CUROW I 4 3
38 CUCOL I 4 37
39 SY_DYN C 1 U
40 DYNPPROG C 40 SAPLMR1M
41 STEPL I 4 0
42 SELECTART C 1 A
Replace PROG, TABNAME, FIELDNAME, DYNPROG by your custom program, field name.
Hope this help.