2008 Mar 16 7:33 AM
Hi
Can any one tell me how to create the search help for a field on selection screen in report.
SELECT-OPTIONS : p_mblnr FOR mkpf-mblnr.
This is the Mat. doc no.in MKFP,but there is not search help in table,..so please tell me how to do.
Will i had to create a search help in table also or just in report wil work fine.
Regds
2008 Mar 16 7:41 AM
Hi,
Please refer to the link below:
http://www.saptechnical.com/Tutorials/ABAP/SearchHelp/page2.htm
Thanks,
Sriram Ponna.
Hi,
After Initialization event use this event
create an internal table and send all records of mblnr from mkpf table to that internal table.
create as follows
data : f_name like DFIES-FIELDNAME value 'MBLNR'.
At selection-screen on value-request for p_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
provide the f_name and internal table name to the function modules exporting and tables parameters
2008 Mar 16 7:41 AM
Hi,
Please refer to the link below:
http://www.saptechnical.com/Tutorials/ABAP/SearchHelp/page2.htm
Thanks,
Sriram Ponna.
2008 Mar 16 7:41 AM
Hope this code might help you
DATA: BEGIN OF tbmblnr OCCURS 10,
mblnr LIKE mkpf-mblnr,
END OF tbmblnr .
initialization.
tbmblnr-mblnr = '0001'.
append tbmblnr.
clear tbmblnr.
at selection-screen on value request for p_mblnr-low.
perform a1 using p_mblnr-low
at selection-screen on value request for p_mblnr-high.
perform a1 using p_mblnr-high
form a1 usind p_mblnr1
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = tbmblnr-mblnr
value_org = 'S'
TABLES
value_tab = tbmblnr[]
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc 0.
ENDIF.
endform.
2008 Mar 16 7:50 AM
Hi Vipin,
Create search help for data element against MKPF-MBLNR and attach to it to SELECT-OPTIONS using caluse MATCHCODE OBJECT obj where obj is the search help created for the data element.
Check these links to create search help.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm (For elementary search help)
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm(For collective search help)
Thanks,
Vinay
2008 Mar 16 8:19 AM
Hi,
After Initialization event use this event
create an internal table and send all records of mblnr from mkpf table to that internal table.
create as follows
data : f_name like DFIES-FIELDNAME value 'MBLNR'.
At selection-screen on value-request for p_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
provide the f_name and internal table name to the function modules exporting and tables parameters
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |