Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problme in Using RFC_READ_TABLE

Former Member
0 Likes
2,361

Hello

I am calling FM RFC_READ_TABLE.In that in the otions structure I need to pass the date range. So I am passing the date reange like AS4DATE >= '01/01/2008' and AS4DATE <= '13/01/2008'.But its not returning any values although the table E070 contain values for these date ranges.If I only pass one date (i.e.AS4DATE >= '01/01/2008' then it gives the results properly.

Kindly suggest.

Regards

Davinder Singh

Hello

I am calling FM RFC_READ_TABLE.In that in the otions structure I need to pass the date range. So I am passing the date reange like AS4DATE >= '01/01/2008' and AS4DATE <= '13/01/2008'.But its not returning any values although the table E070 contain values for these date ranges.If I only pass one date (i.e.AS4DATE >= '01/01/2008' then it gives the results properly.

Kindly suggest.

Regards

Davinder Singh

3 REPLIES 3
Read only

Former Member
0 Likes
1,118

Your date needs to be in the format yyyymmdd.

Read only

0 Likes
1,118

Hi Martin

Its working fine when I changed the date format.But if I give the date range along with another selecton criteria it doenot give any result for e.g. in E070 table I have to restrict the entries by TRKORR and AS4DATE(Date). So I have given in the options like this:

TRKORR EQ 'GLDK967876' AND

AS4DATE >= 20080101 AND

AS4DATE <= 20080113.

Now the above code doenot work.

If I write like this beow then it works.

TRKORR EQ 'GLDK967876' AND

AS4DATE >= 20080101.

Could you please advise.

Regards

Davinder Singh

Read only

0 Likes
1,118

Hi Davinder,

I have experienced you problem when I have integrated our SAP ECC to our legacy system built using Microsoft .NET simply enclosed the date in yyyyMMdd format inside a single quote.

Please see this:

TRKORR EQ 'GLDK967876' AND

AS4DATE >= '20080101' AND

AS4DATE <= '20080101'

This worked for me. Before, I was having a hard time determining why the date range is not working.

Regards,

Jkyle