2009 Aug 13 4:20 AM
Hi all,
In my module pool programe table control I have created F4 value ( Search help) by FM F4IF_INT_TABLE_VALUE_REQUEST
in Process on value-request.
I am populating internal table to get the values.
but user asks they will put wildcard ( * ) search for the material document to get the list by F4 values.
like 23*09 instead of full material document no.
In my select statement i have used % instead of *. ( 23%09) and with LIKE statement.
I am not getting any data from my data base table.
kindly help me what type of select statement i have to use to get the data list.
Thanks in advance.
sharma
2009 Aug 13 4:54 AM
try it with this example
data:ra_mblnr type range of mseg-mblnr.
data:wa like line of ra_mblnr.
wa-option = 'CP'.
wa-sign = 'I'.
wa-low = '123*45'.
append wa to ra_mblnr.
select mblnr into table it from mseg where mblnr in ra_mblnr.
Hi all,
In my module pool programe table control I have created F4 value ( Search help) by FM F4IF_INT_TABLE_VALUE_REQUEST
in Process on value-request.
I am populating internal table to get the values.
but user asks they will put wildcard ( * ) search for the material document to get the list by F4 values.
like 23*09 instead of full material document no.
In my select statement i have used % instead of *. ( 23%09) and with LIKE statement.
I am not getting any data from my data base table.
kindly help me what type of select statement i have to use to get the data list.
Thanks in advance.
sharma
2009 Aug 13 4:34 AM
Hi
Use the FM DYNP_VALUES_READ to get the values entered in an input field before PAI triggers.
Then get entry along with the Wild Card Entry and pass it to your select Query.
to know how to use the FM take the help of Where used List
Cheers
Ramchander Rao.K
2009 Aug 13 4:41 AM
Hi,
Try this,
SELECT ...
INTO ...
FROM ...
WHERE material_document = '23%09'.Thanks,
Sri.
2009 Aug 13 4:43 AM
2009 Aug 13 4:54 AM
try it with this example
data:ra_mblnr type range of mseg-mblnr.
data:wa like line of ra_mblnr.
wa-option = 'CP'.
wa-sign = 'I'.
wa-low = '123*45'.
append wa to ra_mblnr.
select mblnr into table it from mseg where mblnr in ra_mblnr.
2010 Mar 16 11:12 AM