on 08-11-2004 7:30 PM
Netters,
I am wondering if anyone has an example on the RFC callback feature that has been added to the new SAP .NET connector 2.0.
Thank you in advance for your help.
Pradeep
This feature came in lately so we don't have an example yet. This fundamental idea is simple:
-Create your client proxy.
-Create a server proxy with all methods in it that are called back.
- Remove the main sample function in server proxy implementation and implement all server functions.
- At runtime, create your client proxy instance and a server proxy instance.
- Set the server proxy instance to the "CallbackServer" property of the client proxy instance.
That's it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reiner,
Thank you for your help. I will try it out.
I have a slightly different question. I have to fetch about 10+ million records via RFC. Unlike database servers, which provide streaming records, SAP RFCs are one time atomic calls. Obviously, I cannot fetch 10 million rows in one shot without brining the SAP server or the .NET client down. The way I was handling this before was to break my SELECT query into multiple queries (actually the same query with different WHERE clauses) and fetch data for one query at a time. It worked but is not elegent. I am thinking that using the RFC callback will be more elegent. The question I have is, do you see any problem with RFC callback to handle this? If you have any other suggestion, I'd appreciate your feedback.
Thank you in advance for your help.
Pradeep
Hi Peter,
We ran into the same issue issue as you. We used two methods to controls how much data we push out. In the ABAP program we coded these two methods:
1) SELECT F1,F2,Fn INTO TABLE <tab_name> PACKAGE SIZE p_max
2) And for our biggest tables, which were about 6 mill+ we select out data using this command
OPEN CURSOR WITH HOLD c1 FOR
SELECT F1, F2, Fn...
Cheers!
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.