RFC call through JCo or webservice
Can anybody point differences(advantages/disadvantages) between a)calling a BAPI using JCo b)creating a web service for the RFC and calling the webservice fron WD application.
regards,
Bhupesh
Hi Bhupesh,
Jco is written in java and it convert the java calls into the native ABAP calls ..so comunication is done between a java program and r/3 system through the JCo.....if the BAPI is exposed as a webservice ..then the processing language use is XML and SOAP protocol any language which can create and process XML can communication to BAPI(r/3) system...like java,dotnet etc....else u need a middleware like JCO which can convert java calls to abap calls for that language ...and now a days ....XML is commanly used by most of the Internet technologies...
hope this will clear ur doubt.
Regards,
yash
Similar Messages
-
RFC call failed: JCO.Server could not find server function 'SET_SLD_DATA'
Hi, All
the system is PI 7.0 EHP1 oraclei Win2003 server, I configured SLD but I run RZ70, having error "RFC call failed: JCO.Server could not find server function 'SET_SLD_DATA' ". I know there are lot of tread about this error, but none of themsolve my problem. all JCO, RFC connections and SDL DATA supplier(VA) seem OK. error message in SM21 is "Could not send SLD data"
detail from SM21
The system could not send the data that has been collected automatical
for the System Landscape Directory (SLD). Check whether the gateway
configured in transaction RZ70 has been started and whether the SLD
bridge has been registered with this gateway.
You can use transaction SM59 to check this in the sending system for t
implemented RFC destinations. The RFC destinations have the standard
names "SLD_UC" for Unicode sending systems and "SLD_NUC" for non-Unico
sending systems. If a different RFC destination has been entered in
RZ70, check this destination instead.
You can use the Gateway Monitor to check the target gateways. In ABAP
systems, this monitor is started with transaction SMGW, or you can use
the external SAP program "gwmon". Check whether the specified gateway
has an active registration.
OF COURSE I checked RFC of SLD_UC and SMGW
any different ideas
Regards
ABHHi
Please check the following notes are implemented
Note 906454
Note 907729
You may be aware but if you are not --->RZ70 creates the required SLD* RFCs during runtime - therefore if you have defined these RFCs manually first using the same namespace you can get RFC conflicts which result in a failed submission
Please also check the user in the RFC is known to both systems and has required authorization to write to SLD
Generally with SLD you have to install or select a suitable gateway to handle incoming data supply traffic
Also the gateway you are using has be known to SLD and reflected in RZ70 - i.e these defintions have to be the same
It is also recommended to delete all references to SLD_* RFCs in data supplier and target SLD
after a failed submission attempt to allow RZ70 to recreate these consistently once the above has been checked
Best wishes
Stuart -
Multiple (parallel) RFC Calls through one connection?
Hi SAP gurus,
Is there a possibility for parallel RFC calls through one open connection via one SAP system user?
As I know when calling RFCs it opens a new session and the dialog users have only 6 sessions permitted.
Do you know any possible solution for this?
Thanks a lot in advanceIs this question about the SAP StreamWork APIs. I think you have posted to the wrong forum.
-
RFC Call through BSP - Issue with RFC logon credentials
Hi everyone,
I have an BSP application running on a 6.40 which calls a RFC function module on a backend system (4.6c) using a trusted RFC connection.
The BSP is started with an URL which contains in encoded form the username and password. So we don't use the standard sap-username & sap-password.
In the first step the user is logged in with the anonym user (user type 'service') which is entered in the SICF. So sy-uname = 'anonym'.
After a couple of checks and verifications the BSP makes a user switch using 'SUSR_INTERNET_USERSWITCH'. Exporting parameters are the now decoded values from the URL. So after the switch sy-uname is e.g. 'blabla'.
Now a function module on the backend system is called. What I would now expect is that on the backend system sy-uname is also 'blabla'. But it isn't. The sy-uname is still 'anonym', which isn't very helpful regarding object authority checks.
Only after an reload of the BSP page and a second RFC call of the function module the sy-uname = 'blabla'.
I wonder what causes this problem?
Thanks for your replies & regards
KrunoHi,
I solved it.
Before I execute function 'SUSR_INTERNET_USERSWITCH' I first check if user has a valid backend account by using function module 'BAPI_USER_EXISTENCE_CHECK'.
And this is the problem. When 'BAPI_USER_EXISTENCE_CHECK' is executed once all other RFC function calls to the backend get the wrong user.
Why? I don't know yet. Maybe I will get an useful anwer from an OSS note. -
Hi ,
Can we do a RFC call from a system having WAS to another R/3 system not having WAS installed.
Regards,
DivyanshuHi Divyanshu
here is the code for RFC. Its the same as calling a function module. You have to just specify the RFC destination name here it is 'ABC'. RFC destination you can create thru SM59
CALL FUNCTION 'ZTM_TI_CREATE' destination 'ABC'
EXPORTING
STARTDATE = strtripbegin
STARTTIME = strstarttime
ENDDATE = strtripend
ENDTIME = strendtime
FIRSTDEST = watidisp-arrival
COUNTRY = strcountry1
REASON = strreason
CASHADVANCE = strcashadvance
CASHCURR = 'INR'
BANKADVANCE = strbankadvance
BANKCURR = 'INR'
EMPLNO = employeeno
IMPORTING
REINR = watripno
TABLES
MESSTAB =
ADDDEST = adddest
Regards
Naresh -
Hi,
Iam trying to build a scenario like this. WMQSeries->XI 3.0->SAP R/3--->WMQSeries.
Can someone please tell me whether my approach is right or wrong.And the steps iam missing.WMQ>XIBPM>R/3>XIBPM>WMQ.
Totally created 5 interfaces.
MQ Request -->Refering to MQ Request Message Type
MQ Response -->Refering to MQ Response Message Type
BAPI_SYNC_ABS -->Refering BApI Request and Response
BAPI_REQUEST_ABS -->Refering BAPI Request
BAPI_RESPONSE_ABS.-->Refering BAPI response.Last 3 Abstract Interfaces created from the BAPI imported to XI.
Created 2 Interface Mapping Between MQ Request <> BAPI_REQUEST_ABS and BAPI_RESPONSE_ABS<>MQ Response.
Created Integration Process with 3 steps(Async Receive, Syc Send to SAP, Asyc Send to WMQ) and
created 2 container elements for hoding BAPI_REQUEST_ABS and BAPI_RESPONSE_ABS.
In ID, created 2 service's of type business service one for sending&receiver of MQ Request&Response and second one for SAP system.
Created 3 ReceiverDeterminations,3 Interface dterminations, 1 Sender Agreement and 2 Receiver Agreements.
When i send the message from WQ, it goes through BPM well, after that iam getting error in Receiver determination.
Can anyone please tell me when am doin worng??? I did go through the weblog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
NavinHi,
we have the same requirment and run into the same problem.
We stuck at the point where the response message from the
RFC has to send back to MQ.
It must link the conversation ID to the Response message.
There we need the possibility to set the ConversationID
into the response message. The ConversationID is taken
from the Request Message.
The problem is how to set the field ConversationID or
RefToMsgID in the Mapping or BPM. Could it be done via
Java or ABAP-Maping?
Is the header field only readable and can not be set
in the mapping? Maybe somebody have ane idea or a solution.
thanks,
Ly-Na Phu -
How to cancel a RFC transaction called thru JCO
Hi,
One of my customer developed one application which access RFC module through JCO connection.
The development tool is 'MiPlatform' which is local solution in Korea.
Normally the application works fine.
But in case the back-end processing takes time and the user want to cancel the processing, they did not make it properly and there come a problem.
So can anybody guide them how to do or which document they need to see to cancel backend processing properly which invoked through JCO?
Or what information do I need to provide additionally?hi
good
go through this link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
thanks
mrutyun^ -
A upper/lower sensitive problem on RFC call
hello, everyone.
Maybe it is not the proper forum to discuss this topic, but I think the ABAP programinig Forum is the best forum in SDN, which has the most vistors.
So please help me solve this problem, if possible.
I meet a problem on RFC call through dotnet connector.
There is a RFC deploy on the R3 server.
And a portal application using dotnet connector to call the RFC from web side.
The problem is when input some string like 'AbCdEf' from web side, transfer to the sap side, the RFC always get the string like 'ABCDEF'.
I think it dues to the auto upper convert by the RFC call, and if in SE37, we can check the upper/lower box to solve it.
But how can I solve it in this portal case?
Can I get original string in the RFC side?
How we can get the string as the original content 'AbCdEf' in RFC side?
any suggestion is welcome,
and I'm waitting for your answer, thanks a lotHi zhenglin,
To expand on what Siggi said, fields in the structures of your RFC parameters are based on data elements which in turn are based on domains.
An attribute on the domain is "Lowercase'. Unless this is checked, the field will always be treated as uppercase, and you will get the effect you described.
Please check the domain of the field in question, to ensure that the "lowercase" flag is checked.
Cheers,
Brad -
ABAP process hangs when calling a jCO Server J2EE-available RFC
Hi there
Here's the scenario:
We have deployed a jCO server under the SAP WAS. This jCO server implements two functions. They are both called from ABAP process through RFC. We are using the same RFC destination for both
First function is defined with import/export parameters and the second one only operates with a TABLE parameter.
Incidentally, these functions are captured by the jCO server, which calls an IBM MQ server
First function works fine. Second function hangs and there is not even a timeout so the ABAP process (run on foreground) can stay forever.
The interesting part is that the same application works really fine when called from a Tomcat using a standalon instance of the jCO.
Additional info:
We have noticed that some time after the second function gets called, there are five dumps on the system (the same amount of servers we make available). These are CALL_FUNCTION_SIGNON_REJECTED.
The fun part of the dumps is that the user making the RFC call is a different user that the one we use for the jCO connection, and the client number is '000', instead of the '728' we are using for the connection. Somehow they seem related but we do not know how yet:
Short text
You are not authorized to logon to the target system (error code 1).
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPMSSY1" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
RFC (Remote Function Call) sent with invalid
user ID "%_LOG01% " or client 000.
User "ARINSO " under client 001 from system "SMD " has tried to carry out an
RFC
call under the user ID "%_LOG01% " and client 000 (Note: For releases < 4.0,
the
information on caller and caller system do not exist.).
Call Program........."SAPLSMSY_ACTUALIZE_DATA"
Function Module..... "SCSM_SYSTEM_LIST"
Call Destination.... "SM_ET7CLNT000_READ"
Source Server....... "sapwasmd_SMD_10"
Source IP Address... "172.17.82.80"
Termination occurred in the ABAP program "SAPMSSY1" - in
"REMOTE_FUNCTION_CALL".
The main program was "SAPMSSY1 ".
In the source code you have the termination point in line 67
of the (Include) program "SAPMSSY1".
Any tip or suggestion on where to look at is more than welcome
Thanks in advance,
MiguelAnd this is the content of the defaultTrace.0.trc log from the WAS
1.#005056AB04C500440000000200002B0000046B495CA1AF67#1243862737727#com.sap.caf.um.relgrou
ps.imp.principals.RelGroupFactory##com.sap.caf.um.relgroups.imp.principals.RelGroupFactor
y.RelGroupFactory()#######SAPEngine_System_Thread[impl:5]_13##0#0#Info#1#/System/Server#P
lain###sap.com caf/um/relgroups/imp MAIN_NW701P03_C 2846629#
#1.#005056AB04C500240000000100002B0000046B495CCDAAFB#1243862740608#com.sap.engine.library
.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
isterNode</Kernel/System Threads Pool/WaitingTasksCount>: com.sap.engine.library.monitor.
mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for node'/Kerne
l/System Threads Pool/WaitingTasksCount' (MANAGERS.SThreadPool.WaitingInRequestQueueCount
, max. 40 characters)#
#1.#005056AB04C500240000000200002B0000046B495CCDB4CC#1243862740612#com.sap.engine.library
.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
isterNode</Kernel/System Threads Pool/WaitingTasksQueueOverflow>: com.sap.engine.library.
monitor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for nod
e'/Kernel/System Threads Pool/WaitingTasksQueueOverflow' (MANAGERS.SThreadPool.Waiting4Fr
eeReqQueueSlotCount, max. 40 characters)#
#1.#005056AB04C500240000000300002B0000046B495CCDCDA1#1243862740618#com.sap.engine.library
.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
isterNode</Kernel/Application Threads Pool/WaitingTasksCount>: com.sap.engine.library.mon
itor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group for node'/
Kernel/Application Threads Pool/WaitingTasksCount' (MANAGERS.AThreadPool.WaitingInRequest
QueueCount, max. 40 characters)#
#1.#005056AB04C500240000000400002B0000046B495CCDD69B#1243862740620#com.sap.engine.library
.monitor.mapping.ccms.Trace##com.sap.engine.library.monitor.mapping.ccms.Trace####n/a##b3
89a8004eaf11dec9b7005056ab04c5#SAPEngine_System_Thread[impl:5]_39##0#0#Error##Plain###Reg
isterNode</Kernel/Application Threads Pool/WaitingTasksQueueOverflow>: com.sap.engine.lib
rary.monitor.mapping.ccms.CcmsConnectorException: 2100850: Invalid configuration group fo
r node'/Kernel/Application Threads Pool/WaitingTasksQueueOverflow' (MANAGERS.AThreadPool.
Waiting4FreeReqQueueSlotCount, max. 40 characters)#
#1.#005056AB04C500600000001600002B0000046B4960688301#1243862801089#com.sap.slm.exec.messa
ge.SLMApplication#sap.com/tcslmslmapp#com.sap.slm.exec.message.SLMApplication#Guest#0##
n/a##c59827604eaf11de9fb3005056ab04c5#SAPEngine_Application_Thread[impl:3]_0##0#0#Error##
Java###null##
#1.#005056AB04C500730000000000002B0000046B4CF0593ABD#1243878100908#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain###com.sap.mw.jco.JCO$AbapException: (126) 1: Array index out of rang
e: 48#
#1.#005056AB04C500730000000100002B0000046B4CF0594028#1243878100909#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at com.efh.jco.valtran.sap.ValtranRequestHandler.serverExceptionO
ccurred(ValtranRequestHandler.java:164)#
#1.#005056AB04C500730000000200002B0000046B4CF059406B#1243878100910#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at com.sap.mw.jco.JCO.fireServerExceptionOccurred(JCO.java:880)#
#1.#005056AB04C500730000000300002B0000046B4CF05940A3#1243878100910#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.listen(JCO.java:8187)#
#1.#005056AB04C500730000000400002B0000046B4CF05940DB#1243878100910#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.work(JCO.java:8303)#
#1.#005056AB04C500730000000500002B0000046B4CF0594111#1243878100910#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.loop(JCO.java:8250)#
#1.#005056AB04C500730000000600002B0000046B4CF0594143#1243878100910#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at com.sap.mw.jco.JCO$Server.run(JCO.java:8166)#
#1.#005056AB04C500730000000700002B0000046B4CF05941F0#1243878100910#System.err#arinso.com/
valtran_validator#System.err#Guest#0##ET7#MIGUELGU #4A240FF606CD5E
5AE10000000A38418C#Thread[JCO.ServerThread-11,5,SAPEngine_Application_Thread[impl:3]_Grou
p]##0#0#Error##Plain### at java.lang.Thread.run(Thread.java:770)# -
Asyncronic JCO RFC call from JAVA to ABAP
Hi,
Please could you provide a sample java code to establish JCO RFC call to ABAP?
Thanks.Hi Denis,
Import the model In NWDS for ABAP for RFC.
Please check here [Accessing ABAP Functions using the Adaptive RFC Model |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a00f7103-6790-2a10-ac9c-fcac7c5b18a3?quicklink=index&overridelayout=true]
[Web Dynpro Model: Backend Access|http://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/webcontent/uuid/403e6bf5-426e-2910-b0a8-a95548724af9#section10 [original link is broken]]
Also check here /docs/DOC-8661#section10 [original link is broken]
Hope it helps,
Redards,
Arun -
User Name and Password for JCO RFC call to BAPI
Hi all,
What I think I know:
--We do NOT have Single Sign On configured so don't tell me to use SSO please - I agree, but...
--We have a requirement to do a goods receipt which prints labels for the handling units
.....The printer to which the labels are directed depends on the user who is running the transaction
What I think this means
--We will need to specify a user name and password in the RFC call so the label will go to the correct printer
--I cannot use the IllumnLoginPassword (or whatever its name is) for the password
--I need to prompt the user for their password a second time after they login to our MII app
The problem
--I will need to store the password somewhere for the duration of the session
......In session variable that has been encryted
.............I didn't see an encryption action block so I could create my own
......In the database using database column encryption
.............A little bit of a pain, but not too bad
Any corrections, alternatives, ideas .... ???
Thanks,
--Amy Smith
--HaworthThanks for the attention guys. A little clarification.
1. I have been assuming that I cannot use the IllumnLoginPassword for the JCO SAP password in the action block. If this is NOT true, then it solves my whole problem.
2. It would not work to prompt a shop floor person for their password every time they do an operation completion. Well, at least
if I don't want to not get lynched!
3. I am planning on prompting people every time they log on for their ECC password and retaining it somewhere secure while they are logged on (and longer if they skip the logoff step.)
4. I have been focusing on how/where to retain the password, but also need a way to encrypt it during transmission. Jeremy said the applet/BLS would at least encode it for me. That is good.
--Amy Smith
--Haworth
Edited by: Amy Smith on Feb 18, 2010 1:30 PM -
RFC calls with SAP JCO and IBM resource adapter for SAP - basic tuning
Hi experts,
we are working on a java portal connected to a backend system SAP by calling RFCs.
On our first integration tests, it appears to be quite slow fetching data from SAP by calling the remote functions from the custom portal. We are using SAP JCo 3.0.6 and IBM resource adapter for SAP 7.0.0.3 to integrate SAP with our portal.
Is there any basic tuning to achieve to improve performances or any hint of where to tune in SAP ?
Any help would be greatly appreciated.
Thanks a lot,
JamalHi Jamal,
I understand you have already checked performance issues in the SAP Server. We had some problems with certain RFC calls and it turned out to be a badly developed ABAP sentence.
I'd recommend you to use httpwatch or another tool to check the response times from the browser, so you can point accurately where the is.
Regards
Francisco -
Executing Workflow through RFC Call
Hi,
I need to execute a worklow in one system through an RFC call from another system . Is this possible?
If yes, then what all parameteres do I need to do so and what all steps are involved.
Regards,
DivyanshuHi Divyanshu,
It is best not to start workflows directly but rather by using events. Usually a WF will have a triggering event defined, such as EMPLOYEET.POSITIONCHANGED. Look at the WF header for the trigger.
You can remotely raise this event using FM SAP_WAPI_CREATE_EVENT. Pass it the object type, key and event name and any other parameters. It even has some documentation.
Cheers
Mike -
Urgent: Debugging through RFC call
Hi,
I am debugging between two systems - CRM and ECC. At one point in the CRM system, a BAPI which is available in the ECC system is being called through RFC. When I press (F5) at the BAPI call, the control does not go inside but executes the BAPI and moves on to the next statement in the CRM statement.
Can you please tell me how can I enter the code inside the BAPI during debugging?
Helpful answers will be rewarded!
Thank you.hi,
if that's is the case then u just take that particular BAPI inputs form that CRM program while debugging then u can test that BAPI saperatly in se37 by giving those inputs, now u can get output of the BAPI and also u can dubugg the same BAPI.
reward points if useful,
seshu. -
Send data to ECC table through RFC Call function from SAP B1 via b1if
Hi,
I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
ThanksSolved by my own.
Maybe you are looking for
-
Custom report to work in different languages EN and ZH.
Hi, I wrote the report which has to work on languages EN and ZH(chinese language). It is working fine in EN, When I login with language 'ZH', the selecion screen is not displaying in Chinese language. Is there anything to do to display the selection
-
Continuous Error Message: Dell Support Center Has Stopped Working
I have Windows V8ista on an Inspiron530s. Through out any operation I continue to get the following massage: "Dell Support Center Has Stopped Working
-
Playbook Calendar no longer synching with Facebook
Hello, this was working before, but I deleted my facebook account from the Accounts manager ... then some days later I added it again and it shows up within Messages and Contacts, but within the Calendar application it shows up as an option, but I d
-
hi, kann jemand mich helfen? ich habe fast das selbe Problem wie http://www.tutorials.de/forum/j2ee/264251-hibernate-collection-mit-list.html habe eine bidirektionale many-to-one assoziation employee *-1 division benutze jsf(myfaces1.1 here nicht so
-
We have an iMac, an iPad that my husband and I share but 2 separate iPhones. Can we share our apple id so we share the same cloud?