RFC call to other R/3 system

I have to execute ztransaction from BW to R/3.
User don't want to logon to R/3.
REPORT  ZRFC.
data : ZDEST like RFCDES-RFCDEST.
data : ztcode like TSTC-TCODE.
zdest = 'TEST1200'.
ztcode = 'ZME21'.
CALL FUNCTION ZTCODE DESTINATION   ZDEST.
or call transaction ?
ADVANCE THANKS

I have created Remote enabled function module in R/3
FUNCTION ZRFC_CALL.
CALL transaction  'ZME23N'.
ENDFUNCTION.
bw SIDE
REPORT  ZRFC.
data : ZDEST like RFCDES-RFCDEST.
data : ztcode like TSTC-TCODE.
zdest = 'TEST1200'.
ztcode = 'ZRFC_CALL'.
CALL FUNCTION ZTCODE DESTINATION   ZDEST.
i AM GETTING THE ERROR "CALL_FUNCTION_REMOTE_ERROR"
aDVANCE THANKS

Similar Messages

  • RFC Call from PI freeze ECC system

    Hello experts,
    we actually load master data in our ECC environment that are sent to the PI environment via IDOC, the integration of those IDOCs in the PI system make RFC call in ECC and after a few minutes, the ECC system freezes.
    All dialog process are occupied with report SAPLARFC/SAPLERFC/SAPMSSY1 with user PI2ABAP and WF-BATCH.
    We have increase the number of dialog processes, reduce the parameter rdisp/rfc_max_own_used_wp to 50, but each time all the dialog processes are taken until the system freezes.
    DO you know which parameter can restrict the number of dialog process used for RFC call?
    or maybe a method to avoid this high consumption of all dialog processes in the ECC environment?
    Many Thanks.
    Thibaud.

    Hello Juan,
    we have set this parameter to 3, but it seems to have no effect, I have applied the note 3223 that affects
    - rdisp/wp_ca_blk_no (for wp_ca blocks)
    - rdisp/appc_ca_blk_no (for appc_ca blocks)
    but now we have a problem at the start of the instance that does not support the new value and lead to the error
    Shared Pool Space exhausted.
    How can i check this value and can I modify it?
    Thanks.
    Thibaud.

  • RFC call to other ABAP stack

    Hi Experts,
    I created a custom RFC function in ABAP stack of different client.
    Created port destination from current client to different ABAP client.
    How can i call the cusotm RFC in current client?
    I need data from other client to current system....
    Thanks
    Giri

    ok for more detail:
    1. Client 800
    created RFC Z_TEST
    2. Client 810
    Created TCP/IP port destination for 810 to 800
    Created report:
    Report ZTEST.
    CALL FUNCTION ' Z_TEST' DESTINATION 'RFCTEST'.
    I am getting above error.
    I need some data which is in 800 to 810 client.
    what is the way to do it?
    Giri

  • RFC calls with SAP table insert - lock tables

    Hi,
    I have an external server program, which is calling a rfc function many times the same time with different transaction types. There are transaction types, which are downloading information from SAP (only send data back to the caller), and there are transaction types which are uploading data to SAP (inserting/updating data on SAP).
    The function calls are synchronous as the server needs to get feedback directly. The parallel work processes for RFC calls are limited, so a system overload can´t happen.
    The problem now is, if the server is down for while and going to be restarted, it´s opening parallel threads and calls the function in SAP at nearly the same time. That means, it will call the function with upload requests (table must be locked), and download requests the same time.
    In the upload requests, the table has to be locked, that it can´t occur that we get wrong entries...
    I can only enqueue the table with just two fields... I know, that is almost like locking the whole table, but it´s not possible to lock it in a different way.
    I tried to use the enqueue function with the parameter WAIT, but it didn´t help, as there where too many parallel calls and after some seconds, they were ending up with an error (Because the table has been locked by another call).
    It seems that it´s trying to lock the table again for all parallel calls at exactly the same time....
    The calls has to be synchronous, as the server needs to get the feedback directly. Any ideas how top solve this, that it handles all incoming calls parallel and waits for the table is unlocked again?
    Thank you for your help!

    Hi,
    thank you for your answer!
    I have investigated something new yesterday:
    I thought at the beginning, that the problem just occurs, when the system work processes are reached. The system has for example set up 15 dialog processes and the external server is calling the function 20 times in parallel. Then we normally need 5 dialog processes more. The system is taking then all 15 dialog processes and the locks got stucked.
    That means, that I´ll maybe only get 4 or 5 uploads, which have really been updated the tables. All the others couldn´t get the table locked for their process.
    But if I now let the server call the function just about 13 times in parallel, nearly all uploads have been updated the table!
    From my point of view, the lock from SAP gets stucked, when the limit of dialog processes is reached. It´s not working in the right way anymore...
    The same is happening, when you set up in the system, that only 10 work proecesses can be used by RFC. If I have more than 10, it´s going to be critical with the locks....
    WEIRD!
    Can anybody help me out of trouble?
    Thank you!

  • RFC call history - View Parameter data

    Hi all!
    I would like to view the parameter values of an incomming RFC call made by an external system. Is this possible?
    I have had a look at ST01 and ST05 and ST11...
    (Obviously I have activated the trace with "RFC Trace" checkbox selected and run through a few calls via the external system (which were successful) and then turned off the trace)
    - ST01 and ST05 (same functionality?) do not even list the function calls!?
    - ST11 (error log!) does list the function module but it only says how many bytes were sent and received, and does not appear to have parameter specific details...
    Thanks for any clues!
    N

    Hi N K and others with a similar problem
    I am not aware of the possibiblity to see the parameters. But I had a similar problem as I am calling a function module in SAP through a webservice, but the response was not as expected. To see the input parameter I added a HTTP breakpoint in the function module I was trying to call.
    Remember in the function builder to activate the external debugger for the user making the call ("Utilities" -> "User-specific Settings" -> "ABAP Editor" -> "Debugging")
    When the debugger stopped at my brekpoint i was able to see the parameters.
    Hope this helps anyone out there
    Best regards
    Chris Christoffersen

  • Unknown/Junk Characters in RFC call

    Hey All,
        I am having a strange issue in one of the RFC calls made from a Java System to our SAP system. We were getting random errors with this interface( the interface was working well before for a long time) . When I Captured the values sent during the RFC calls I found a lot of junk characters being sent by the other system. Is this the problem of the sending sytem or something in between?
    Has anyone experienced anything like this before.
    Any inputs on what could be the Issue.
    Thanks

    Ash,
    The Java Application is connected to the SAP System using Java Connector.
    aRs,
    The rfc is basically a wraper of standard Bapi "BAPI_REPMANCONF1_CREATE_MTS" for confirmations which has a IMSEG related structure with a lot of QUAN fields. What do you think is the issue with RFC calls and QUAN fields. Becausing changing all the QUAN's to Chars and converting it back to QUAN in the wrapper will be a decently big change.
    I was kindoff ruling out the unicode issue because this interface was working fine for more the 6 months, and we were unicode long time ago.
    One thing I suspect where the Issue could be is the SDK kit for the Java application. We recently Updated our Kernel Version and I think we should Upgrade the SDK';s too which was not done. What do you think??
    Thanks

  • Remove RFC calls between SRM and ERP

    Hi,
    Did any of you ever worked on removing RFC calls between SRM and ERP systems?
    Does SAP maintains a lost of these built-in RFC calls?
    What are the known constraints to replace them by webservice calls ?
    Thanks
    Yann

    Hi Yann,
    There is nothing on the SAP database for SRM and the backend using webservice.
    There is for connections to SRM catalog.
    I haven't heard anything about plans to change this.
    Hope this helps,
    Kind Regards,
    Matthew

  • First RFC call failed, config not loaded. Check the System landscape configuration.

    Dear Experts,
    We are getting below error on portal while using the BEX query in BI system.
    Error:
    BEx Web Application
    Error: First RFC call failed, config not loaded. Check the System landscape configuration.
    Exception occurred while processing the current request; this exception cannot be handled by the application or framework
    Failed to process request; contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page
    We are sorry for the inconvenience.
    As the ITS & WEB AS connection tests go successful on object created for BI system in portal.
    Kindly suggest me on this issue..
    Thanks,
    Bharath.

    Hi Bharath,
    Please go through the below SAP Note and let me know if this helps.
    1903392 - Error: First RFC call failed, config not loaded
    BR,
    Anurag

  • System error during RFC call BAPI_FIXACCOUNT_GETLIST

    Hi Gurus,
    Below are the error and steps when i perform Payroll Posting to Accounting. To enable communication between distributed systems, the appropriate method have been specified in ALE Customizing for the objects of the following tables. (Basis -> Application Link Enabling (ALE) -> Modelling and Implementing Business Processes -> Maintain Distribution Model and Distribute Views.)
    However, error still exists as shown below:-
    1.     Run TCode PC00_M99_CIPE
    2.     Encountered Error as shown below:
    Communication error with system QAS, function FI_ACCT_DET_HR
    Message no. 3G404
    Diagnosis
    The function module "FI_ACCT_DET_HR" has been called remotely in system "QAS". As a result, an error occurred when creating the connection or during communication.
    Procedure
    Check that the ALE distribution model is correctly maintained.
    Account determination could not be performed
    Message no. 3G361
    Diagnosis
    The account could not be determined for one of the following reasons:
    No destination could be found in the ALE distribution model for the AcctngEmplyeeExpnses.Check method.
    A system or communication error occurred when executing the function FI_ACCT_DET_HR in the target system.
    System error during RFC call BAPI_FIXACCOUNT_GETLIST:  / CPIC-CALL: 'ThSAPCMINIT' Unknown serv ice
    Message no. KI012
    3.      Check in SM21: NiConnect Unsuccessful, Return Code: -0003
                        Communication error, CPIC return code 020, SAP return code 665
    Please advice. Thanks in advance.
    Best Regards,
    Fung

    Hi,
    Probably because of timeout, it is unable to execute the request ..so it is aborted.
    btw, is it a synchronous call ? what is the message size ? the given data to RFC is correct and valid structure ? check the mapping .for this use the data from SXMB_MONI and test it
    Check this blog for timeout errors-
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards,
    moorthy

  • How to Call Same Adaptive RFC across different Backend R/3 Systems

    Hi Everyone,
    I have been troubled for the last 3 or 4 days on how I should develop Web DynPro code to call the same RFC on different backend R/3 systems.  Don't really want to maintain my own Jco connects within a SAP Connector project and I don't really want to import 3 or 4 of the same models.  Can someone please inform what is the best approach?
    Thanks.

    Hi Glen,
    There is one other way of doing this which needs a bit of data maintenance.
    The webdynpro app will connect to one R/3 backend. In the same R/3 create RFC destinations to all others backends where the RFC's needs to be called. Create a table where u maintain for what value which backend system should be called. Add rfc_dest as an import paramter in all the RFCs in the backend system where the webdynpro app is connected and call those systems using RFC destinations.
    For e.g. you have one HR system and multiple FI systems based on Company codes.
    Connect your webdynpro app to the HR system. Create a table in the HR system which will contain data like given below
    CoCode                        RFC Destination
    1000                             RFCDEST1
    2000                             RFCDEST1
    In the RFC's in HR system add both CoCode and RFC Destination as additional input parameters. From the front end u can pass different values and call the same RFC's from different systems.
    Regards
    Prakash

  • Performance issue due to RFC calls. (R/3 to R/3 system)

    Hi,
    My application face serious performance problem because of RFC calls (R/3 system to R/3 system).
    1)is there any transaction code for doing performance analysis on RFC calls in R/3 system?
    2)How far large volume of Data Transfer (mainly due to internal tables) in a RFC call affects the performance? is there any limit for data transfer size at a time in a RFC call? if so how to calculate for best performance?
    Thanks and regards,
    Prakash.

    Hi Andreas,
    Suppose an RFC enabled Fm having an internal table as importing parameter.During execution of this Fm with 4000 enteries for the internal table results in performance degrading.is there any way to improve the performance?.
    Thanks and regards,
    Prakash.

  • RFCs calling from remote systems

    Hello Abapers,
    Can anyone tell me how to find the list of programs which are calling remote function modules? For example programs in CRM system calling function modules in ECC...
    Thanks,
    Himadama

    Hi,
    this is only ardly possible depending on your goal.
    There are lots of RFC calls especially in CRM for middleware purposes.
    Option a) - You try to find all pla ces where z*modules are called that are not existing in CRM
    Option b) - You want to find all RFC enabled modules of ERP called in  CRM
    Option c) - You want to find all RFC calls in CRM targeting the defaulting ERP destination
    Solution for  a)
    - Go to table WBCROSS (which is global the "where used list")
       and check for all Z* modules 
    - Copy the list of modules e.g. in a file 
    - Search table trdir (registry of function modules) with this list
      -> all modules that are not in this list are probably RFC modules from a backend
    Solution for  b)
    - Go to ERP SE37 and open the help
    - open the advanced options
    - mark "RFC modules"
    - search and save the whole list of RFCs relevant
    - Go to CRM and check table WBCROSS where these modules are used
    Solution for  c)
    - go to CRM and check for a module called "SMOFERP" or similar
      It returns the name of the default RFC destination of an CRm system to its default ERP.
    - Check the where used list of this module - should guide you close to the calls
    mfg,

  • RFC calls are taking too many work process -- system knock out

    Hi,
    I have an interface remote function, which is going to be called by a java program.
    Data is going to be sent to the system, processed and sent back syncronous to the caller.
    The calls are working on SAP tables, so I needed to lock and unlock the tables. The java program
    is opening many parallell threads and starts them the same time.
    That means, that the sap system is getting attacked by many rfc calls on the same function, with the
    same user at the same time.
    The system has in development 15 dialog work processes set up. If I run that with up to 15 parallell rfc calls, all is working ok!
    Let me now explain the problem:
    I have programmed the table lock, that it´s trying to lock the table at the beginning of the function.
    If it´s not possible it tries it again. At first I have just inserted a one second wait and let that run maximum 3 times. If the table is still locked, it breaks down with an error.
    But because the calls come nearly to exactly the same time to the system, the first call locks all others out, and the rest ran out of the 3 seconds and ended up with an error.
    So I tried to build an endless loop, which is just ending, when the table could be locked again, or when the runtime of 5 seconds has reached. That means, it´s not waiting for a second, if the table is locked, but it´s trying again and again up to 5 seconds.
    That is all ok, because sometime the table is free again and all calls are then processed alright.
    BUT if I now run that with MORE than 15 rfc calls from the java program (15 dialog processes are set up), the system got knocked out! It is using all free work processes for the RFC calls and get stucked. I think, the first call is locking the table, and the got stopped by the system. And then all the others are running in the endless loop....
    So, shouldn´t be there a limit for dialog processes taken by RFC calls? For example here for this user? In this case it should f.e. be set to 10 free processes with 5, which are reserved for other users...
    Any advices?
    The second is, how can I change the lock mechanism, that I don´t use an endless loop? Waiting for one second and doing that 3 times, is not good enough... Because all the rfc calls wait then for one second, up to 3 times, and end with an error....
    Is it possible to wait for half seconds, or defined milli seconds?
    Thank you for all advices!

    Hi,
    What I have understood is you are trying to lock the table in a loop and just checking the duration by explicitly putting wait statement.
    Hope you are NOT locking the entire table rather a particular record in each lock.
    No need to use explicit wait statement rather its better to let SAP thinks when to lock the table T1 when its already locked by another work process. So just set the wait parameter for the Enqueue function module as 'X' and check how it behaves. Until the table is not unlocked the process will wait.
    If you see the wait parameter for the Enqueue function module is not available then create your own lock object for the table and use that. Make sure its getting dequeued else you can understand better
    Cheers
    Somnath

  • System error occurred (RFC call),key value exists in duplicate

    hi bw expert ,
    i happen the error report.
    "system error occurred (RFC call).
    key value exists in duplicate (Not allowed by the ODS object type).
    Activation of data records from ODS object Z08TRFKP terminated.
    No confirmation for request odsr_80p13w4lqhnib3g9tiflvth56 when activating ODS object Z08TRFKP.
    Request REQU_EVZB7CK82H7YMS13X3G42GKQY , data package 000001 contains errors with status 5 .
    Request REQU_EVZB7CK82H7YMS13X3G42GKQY , data package 000001 not correct.
    Inserted records 1- ; Changed records 1- ; Deleted records 1-
    pls, help me .
    thanks.

    hi experts,
    the first, i initial update the data from r3 to bw ods, it is successful. the second, the system automatic touch off delta update from r3 to bw ods. it is false. now i have deleted the false delta update and repeat extractive. but it is also error.
    please help me again.
    thanks.

  • Call rfc sender adapter from non-sap systems

    Hi,
    is ist possible to connect to an rfc sender adapter from non-sap systems? I want to use the the RFC-Connector from http://rfcconnector.com, but in the client connect options there is no way to specify the program id.
    Best regards,
    Daniel

    hi,
    you don't need to use RFC type T (with program ID) - you can use whole connection string - just like in the example:
    http://www.rfcconnector.com/documentation/examples/client/#functioncall
    so just specify: host system number etc.
    it should work like that - but let me know as I don't know this RFC connector
    Regards,
    Michal Krawczyk

Maybe you are looking for