Draft for RFC connection
Hi Experts,
could you write me pls a draft coding for an RFC connection?
Thank you!
You mean something like this:
CALL FUNCTION 'Z_FUNCTION_NAME' DESTINATION 'PRD'.
That's all there is to it. You just add the Keyword DESTINATION and the name of a destination mainted in SM59 to the CALL FUNCTION statement. Now that I have typed this, however, I question if this inquiry really belongs in the Web Dynpro ABAP forum. This seems more like a general ABAP question.
Hint - for WDA specific functionality you can use the Service Call Wizard to generate the context and the logic to call a RFC. Was that perhaps what you were refering to.
Similar Messages
-
Standard way of mutual exclusion control for rfc connection
Dear expert,
I want to know the standard way of mutual exclusion control
for rfc connection.
I am going to create JAVA screens for ERP ABAP objects.
As for SAP GUI screen, pessimistic locking is used when editing objects.
On the other hand, pessimistic locking is defficult for JAVA screens,
since most of lock objects on ERP are not available for RFC.
Besides, I'm afrraid if locks are correctly deleted
when something bad happens on screen.(i.e. Users close browsers.)
Do you have any recommendations?
Regards,
Fukuhara YoheiHello, we raised an OSS note.
They answered it was not possible to lock tasks.
Task completion is like a race, the first it completes it wins.
Regards,
Marco. -
Sample JAVA code using Resource Adapter for RFC Connections
Hi Java Knowledgeable Ones.
I have successfully deployed the SAP Netweaver J2ee Engine "Resource Adapter for RFC Connections to ABAP Systems" to my Web Application Server. Now I need to develop a JAVA application that would utilize this deployed resource adapter. The resource adapter specifies the SAPClient, UserName, and password. I am thinking that the JAVA code to invoke this connection would therefore not need to provide this information as it should be available in the resource adapter.
Do you have sample code that you could send to me showing how to do this?
Thanks,
KevinHi Kevin,
this is actually no good style! You should not open the connection with the adaptor knowing the password. Usually it should work via a connection that uses only basic rights and the user has already authenticated and is using his security ticket.
For security handling see:
http://help.sap.com/saphelp_nw04/helpdata/en/61/f8bc3d52f39d33e10000000a11405a/frameset.htm
Regards,
Benny -
Program ID Required for RFC Connection
Hi All,
I'm trying to create a RFC Connection betwen SAP BI and SSIS (SQL Server Integration Services). In SM59 screen i'm unable to get the appropriate Program ID required for the connection. Could someone please help me in knowing how to get it.Yogesh,
While creating TCP\IP type RFC destination, when you select Radio button "Registered server program", there you have to provide Program Id there. So for your information:
Program Id is a string which can be anything even your name.
i know only R3 and XI integration and in that case you will make your RFC communication channel active first with a program Id(ant thing) and with logon credentials of other system + gateway host and service.
then use that program id in RFC destination and test it.
If get empty request then RFC destination is ok.
BR,
Alok -
Authorizations for RFC connections
Hi everyone....
what are the Authorizations required for the user when creating RFC connections in XI.
Rewards,
Varun Reddy.KHi,
Authorization for using RFC destinations
http://help.sap.com/saphelp_nw04/helpdata/en/6b/af429b12e9214d9a2d6cba921b162f/frameset.htm
Regards,
Shabari -
hi all,
source systems when checked is fine but when i try to customize the extractors it says error "opening" rfc connection..any idea why?? during loading have a error saying idocs not posted and idocs with incorrect status..
help wil be rewarded..
regards'
RajendraHi Rajendra,
Go to SM59. Open the RFC for your source system by double clicking on it. Click on check connection. There's some issue with the RFC thats why you're seeing this error. Inform the Basis team. Thanks.
Sumit -
Authrisations for RFC connections
Hi everyone....
what are the Authorizations required for the user when creating RFC connections in XI.
Rewards,
Varun Reddy.KHi Varun,
I think you need following authorization adde to your roles, to create an RFC.
S_RFC_ADM
plz go thru following link for more information.
http://help.sap.com/saphelp_nw04s/helpdata/en/84/d3eb4190966024e10000000a1550b0/content.htm
hope this is helpful.
PS Award ponis if this is helpful -
Clinet for RFC Connection in Java Installation
hi ,
I am in the process of installing Java Add on for EP.
I have BW installed in Client 100
But during instlaltion pls tell me teh client no i should give for RFC ConnectionHello Balaji,
In case of BW only one client can be used as BW client. Since your AS ABAP the BW client is 100 it has to be 100 in case of Java Add-in as well.
Regards.
Ruchit. -
Configuring RFC connections for load balancing.
Hi ,
We have the following landscape for our systems.
The database is installed on z/os , db2 (mainframe). The central services( SCS and ASCS) are also on the mainframe. So the message server is on mainframe.
The CI is on AIX and The DI is on AIX.
We have Logon groups configured and load balancing Configured and is RFC enabled.
1) When we connect to SAP using the SAPGUI and the portal connection is made to either CI or DI depending upon the best response times. Now recently we are running the mercury load testing, all the users are connecting to DI. Why are the users connecting to DI even though we have load balancing?
2) I have a system with SID BP0, with one CI and one DI. The logon group is BP0 and the message server name is cyrix. Now I have other another system EP0. I have created a RFC connection from EP0 to BP0. In SM59 I have selected the load balancing option, and provide the message server name, SID and logon group name. The connection does not work. If I connect directly to the CI or DI the connection works. Please tell me how can I configure load balancing for RFC connections.
Thanks
Manmath.Dear 917996,
There are two types of load balancing:
- Client-side load balancing (setting up the tnsnames.ora on client side). More information here (http://ggsig.blogspot.co.uk/2012/04/client-side-
load-balancing-in-oracle.html). Very good video produced my friend Igor Melnikov is here (http://www.dsvolk.ru/oracle/racdd4d/demos/video/loadbalance/client/clientloadbalance_viewlet_swf.html)
-Server-side load balancing (remote_listener and setting service parameter clb_goal). Very good Igor Melnikov's video is here (http://www.dsvolk.ru/oracle/racdd4d/demos/video/loadbalance/server/serverloadbalance_viewlet_swf.html).
I have read about client side and server side load balancing. By editing tnsnames.ora I have enabled client side load balancing which is suppose to select listeners at random. then why does it only go to second node?Could you please show your tnsnames.ora on client?
Please can anyone help me to configure server side load balancing with SCAN. I have read many many post but couldn't find a clear answer.Based on your output (remote_listener string cmbtrnrac-scan:1521) you have already configured the server side load balancing.
SQL> show parameter listener
NAME TYPE VALUE
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=10.1
7.67.214)(PORT=1521))))
remote_listener string cmbtrnrac-scan:1521How many SCANs do you use? Do you use DNS?
regards,
Gennady -
Source system error - RFC connection failed
Hi Gurus,
I have installed ECC6 on my PC but not when i am trying to created the DS its not allowing me its saying appl comp hierarchy for source susyem "T90*" doesnt not exist.
so tried going to source system -> done a check for my source system then i got the following errors
Source system "T90*" is inactive
Entry in outbound table not found
Entry in inbound table not found
Basic type does not exist
Check failed for RFC connection T90CLNT090 ; check destination
can any one tell me how to fix this issue?
Regards,
RaviHi Ravi,
Did you run appication component hierarchy in source system(TX-RSA9)
then activate your data source
then replicate in BW system.
Check here for BW connectivity with source system.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/bi/stepbyStepBusinessIntelligence
Thanks,
Vijay. -
Facing problem with RFC connections
In the Maintenace View for RFC connections, when I press the 'Apply' button I am getting the message"You have no authorization to display the destinationu201D for all the 4 destination IDs"
Can somebody suggest on how to overcome this problem?
Thanks,
Mohammed Tauseef AhmedHi
The message over here means the user with which you are logged into the control system and the CPIC user that you may be using to create RFC destinations to the other systems in the landscape do not have the right authorizations.
It is recommended that all the users have the role TDMS_USER (atleast) or TDMS_MASTER assigned to it.
Once the role is assigned it will work fine.
Regards
Pankaj. -
Authorization Required for RFC user in R/3-APO system.
Could you please help regarding one authorization issue. I want to know the authorization required for one RFC user. Now this RFC user used for RFC connection of SAP R/3 - SAP APO system. user type is given dialog type and SAP_ALL profile has been given to this user id. Now I have to remove SAP_ALL from this user id in R/3 and APO system and provide the required the authorization in R/3 and APO system.
Regard
AuroshikhaThe RFC authorisation depends completely on what the user is doing (ALEREMOTE?). We can't tell you what RFC auths your connection requires.
There is a guide to doing this here: https://wiki.sdn.sap.com/wiki/display/Security/BestPractice-HowtoanalyzeandsecureRFC+connections -
Any SAP Note for RFC Error between BI and ECC 5.0
Hi..
the RFC Destination between BI and ECC 5.0 is giving errors.
Plz let me know if there is any Support pack or any solution to fix this error.
thanks..Hi,
pls find the RFC connection details
1 Prerequisites
1.1 User Roles
Use
With the Building Block Connectivity a configuration role for each component is provided to access all transactions relevant for the installation. The following roles are available:
Technical name Description File name for upload
B02_01C B02 - Connectivity Configuration Role (SAP R/3) B02_01C.SAP
B02_03C B02 - Connectivity Configuration Role (SAP BW) B02_03C.SAP
C71_04C B02 - Connectivity Configuration Role (SAP CRM) C71_04C.SAP
B02_04C_SRM B02 - Connectivity Configuration Role (SAP SRM) B02_04C_SRM.SAP
Procedure
Please upload the necessary roles and add them to your user, using transactions PFCG (Role Maintenance).
2 Local Settings
This chapter describes all local settings that are necessary for each component like SAP R/3, SAP SCM, SAP BW, SAP CRM or SAP SRM.
2.1 SAP R/3
2.1.1 Define Client Administration (SAP R/3)
Use
This activity allows you to change Customizing settings.
Prerequisites
You have logged on to the system in English in order to start with the installation of the Best Practices Scenario.
Procedure
Run the following activity:
SAP R/3 Role Menu Define Client Administration (SAP R/3)
Transaction Code SCC4
SAP R/3 Menu Tools Administration Administration Client Administration Client Maintenance
Then carry out the following steps:
1. Choose Display Change.
2. Confirm the warning message Caution: The table is cross client.
3. Select your SAP R/3 client and choose Details.
4. In the Change View Clients: Details screen, activate the following settings:
u2022 Automatic recording of changes
u2022 Changes to Repository and cross-client Customizing allowed
u2022 eCATT and CATT allowed.
5. Save.
6. Go back to the SAP Easy Access menu.
2.1.2 Defining a Logical System for SAP R/3 (SAP R/3)
Use
The purpose of this activity is to create a logical system for your SAP R/3 System. To enable communication between systems within your system landscape, you must
1. Define the systems as logical systems.
2. Assign the logical system for the SAP R/3 System to a client.
This enables the systems to recognize the target system as an RFC destination. If the logical system has already been created, skip this activity.
Logical systems are defined cross-client.
Procedure
Carry out the following steps:
1. Access the transaction using:
SAP R/3 Role Menu Defining a Logical System for SAP R/3 (SAP R/3)
Transaction Code SPRO
SAP R/3
IMG Menu Basis Components (for R/3 Enterprisse: SAP Web Application Server) Application Link Enabling (ALE) Sending and Receiving Systems Logical systems Define Logical System
2. Choose New entries.
3. In the column Log System, enter a name for the logical system that you want to create.
4. In the column Name, enter a description of the logical system.
Log. System Name
where XXX is the system name
and NNN is the client.
5. Save your entries.
A transport request for Workbench appears.
6. Select an existing request or create a new request, if necessary.
A transport request for Customizing appears.
7. Select an existing request or create a new request, if necessary.
2.1.3 Assigning Logical System to Client
Use
The purpose of this activity is to make an assignment for the logical system. Skip this activity if a logical system is already assigned to your client.
Procedure
Carry out the following steps:
1. Access the transaction using:
SAP R/3 Role Menu Assign Logical System to Client
Transaction Code SCC4
SAP R/3 Menu Tools Administration Administration Client Administration Client Maintenance
2. Choose Display ® Change.
3. Confirm the warning message The table is cross client.
4. Select your R/3 client and choose Details.
5. Enter the name of the logical system of your SAP R/3 client.
6. Save and confirm the warning message Be careful when changing the logical system.
7. Choose Back twice.
2.1.4 Creating an RFC User (SAP R/3)
Use
To enable communication between the SAP R/3 back-end system and the SAP SCM System, you have to create an RFC user in the SAP R/3 System.
The RFC user in the application client enables multiple RFC connections. Skip this activity if an RFC User has already been created.
Procedure
Carry out the following steps:
1. Access the transaction using:
SAP R/3 Role Menu Creating an RFC User (SAP R/3)
Transaction Code SU01
SAP R/3 Menu Tools Administration User Maintenance Users
2. In the User field, enter RFCUSER.
3. Choose Create.
4. On the Maintain User screen, enter the following data on the Tab entry screens:
Address
Last Name
Function
Logon data
User type System
Password LOGIN
Profile
Profiles SAP_ALL
SAP_NEW
S_BI-WX_RFC
Defaults
Logon Language EN
5. Save your entries.
2.3 SAP BW
2.3.1 Define Client Administration
Use
This activity defines changes and transports of the client-dependent and client-independent objects.
Procedure
1. To perform this activity, choose one of the following navigation options:
SAP BW Role Menu Local Settings ® Define Client Administration
Transaction Code SCC4
SAP BW Menu Tools Administration Administration Client Administration Client Maintenance
2. Switch to change mode.
3. Select your client.
4. Choose details.
5. In field Currency enter the ISO-code of the local currency, e.g. USD or EUR.
6. In field Client Role enter Customizing
7. Check the settings for changes and transport of client-specific objects and client-independent object changes
If you want to use the settings made by BC-Sets or manually in other systems (other than BW), u201CAutomatic recording of changesu201D and u201CChanges to Repository object and cross-client Customizing allowedu201D is required.
Result
Client administration has been defined to support the installation using Best Practices.
2.3.2 Defining a Logical System for SAP BW (SAP BW)
Use
In this step, you define the logical systems in your distributed system.
Prerequisites
Logical systems are defined cross-client. Therefore cross-client customizing must be allowed in your client (this can be checked in transaction SCC4).
Procedure
To carry out the activity, choose one of the following navigation options:
SAP BW Role Menu Defining a Logical System for SAP BW (SAP BW)
Transaction Code SPRO
IMG Menu SAP Reference IMG SAP Customizing Implementation Guide SAP NetWeaver Business Information Warehouse Links to other Systems General Connection Settings Define Logical System
1. A dialog box informs you that the table is cross-client. Choose Continue.
2. On the Change View u201CLogical Systemsu201D: Overview screen, choose New entries.
3. On the New Entries: Overview of Added Entries screen enter the following data:
Field name Description R/O/C User action and values Note
Log. System Technical Name of the Logical System Enter a name for the logical BW system that you want to create
Name Textual Description of the Logical System Enter a clear description for the logical BW system
4. Choose Save.
If a transport request for workbench and customizing is displayed choose existing requests or create new requests.
If you want to continue with the next activity, do not leave the transaction.
Result
You have created a Logical System Name for your SAP BW client.
2.3.3 Assigning Logical System to Client (SAP BW)
Procedure
To carry out the activity, choose one of the following navigation options:
SAP BW
Role Menu Assigning Logical System to Client (SAP BW)
Transaction Code SCC4
SAP BW Menu Tools Administration Administration Client Administration Client Maintenance
1. In the view Display View "Clients": Overview, choose Display. Change
2. Confirm the message.
3. Select your BW client.
4. Choose Details.
5. In the view Change View "Clients": Details, insert your BW system in the Logical system field, for example, BS7CLNT100.
6. Save the entries and go back.
2.3.4 Opening Administrator Workbench
Procedure
To carry out the activity, choose one of the following navigation options
SAP BW Modeling Administrator Workbench: Modeling
Transaction Code RSA1
1. In the Replicate Metadata dialog box, choose Only Activate.
2. If a message appears that you are only authorized to work in client ... (Brain 009) refer to SAP Note 316923 (do not import the support package, but use the description under section Workaround).
2.3.5 Creating an RFC-User (SAP BW)
Procedure
To carry out the activity, choose one of the following navigation options:
SAP BW Role Menu Creating RFC User
Transaction Code SU01
SAP BW Menu Tools Administration User Maintenance Users
Then carry out the following steps:
1. On the User Maintenance: Initial Screen screen:
a. Enter the following data:
Field Entry
User RFCUSER
b. Choose Create.
2. On the Maintain User screen:
a. Choose the Address tab.
b. Enter the following data:
Field Entry
Last Name RFCUSER
Function Default-User for RFC connection
c. Choose the Logon data tab.
d. Enter the following data:
Field Entry
Password LOGIN
User type System
e. Choose the Profiles tab.
f. Enter the following data:
Field Entry
Profiles SAP_ALL , SAP_NEW and S_BI-WHM_RFC
g. Choose Save.
Do not change the password of this user as it is used in RFC connections.
2.3.6 Define RFC-USER as default (SAP BW)
Procedure
To carry out the activity, choose one of the following navigation options
SAP BW Role Menu Define RFC-USER as default (SAP BW)
Transaction Code RSA1
SAP BW Menu Modeling Administrator Workbench: Modeling
1. On the Administrator Workbench: Modeling screen choose Settings Global Settings.
2. In the Global Settings/Customizing dialog box choose Glob. Settings.
3. On the Display View u201CRSADMINA Maintenance Viewu201D: Details screen:
a. Choose Display Change.
b. Enter RFCUSER in the BW User ALE field.
c. Choose Save.
Hope this helps in solving u r problem
Regards
Ramakrishna Kamurthy -
system copy : how to backup your rfc connections, partner profiles (we20) amd ports in IDOC processing (we21) ???
Hi forum,
if you want to copy your production system to your quality assurance system you can export users and later on reimport
it to save work. That's good.
But how about RFC connections, partner profiles and ports in IDOC processing ? Anyway to export and reimport it later on ?
Thank you for your help.
Kind regards
O.EggertHi forum,
in the meantime I found out how to handle this matter. May be this solution is not very elegant, but it works.
As for RFC-Connections there are several tables beginning with rfc. e.g., rfccheck. But 4 of it only differ from one system
to the next. These are rfcdes, rfcdoc, rfcattrib and rfccheck. What I did is the following : I used
brspace -u sapsr3/<password> -f tbexport -t "RFC3"
and quite simply exported these tables. Then I deleted some of the RFC-Connections, both ABAP and TCP/IP. After reimporting
what I exported before all these destinations were availlable again. As for ABAP the password had to be reentered but this
can be avoided, too. Have a look at transaction /nsecstore. The tables behind it are RSECTAB and RSECACTB, rspectively.
Export it after having exported the rfc* tables and reimport it after having reimported the rfc* tables. Very important : enable
the option "consistent export" !!!
It worked this way although there might be better and more elegant solutions.
As for transaction we20 check sap not 182172.
Hope that I could be of profit to this forum.
Kind regards
Olaf Eggert
p.s.
import command : brspace -u sapsr3/<password> -f tbimport.
Them select what you exported before. -
RFC Error:Error When opening an RFC Connection
Hi All,
When im trying the following, RFC error is thrown:
TCODE DSWP->EDIT->Fetch SAP Components
The Error is:
RFC Error:Error When opening an RFC Connection
Also I have checked in SM59, the following 3 RFC Connections are throwing error:
SAP-OSS
SAP-OSS-LIST-O01
SAPOSS
Kindly suggest me to do the workarounds.
Thanks and Regards,
FaisalHi Raguraman,
Following is the error text for RFC Connection SAP-OSS
Logon Connection Error
Error Details Error when opening an RFC connection
Error Details ERROR: timeout while pending for route completion
Error Details LOCATION: SAP-Server SMGDCS1S_D18_01 on host SMGDCS1S (wp 1)
Error Details DETAIL: NiErrSet
Error Details COMPONENT: NI (network interface)
Error Details COUNTER: 3
Error Details MODULE:
Error Details LINE:
Error Details RETURN CODE: -12
Error Details SUBRC: 0
Error Details RELEASE: 700
Error Details TIME: Fri May 02 00:33:48 2008
Error Details VERSION: 38
Kindly do the needful.
Regards,
Faisal
Maybe you are looking for
-
BPM problem with correlation/loop
Hello, I have created a scenario in which I am sending file(using flat file conversion) to BPM to do a collect and send out to external system. I have set up a loop which should exit out when counter ="2." Within the loop, I have my receive step,
-
Can I re-download songs that I've already paid for?
I lost my harddrive with my main iTunes library and my backup was a couple months old (I know, I know, stupid move). Anyway, can I re-download the songs that I'm missing that I've already paid for (and still have the elecronic receipts)? Thanks in ad
-
Safari not playing video after iOS 6
Since iOs 6 upgrade none of our iPhones (4 & 4s) nor our two iPads will play the mpeg video from our ip webcams. Worked perfectly before, now safari just sits there with the little activity circle going round and round. The cameras can be accessed as
-
When selected, the FireFox tab at the extreme leeft of the screen gives a dropdown with two colums. The right hand colums includes History, but, when selected, only gives the history of the day, whereas earlier versions gave the histories of that day
-
Free the contentes of alv tree
how to free the contents of alv tree?