2008 Oct 16 4:12 PM
Hi All,
I have used below syntax for retrieving data from AFRU table.
loop at it_catsf.
select single ismnw from AFRU
into it_catsf-ismnw
where pernr = it_catsf-pernr
and aufnr = it_catsf-network
and vornr = it_catsf-activity
and budat between p_date1 and p_date2.
modify it_catsf.
endloop.
I am unable to get the data even though data is present in the database table.
If i pass same values in SE11 screen, the data can be viewed...!!!
How to resolve this issue?
Regards
Pavan
2008 Oct 16 4:29 PM
Hi Pavan,
Just debug and see if the p_date1 and p_date2 are of similar TYPE to budat and also that the date value should be in the same way. i.e., if budat is of type sy-datum, then the input should be of form yyyymmdd. If it they mismatch, use CONVERSION_EXIT_ALPHA_INPUT.
Just let me know if the issue is resolved and how.
Regards.
Vamshi
Hi Pavan,
Just debug and see if the p_date1 and p_date2 are of similar TYPE to budat and also that the date value should be in the same way. i.e., if budat is of type sy-datum, then the input should be of form yyyymmdd. If it they mismatch, use CONVERSION_EXIT_ALPHA_INPUT.
Just let me know if the issue is resolved and how.
Regards.
Vamshi
2008 Oct 16 4:15 PM
i dobut your where condition on budat.
remove that condition and see...
2008 Oct 16 4:24 PM
Hi,
Before pass the value in select query use the fm CONVERSION_EXIT_ALPHA_INPUT and pass the value pernr and get same value..
loop at itab.
CONVERSION_EXIT_ALPHA_INPUT
input = pernr
output = pernr.
.....
.....
....
endloop.
regds,
Paras
2008 Oct 16 4:24 PM
Maybe you want to append rather than modify the internal table.
rob
2008 Oct 16 4:29 PM
Hi Pavan,
Just debug and see if the p_date1 and p_date2 are of similar TYPE to budat and also that the date value should be in the same way. i.e., if budat is of type sy-datum, then the input should be of form yyyymmdd. If it they mismatch, use CONVERSION_EXIT_ALPHA_INPUT.
Just let me know if the issue is resolved and how.
Regards.
Vamshi
2008 Oct 16 4:47 PM
Look at your values for it_catsf to see if they are missing leading zeroes. SE11 will try to be helpful sometimes and accept values a select statement would miss.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |