on 07-24-2008 9:15 AM
hi,
can anybody tell me what is the function module for displaying the list with search help.
thanks.
Edited by: priya patil on Jul 24, 2008 10:19 AM
Edited by: priya patil on Jul 24, 2008 10:19 AM
hi tell me first whether you want to display the listbox help should be the from the standard table then check this....
report .
TYPE-POOLS : vrm.
TABLES:vbak,vbap.
DATA : v(80) TYPE c.
DATA: wa_vbak TYPE vbak,
it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
wa_vbap TYPE vbap,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values ,
v_count TYPE i,
l_value LIKE LINE OF li_list.
PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
PERFORM get_data.
LOOP AT it_vbak.
l_value-key = it_vbak-vbeln .
l_value-text = it_vbak-vbeln .
APPEND l_value TO li_list.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = li_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
AT SELECTION-SCREEN ON P_TEST.
clear : li_list , li_list[].
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
START-OF-SELECTION.
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
LOOP AT it_vbap.
WRITE 😕 it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.
ENDLOOP.
&----
*& Form get_Data
&----
text
----
--> p1 text
<-- p2 text
----
FORM get_data .
SELECT vbeln
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE it_vbak.
ENDFORM. " get_Data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priya,
Check this url.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm
Regards,
Muneesh Gitta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello,
TABLES : zark_alv_test.
DATA : BEGIN OF int_tab_id OCCURS 0,
name TYPE char20,
END OF int_tab_id.
PARAMETER : p_name(20) TYPE c.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name .
int_tab_id-name = 'tina'.
APPEND int_tab_id.
int_tab_id-name = 'mina'.
APPEND int_tab_id.
int_tab_id-name = 'hina'.
APPEND int_tab_id.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'NAME'
dynpnr = sy-dynnr
dynpprog = 'ZARK_TRIAL'
dynprofield = 'P_NAME'
value_org = 'S'
TABLES
value_tab = int_tab_id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer to this link:
http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm
Also try using this FM F4IF_INT_TABLE_VALUE_REQUEST.
Regards,
Shailaja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
SEARCH_HELP_EFFECTIVITY
SEARCH_HELP_TECS
try these FM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
TYPE-POOLS : vrm.
DATA : int_list TYPE vrm_values.
DATA : int_values LIKE LINE OF int_list.
DATA : wf_vrm_id TYPE vrm_id.
PARAMETER : p_dtype(13) TYPE c AS LISTBOX VISIBLE LENGTH 15.
hello,
hope this helps u
AT SELECTION-SCREEN OUTPUT.
To fill the list to be passed to the FM
wf_vrm_id = 'P_DTYPE'.
int_values-key = text-007.
int_values-text = text-007.
append int_values to int_list.
clear int_values.
int_values-key = text-008.
int_values-text = text-008.
append int_values to int_list.
clear int_values.
FM to populate the drop down box.
call function 'VRM_SET_VALUES'
exporting
id = wf_vrm_id
values = int_list.
Mark the post answered once ur problem is solved ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.