2014 Jan 07 7:41 AM
Hi All
In reeading internal table sy-subrc NE0 even though entry exits in internal table.
Kindly provide the solution.I am not using binary search and sort.
If i share my code moderator will delete the post.
Thanks
Vamsi
2014 Jan 07 7:43 AM
Hi Mohan,
We cant help you unless and until you share your code.
BR.
2014 Jan 07 7:43 AM
Hi Mohan -
SORT the internal table in the order your using the BINARY SEARCH.
2014 Jan 07 7:43 AM
I can't be possible.
If entry exist in Itab and you are providing correct condition, sy-subrc = 0.
2014 Jan 07 7:48 AM
Hi Mohan,
Once you sort your table with condition field and read using Binary search.
Thanks & Regards,
Vijay
2014 Jan 07 7:49 AM
Hello Mohan Vamsi.
Data that you are reading from the internal table should exactly match (including preceding zeroes).
Kindly check that.
Regards.
2014 Jan 07 7:53 AM
Hi Mohan,
If where condition field datatype is C and its length 10.
Suppose your value is 180180. then you have to check as '0000180180'..
Arivazhagan S
2014 Jan 07 7:55 AM
Mohan Vamsi wrote:
If i share my code moderator will delete the post.
I don't think so. Limit it to the relevant parts though, so helpful souls don't have to wade through pages and pages.
Thomas
2014 Jan 07 8:15 AM
HI All
IF lv_partner_Po-partner_fct = '00000027'.
READ TABLE gt_but020 into gs_but020 with key Partner = lv_partner_po-partner_ID.
If sy -subrc = 0.
Here partner_ID = 0000000001
Thanks
Vamsi
2014 Jan 07 8:18 AM
Hi Mohan,
Sort gt_but020 by partner before the read statemnet.
2014 Jan 07 8:18 AM
Make sure the type of lv_partner_po-partner_ID and gs_but020-Partner is same.
2014 Jan 07 8:20 AM
Hi Vamsi,
How is your table gt_but020 declared? And what type is your field lv_partner_po-partner_ID?
Have you debugged it, are your sure the read statement is reached?
Br,
Manu.
2014 Jan 07 8:19 AM
Hi Mohan
Please share only the relvant code with your debugging screen shot of value you are trying to read. Moderators will delete if you are going to dump your all other code
Nabheet
2014 Jan 07 8:40 AM
Hi,
Whether it has a conversion routine of which field pass value.
you need to do the conversion.
Thanks,
Yawa
2014 Jan 07 9:11 AM
Hi Mohan,
Just check if you need to use conversion exits before comparing with dictionary entries.
Regards,
Sheetal.