Remote Persistency through RFC
Hi Experts,
I have created a CAF Application in which I am using external services of type RFC's to create and retrieve records from R/3,
But when I try to create record, I get the exception
<b>"com.sap.caf.rt.exception.CAFCreateException."</b>
Similarly when I try to read records I get
<b>"com.sap.caf.rt.exception.CAFFindException."</b>
Do anybody have any idea or suggestion,
Please reply.
Thanks in advance,
Deepak Gupta
Hi All
I too had faced a similar problem where I hd nt made JCo Connections..but I had hard time finding how to create them in CAF..So, for those who dont know how create JCo Connections, here's is the procedure :
1. Logon to CAF using your userId and password, for this you must have a CAF role assigned to you.
2.From the four options, choose "Administrative Tools"
3.In the next page, choose "External Service Configuration".
4.In the new browser tht popups, choose "Service Registry" from the panel present in left hand side.
5.Choose your Bapi from the SAP Remote Function Call table, if destinations had nt been created then it wont have a glowing bulb.
6.Press Open Definition
7.Now select the bapi from its root node from the tree structure displayed.
8.A Tab titled "Service Configuration" will be displayed wherein you can define the JCo destinations accordingly.
I hope this info is of great help to everybody.
Regards
Kapil
Similar Messages
-
Third party system call function module/BAPI through RFC to update Z table
Dear Friends,
We have a third party system which directly inserts a Z table in SAP through its programming, which is an auditing issue.
We want the third party system should call function module/BAPI through RFC so that the Z table gets updated.
waiting for inputs..
Thanks,
Kumarif third party system is capable of making Remote Function call, then writing a Function module & making it remote enable is not difficult task in ABAP.
You may have to prepare specifications first to decide if third party system is going to Read, insert, update, delete records from Zee table. -
Pulling Data from r/3 to BW through RFC connection
Hi Experts,
We have a requirement of replicating a custom report in R/3 in BW..
I have heard that we can pull the direct report from R/3 through RFC.
Could you please help me with regards to this.
Thanks in Advance ..This functionality is made with a "Remote cube".
You need to define a particular cube based on the RFC.
More info on how to...
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm -
Remote Persistency And Entity Services References
Hi Guys,
I try to build a composite service with remote persistency (via webservices). There are several tuturials explainig it:
81 Using a Web Service as External Service
85 Using RFCs as External Services
95 Implementing Remote Persistency with CAF and RFCs
This is no problem at all, when only using one entity service or several entity service with no relations to each other. But for an demo application I try to create two entity services ("Main" and "Sub") and the "Main" entity service should have a relation to "Sub".
What I try:
1.) Create the entity services "main" with an own id.
2.) Create the entity services "sub" with an own id.
3.) Open the attributs for main again and create an relation to the entity service sub (via add button).
4.) deactivate "local persistency" for every entity service
5.) create the mapping for the read and find by operations.
But how can I "teach" my application the relation between these entity services? A look into the sql database shows an empty relation table and the pattern "relation tab" is empty, too.
I try to create a findby operation for the entity service "sub" like "findByMainID". But the attribut list only shows attributs of the "sub" entity service.
Are entity service relations working with remote persistency?
Kind regards
MartinHi Austin,
thank you for you answer. But the findBy operation is only one problem. The main problem is the missing option to map a webservice to a reference/relationship. Due this fact the application has no chance to know which child record is part of which main record or which main record is parent of which child record. As a result I have two totaly isolated entity services which doesnt know, that they relate to each other. The application has no information about the relationship.
When I create only one entity service with a complex attribute for child attributs I didn't have the these problem. I could map parameters to the (parent) attributs of the entity service and the (child) attributs of the complex attributes in the same step. In this way the application have informations about the relationship between parent and child records. For example a web service for the read operation could return exactly one record for the attributs of the parent entity service and a list of records to the child attributes (modelled as complex attributs) in case of a 0...n cardinality. I think there must be a solution like this for two entity services with a relationship between each other.
Do you understand my problem? Maybe I've missunderstood something. But what?
Thank you
Martin -
Function Module to Insert Source Code through RFC
Hi,
I have a Requirement to Insert the Source code to Remote System. I know it is possible in local system with syntax 'INSERT REPORT' . But I want to insert source to Remote system . Is there any Function Module through which I can Insert Source through RFC ?
Regards,
SachinMaen Anachronos wrote:
Despite Mat's warning you still want to proceed?
There's no teaching some people. If the client wants there system wide open to abuse, that's up to them. What will they do if someone uses the function module to send a program that does something like this?
DELETE t000 WHERE mandt NE space
So, here's some more rope, and further demonstration of the huge risk.
You want to create a program dynamically, with a name of your choosing. Simple, send the FM the source code of a program that generates the program you want, with the fixed name. I suggest SAPMSYST as a really good one to play with. -
File to RFC, and through RFC response i am trying to trigger the Mail adapt
Hi All,
Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
Till now i am not using BPM, can we do this without BPM pls let me know
now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
or else i need use only BPM pls share the steps which i need to be configure.
Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
Thanks in advance
VenkatWith BPm, follow this:
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Instead of receiving the response in file, use mail adapter
Regards,
Prateek -
Hi ,
I am trying to do a call transaction through RFC call from a Middleware which is a CPIC user (only communication Non dialog User ) .
Call transaction does gets executed without any error but it does not update any data.But when I run it through my user id it works absolutely fine .
I am not sure what is causing the issue
Security authorization?
RFC through Non Dialog user ?
Paramters missing in RFC ?
Paramatertes missing in call transaction option?
If anyone of you has faced a similiar issue then please let me know the path forward.
Thanks
VikasHi Vikas,
The problem is in Authorization? And check the mode of Process Synchoronus or asynchoronous? Both the RFC and CALL transaction should be Same /
Thanks
MAnju -
Upload and Download file through RFC called by java
We are trying to download/upload file through rfc function called by java(JCO),In the rfc function,we use WS_DOWNLOAD,but it does not work.
Any one know about this,Please help ,thanks very much.
Message was edited by: gw gwHi gw,
This question looks a little confusing to me.
WS_DOWNLOAD is used to download files from SAP to the presentation server (your PC). It will not work through RFC.
BUT, also if you want to access a function module via RFC is must be RFC enabled (as Anand pointed out).
AND WS_DOWNLOAD uses a PUSH approach. It pushes a file to the PC from ABAP. So even if the two points above weren't a problem it still would not be suitable for what you are doing.
Perhaps you could explain a little what you are trying to achieve.
Cheers,
Brad -
How to find the local system name in remote desktop through oracle
Hi all,
i am useing oralce 9i,D2K (Forms 6i) ,Presently i had a small problem when ever i am useing the application through the remote desktop i can not able to find the local system name .If i am accessing from the local system name then i can get the system name but when the user accessing the application through remote desktop i want to find from which local system he is accessing the remote desktop through the application is there any way to find it .If please let me know .
Thanks in advance
SriniHi,
Not sure of what you want.
Have a look at v$session view. Machine column is maybe what you're looking for.
If you want to retrieve the local host executing remote desktop, it's actually not possible natievely, since it's still remote host that is connecting to the database.
Hope it helps. -
BDC is not working in through RFC call
HI,
i have created BDC for MM41 to create article with variants, its working fine in fore ground, when i am trying to call this through RFC it is failing. please help me on this.
i have passed ctu_params also.Hi,
I dont know your complete scenario but you if you want to use your BDC in some other program you can use statement
export your itab or wa to memory id 'ZID'.
AND THEN
IN YOUR BDC PROGRAM YOU CAN
IMPORT ITAB INTO ITAB FROM MEMORY ID 'ZID'.
Submit <your bdc program> and Return.
Regards,
Edited by: ZAHID HAMEED on Nov 3, 2011 10:38 AM -
CATCHABLE EXCEPTIONS in the remote function call (RFC)
Please tell me what are the CATCHABLE EXCEPTIONS in the remote function call (RFC) and to which exception class do they belong????
Thanks in advance.
Dinesh DhimanHI,
With external function calls, the EXCEPTIONS addition of the CALL FUNCTION command can be used to assign return values to the exceptions defined in the interface of the called function module. Class-based exceptions cannot be propagated to the caller from a remotely-called function module, and have the effect of an exception that cannot be handled.
As well as the exceptions defined in the interface of the called function module, an external function call can also have the following predefined exceptions:
The <b>SYSTEM_FAILURE</b> exception is the response to a runtime error that occurs when the remotely-called function module is executed.
The <b>COMMUNICATION_FA</b>ILURE exception occurs when the connection to the partner system cannot be established or if the connection is lost during communication.
Note
We strongly recommend that you assign a return value to both these exceptions for every RFC, and that you handle this return value, as otherwise a runtime error will occur in the exception situations in question.
Regards,
Sesh -
Remote enabled BAPI/RFC to create VACANCY in Recruitment
Is there any Remote enabled BAPI/RFC to create VACANCY in Recruitment?
I need to create VACANCY from external .Net program.
Thanks.closing to post another question
-
Copying Files From a Remote Machine through "rcp" command not working.
Hi All,
I'm a new comer to this famous forum. I was trying to go through the PDF "Solaris Advanced User's Guide" .So in chapter 9-"Using the network" i came across "Copying Files From a Remote Machine". And the syntax was "rcp machinename:source destination" . And i got another note. It is like
"The rcp command enables you to copy files from one machine to another. This command uses the remote machine's /etc/hosts.equiv and /etc/passwd files to determine whether you have unchallenged access privileges. The syntax for rcp is similar to the command syntax for cp.".
But i maintained remote machine's IP address in my system's /etc/hosts file. But still i am unable to do the rcp from remote system to my system or vice versa.
Always i am getting error message " **Connection refused**".
Therefore please some one guide me how to perform the " Copying Files From a Remote Machine" through rcp command.
Reghards
KartikHi
The inconvenience of using scp is that you have to type the password every time you stablish a connection. You can work around this, adding a key into the remote hosts_allow file. This implies in more maintenance.
From the rcp man page:
+rcp does not prompt for passwords. It either uses Kerberos authentication which is enabled through command-line options or your current local user name must exist on hostname and allow remote command execution by rsh(1).+
From the rsh man page:
+ If you omit command, instead of executing a single command, rsh logs you in on the remote host using rlogin(1).+
By default, rlogin is disabled on Solaris 10
[SunOS 5.10/bash] root@wgtsinf01:/store/sun/operating-systems
# svcs -a|grep -i rlog
disabled May_11 svc:/network/login:rloginSo, to use rcp you have to enable the rlogin service and set up all the configuration files. Particularly, as already suggested, I too suggest you to use scp. :)
Cheers
-- Andreas
Edited by: Bank_Of_New_Zealand on 15/06/2009 13:09 -
Changes don't reflect using BAPI_PROJECT_MAINTAIN through RFC adapter
Hi,
I am working on a Integration Scenario in XI. In this I am executing BAPIs through RFC adapter. I am using BAPI_PROJECT_MAINTAIN to create WBS Elements in Project System. After creating WBS Elements when I try to define the hierarchy, the BAPI calls executes successfully but the hierarchy is not visible when viewed in the SAP WEB GUI.
I am using following parameters to define WBS hierarchy:
*IMethodProject
OBJECTTYPE = WBS-HIERARCHY
METHOD = CREATE
OBJECTKEY =
REFNUMBER =
OBJECTTYPE =
METHOD = SAVE
OBJECTKEY =
REFNUMBER =
*IProjectDefinition
PROJECT_DEFINITION = P-0300-00-04
*IWbsHierarchieTable
WBS_ELEMENT = WBS-001
PROJECT_DEFINITION = P-0300-00-04
UP =
DOWN = WBS-002
LEFT =
RIGHT =
WBS_ELEMENT = WBS-002
PROJECT_DEFINITION = P-0300-00-04
UP = WBS-001
DOWN =
LEFT =
RIGHT =
In normal case the WBS element 'WBS-002' should move below 'WBS-001', but when I execute BAPI with above parameters, the Hierarchy is not visible in the GUI the both WBS Elements remain at root level, even I get '000' as response with no errors.
When I run the BAPI through transaction SE37 with same parameters as above, the changes are visible in the GUI.
Can anyone please tell what am I missing here.
Thanks & Regards,
AjayHi Ajay,
I understand the problem this way, when u do something thru XI you dont see the effect (even if the the transaction is successful), whereas when it done is directly in the R/3 you can see the output.
look into the below
- check if your XI user is having necessary authorisations (you can do this by enabling the trace in ur R/3 - back end system)
- check if you are passing the input properly in the XI. (like field formats, padding characters, prefixes etc)
Hope this helps to fix ur issue
Regards
Vishnu -
Remote enabled BAPI/RFC to upload a Resume
Is there any Remote enabled BAPI/RFC to upload a Resume and how to assign it to Applicant ?
I need to upload Resume from a .Net program and assign it as attachment or otherwise to Applicant.The reason for posting it here is this:
I used Remote Enabled FM BDS_BUSINESSDOCUMENT_CREATEF to create an attachment (.DOC word document) to APPLICANT Object. It works fine when executed from SE37.
When I execute(call) from .Net code, I get exception "ERROR_KPRO".
So I am looking for ANY way to attach or send Resume document into SAP and some how associating it with APPLICANT object, either by solving ERROR_KPRO or by suggesting any other way...
Thanks for the response
Maybe you are looking for
-
Multiple users draw at the same time
Hello there, I am very sorry if this is the wrong place for posting this question. I am trying to create a java2D application where multiple users can collaborate to draw on canvas (at the same time from two or more machines). The first user should a
-
I can't play my burned purchased CD's
I have purchased over 60 songs from iTunes and I can't burn any of them. It shows them as burning and I can play it on my computer but I can't play it on any other CD playing device. I tried burning CD's with songs that weren't downloaded and it won'
-
Java Stored Procedures make OS calls
Can java stored procedures make calls to the operating system?
-
Invoicing plan in SRM Purchase Orders
Hi, Where do you set up an invoicing plan in ECC: at PO/Purchasing level or only at invoice level? How do I create invoicing plan in SRM? Thanks in advance!! Sumendra
-
Hi in my scenario i had got the status using idoc_read_completely FM now have to get the idocs of status 51 0r 68 alone and proceed further.For this how to code