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

Problem with RFC_READ_TABLE

Former Member
0 Likes
1,853

I am using two functions which are exposed as webservice and consumed in .NET

RFC_READ_TABLE - to read username from USR02 table

bapi_user_get_detail - to fetch detail of each user.

there are total of 10 thousand records to be imported from SAP system.

I first call RFC_READ_TABLE for 150 records. then for each record i call BAPI_USER_GET_DETAIl.

But when i call RFC_READ_TABLE for second set of 150 records, HTTP 503 error comes and service gets disconnected.

Please help me to solve the issue.

Thanks,

Anshul.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,749

why would you read on usr02 if BAPI_USER_GET_DETAIL gets you same information?

The call of your RFC_READ_TABLE is redundant. And your error message even states that you just made it overflow.

10 REPLIES 10
Read only

former_member209703
Active Contributor
0 Likes
1,749

Have you checked if any dumps have been generated in the SAP side?

Read only

0 Likes
1,749

Yes i have checked st22 transaction... there is no dump generated.

only no more request to http protocoal is allowed.

this error is coming in dev_icm

      • ERROR => IcmSendRq: No more ABAP contexts available for protocol: HTTP (90%) [icxxif.c 941]

      • ERROR => Server overload [icxxthr.c 1716]

Read only

Former Member
0 Likes
1,750

why would you read on usr02 if BAPI_USER_GET_DETAIL gets you same information?

The call of your RFC_READ_TABLE is redundant. And your error message even states that you just made it overflow.

Read only

0 Likes
1,749

I am only reading list of username using RFC_READ_TABLE. only Field BNAME from table USR02

And then for detail i am calling BAPI_USER_GET_DETAIL.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,749

Hello Anshul,

You can use 'BAPI_USER_GETLIST' to get the list of users & then use BAPI_USER_GET_DETAIL to fetch the users' details.

BR,

Suhas

Read only

0 Likes
1,749

Hi Suhas,

Thanks for the reply.... actually our requirement is to fetch the userlist in pages.

eg starting from index 5 to next 150 users

so for this reason i am using RFC_READ_TABLE.

Is there any problem using this rfc

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,749

Hello,

Only difference i find is that RFC_READ_TABLE is not released & is not a BAPI

As you might be knowing, BAPIs have a stable interface & they are kind of "future-proof"! BAPIs should always be preferred over unreleased RFMs.

BR,

Suhas

Read only

0 Likes
1,749

So the above error i am getting could be because of using RFC_READ_TABLE.

Read only

0 Likes
1,749

Hi Anshul,

that would surprise me a lot that the cause if RFC_READ_TABLE. It's just not advised to use this generic RFC as it could be a security breach.

HTTP 503 means "Service Unavailable. The server is currently unavailable (because it is overloaded or down for maintenance)" (see http://en.wikipedia.org/wiki/List_of_HTTP_status_codes). It's probably a system configuration issue, ask your admins. Read also SAP note 959866 HTTP error message: Server Overload

Do you close your RFC connection between each RFC_READ_TABLE call? If you could keep it alive, that would maybe avoid this issue.

BR

Sandra

Read only

0 Likes
1,749

Hi,

I am calling this RFC_READ_TABLE using webservice