External device connection: RFC Server?

Hello to all,
i'm new here.
I'm facing a new problem i never met before.
I'm on a 4.7 enviroment and i have to interface sap with an external device.
The producers of external device, release an executable file that makes (but i don't kwnow how) the communication from the device and sap.
The only things that i had to do was (following the device documentation):
1. Create a tcp/ip remote destination that point to one external executable (es: Z_EXT_DEVICE --> c:\device\device2sap.exe) (if i double-click on it, it don't do anything) 
2. Setup in the external setup device program (setupdevice.exe), the name of the RFC destination (Z_EXT_DEVICE), the sapgateway address (sapgw00) and the sap host address (ex 10.2.4.XX)
(Note that i don't have to specify sap usr/pwd for the connection in any step).
3. Call a simple function module in SAP system in this way:
CALL FUNCTION 'Z_RFC_DATA' DESTINATION 'Z_EXT_DEVICE'
    EXPORTING
      header        = szheader
      data          = szdata
      status        = '0'
      data_len      = szvalue
    IMPORTING
      system           = szretsystem
      code             = szretcode
      ret_text         = szrettext
      header           = szanswerheader
      len_data         = szlendata
      bct_status       = szstatus
      bct_data         = szanswerdata
    EXCEPTIONS
      communication_failure  = 1
      system_failure         = 2
      OTHERS                 = 3.
The code of the function module is empty :
FUNCTION Z_RFC_BCT.
""Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(HEADER) LIKE  BAPIRET2-MESSAGE
*"     VALUE(DATA) LIKE  BAPIRET2-MESSAGE
*"     VALUE(STATUS) LIKE  BAPIRET2-MESSAGE
*"     VALUE(DATA_LEN) LIKE  BAPIRET2-MESSAGE
*"  EXPORTING
*"     VALUE(SYSTEM) LIKE  BAPIRET2-MESSAGE
*"     VALUE(CODE) LIKE  BAPIRET2-MESSAGE
*"     VALUE(RET_TEXT) LIKE  BAPIRET2-MESSAGE
*"     VALUE(HEADER) LIKE  BAPIRET2-MESSAGE
*"     VALUE(DATA) LIKE  BAPIRET2-MESSAGE
*"     VALUE(LEN_DATA) LIKE  BAPIRET2-MESSAGE
*"     VALUE(STATUS) LIKE  BAPIRET2-MESSAGE
*"  EXCEPTIONS
*"      COMMUNICATION_FAILURE
*"      SYSTEM_FAILURE
ENDFUNCTION.
After the call of the function module in sap system, magically the importing variables are filled all by values read from the external device. At this point I'd like to ask u some questions :
1. I think that external device program (device2sap.exe) is an RFC server program. Is it right ??
2. How the connection from external executable and sap works if i don't specify usr/pwd in any configuration file? The device    infact, work with every sap (if u execute the three sinple step wrote before)
3. I'd like write a server like that for a different external device. In the old release of sap (4.0,4.5) there was a sap tools (in function module editor SE37) that permitted (starting from a function module), to generate a client or server external program (in C or VB). In 4.7 this functionality is missing. Is there other sap tools that permitt to do the same thing or this functionality is completly lost?? In the second case, do u have some hits that could help me in this step??
4. I'd like to have some documentation about the server program and communication methos between external RFC server program and Sap. Where i can find some good documents that could help me in that task ??
5. I heard about DCOM connector. Where i can find some good documentations that explain how is it , how it works and if it could solve my problem ?
Thanks a lot in advance.
Andrea

Hi, I'm sure the device2sap.exe is developed by a Connector Tools. E.G. .Net Connector, Jco and so on.
So reply your question as following:
1. Yes, in the external application side, it can simulate a RFC server for the SAP to call, just like call to another R3 server.
2. No need on use/pw. it is not DataBase connection, just a RFC connection. The key feature only need is the IP. And you should configure the RFC destination using IP. RFC is a FM call protocol, not to access a DB.
3. Using the Connector tools I mentioned in the former reply. And you can navigate in the .Net Tech Forum in SDN.
4. The guide of Connector Development can be get from SDN, and some sample code will be copy in the install directory, after you installed it.
5. DCOM is the tech used in the former Connector version SAP DCOM conncetor. Now, as the windows is into the Dotnet Time, recommand you to use DotNet Connector.
That's all.   hope it will be helpful

Similar Messages

  • External device connection

    Cheers mates,
    I have a pc with windows8 Envy17-j010el.
    This model has only one input miniack (3.5) headphone / microphone.
    When I try to connect to the Routing an external device with a mini-jack cable (3.5), for the record, I have problems in acquiring the sound.
    I do not get the signal input.
    Someone would know you help me?
    Thank you!
    Paul

    Hi,
    Have you used the right cable. Pleae check the end of the following cable, I think it actually has more connectors than your cable.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • NEW EXTERNAL DEVICE CONNECTED

    PLEASE help    my husband is having surgery and I cannot fix the tv.... our tv is like 4 months old and our dvd player 2 months   for several weeks all was good   Now we keep getting a pop up on the screen that says A new external device is connected   do you want to enjoy this? Then it has  a red sign that has the picture of three little plugsyellow red and white     and the letters AV   next to that is one that say NO    I click no and it comes back again about an hour later   My son in law disconncected and reconncected every thing several times. I feel bad becuase my husband is disabled and tv is his world  PLEASE SOMEONE HELP...................... I am soo frustrated. It makes no sense becuse it didnt do it before  DO I disconnec the dvd player and replace it  or do you think the problem is the fios box ?? HELP PLEASE someone who is smart soon  thanks

    Not really! Anyhow, what do you want to achieve. The only things you can access in your iPad outside of using iTunes are photos and videos. [Locate the iPad as any other external device through Windows Eplorer or Finder and dig through the folders.]
    You are fortunate that iTunes opens when you connect the iPad since many other users have difficulty in achieving this. It is from there that you can manage what you want synced to the iPad.

  • Slow startup GRUB2 (GPT Hard Driver) external devices connected

    Hi,
    Anyone know why would GRUB2 init/search/scan external devices on start-up ?
    I get a long delay (i.e. an flashing rectangle (or underline, gotta check) (cursor)) as Grub2 starts when I have a CD in my computer and/or when my external Hard Drive is connected.
    I suppose it's caused by the external devices, because, when it happens, I hear sequentially my CD being worked on and my external hard drive working, then GRUB is starting (displaying the "Grub Loading..."/"Welcome to Grub" message). When I disconnect my devices and remove my CD, it all goes well and the "Grub Loading..."/"Welcome to Grub" appears nearly instantly.
    Anyone who has good knowledge on GRUB2 know what I could do to remove this delay (i.e. don't touch to the devices, let Linux do its job) ?
    Thanks,
    Totony
    EDIT : Apparently, it was the BIOS (Dell's) who was scanning my devices (despite that the boot order had the Internal Hard Driver coming first...). I still got them problem if anyone know why it does that.
    Last edited by Totony (2011-07-27 21:13:12)

    Just fond a post of someone with similar issues.
    Post is called : " Silverfast scanning software slows bootup and shutdown ".

  • How can I share external devices connected to my Mac mini via USB on a wired network.

    Own a Mac mini with Mountain Lion.  Purchased the server app.  The Mac mini is connected to a wired network with Mac’s and Windows machines.  I have an external hard drive and 2 printers connected to the MAC mini via USB.  I would like to share these devices with other computers on the wired network. Although I have attached similar devices with an airport extreme in the past, I am unable to use a wireless router in this case.  Any suggestions on making this work with my current setup?

    You don't really even need server app to do this. Simply go to System Preferences | Sharing and turn on both File & Printer sharing. Then, for example, the printer (not relevant what connection it has but obviously USB is fine) will be available to everyone on the wired network.
    That's all there is to it - unless I missed/misunderstood something re: your setup which seems very straightforward.

  • Charger dies when external devices connected or keyboard used

    My wife ran the battery down on her 1.8G PowerBook, while on travel with Bluetooth & AirPort on. Returning home she connected it as normal to her remote keyboard, internet, printers and external monitor. When attached, the charging indicator would first be green for a second, then orange for about 5 seconds, then off. Disconnecting the keyboard & monitor, and turning Bluetooth & Airport off allowed it to continue to charge (orange) until the mouse or keyboard was used, then the charging indicator would go out again.
    Any suggestions?
    Thanks in advance
    Henry

    You don't mention how long you attempted to charge with nothing connected. Sometimes a battery can be so low that it needs to charge without powering anything...in other words, try charging for a couple hours or overnight with the computer off and nothing connected to it other than the power cord. An SMC reset prior to doing this may also help. If the problem is simply that the battery was very low, the combination of SMC reset and overnight charging with no power drain should get you back to normal.
    If that doesn't work, you may need a new battery.

  • Is the Equium P200-1ED capable of powering USB devices connected to it?

    (1) Possibly related to my previous question is anyone able to confirm whether the Toshiba Equium P200-1ED is able to power external devices connected to it via its USB ports?
    (2) Can all 6 USB ports be used to simultaneously power 6 external USB devices?
    What is wrong?
    Please advise.

    I presume you ask again for the advice related to this question:
    http://forums.computers.toshiba-europe.com/forums/message.jspa?messageID=115026#115026
    From my knowledge all USB ports supports the USB standard and provides 500mA.
    But sometimes an USB device needs more as 500mA and then you will have to use an external power supply for the USB device.
    Sometimes its advisable to use an USB hub which supports an own power supply.
    > (2) Can all 6 USB ports be used to simultaneously power 6 external USB devices?
    As I said, possibly some 3rd external USB devices would need more as 500mA and in such case you should use an external power supply for the USB devices.
    Bye

  • How to make external devices (like iPods, etc.) NOT mount as connected drives when plugged in via USB to a Mac?

    If I plug my iPod (or a thumb drive or whatever) to my Mac's USB port, the device appears as a icon representing a connected drive on my Mac's Desktop.
    This is normal, expected behavior.
    HOWEVER, in some cases, I'd prefer that the device not "mount" as a connected external drive.
    With thumb drives or external USB drive, of course, I want them to "mount" so I can transfer files on or off them -- that would be the only possible reason to connect an external drive like that.
    But with other Apple devices like iPods or iPhones, there are TWO possible reasons to connect them to a Mac: either to "sync" them or transfer files on/off them; OR, to simply recharge the device's battery. (Or, both sync and recharging functions at once.)
    For those people who use their Apple devices in ways that require transferring files (i.e. most people), then having the device "mount" as a connected device is a desirable behavior.
    But in my circumstance (and I bet there are a lot of people in a similar circumstance), I have no need or desire to transfer any data to or from my device every time I plug it into my Mac: I'm plugging it in SOLELY to recharge the device's battery.
    Specifically, in my case, I have a 6th-gen iPod Nano, and I use it exclusively as an FM radio and a pedometer. I don't have any mp3s or songs or any other external files loaded on it, nor do I plan to add any in the future.
    The only reason I ever plug it into my Mac is so that I can recharge the iPod's battery.
    But the "problem," which is a minor one I admit but a problem nonetheless, is that every time I connect the iPod to the Mac, the iPod appears as a "connected drive" icon on my Mac's desktop. Which means that I'm not supposed to just unplug the iPod  when I'm done -- first, I have to find its icon on the Mac Desktop, and then drag the icon to the Trash, to "unmount" it -- and only then can I freely unplug the iPod without getting an error message telling me that I shouldn't just disconnect connected drives without first properly unmounting them.
    This would be bothersome enough if I only had to do it once per connection, but in the case of the iPod Nano, there's no way to tell how recharged it is while it is in the act of recharging, so that to see if I'm "done," I have to unplug it, check the battery status, and if it's not fully charged, re-plug it back in. So that each time I recharge it, I often have to unmount the drive several times, depending on how impatient I am.
    There has to be a way to prevent the mounting of the drives of devices that one is connecting simply for the purpose of recharging. But how?
    Strangely, I also have an old iPhone, and when I plug that in for recharging in the same way, it DOESN'T appear as a connected drive on the Desktop. I'm not sure how I managed to do this, but long ago I must have changed some setting or preference for this to happen. And by now I've forgotten what I did.
    I'd prefer that I could change the "mount/don't-mount" setting on a device-by-device basis -- i.e. make it such that this particular iPod doesn't load, but perhaps a different iPod would load -- but if that's not possible, then is there a way to stop ALL iPods and iPhones from loading as connected drives when plugged in?
    (I'm not talking about appearing as connected drives within iTunes -- I'm talking about appearing as an icon on the Desktop in the Finder.)
    And please don't tell me to just buy a wall charger! I prefer to recharge off my computer if possible, using the charging cord that came with the iPod.
    I presume there's some simple setting to toggle this on or off, but I haven't yet found it. Any clues would be appreciated. Thanks!

    Well, I already know about that Finder Preferences option, but that is not what I'm looking for. Why not? Because I still need CDs and DVDs to appear on the Desktop and mount properly! If I uncheck the "CDs, DVDs and iPods" option, then I lose the ability to access CDs and DVDs, which creates a whole new problem for me. What I want is to not mount iPods only -- actually, what I really want is to not mount this particular iPod -- but if that level of specificity is not possible, then I want to exclude just iPods from mounting, without also condemning CDs and DVDs (or whatever) to invisibility.
    Also, I was confused by the way the Preference is worded: It says "Show these items on the Desktop," with a series of options to check. But this phraseology seems to mean that the unchecked items will still "mount," they simply won't appear as Desktop icons. One would still have to "Eject" them using a menu command, rather than dragging the icon to the Trash -- right? Or am I mistaken, and is the Preference Pane simply badly worded, and when they say "Show these items on the Desktop," what they really mean is "mount these external devices as connected drives." So that if a category is unchecked, then they won't load as external drives at all?
    But if so, then what purpose could possibly be served by inserting a CD or DVD that is not recognized by the computer? And if it isn't recognized, then it would seem that there would be no way to ever Eject the CD or DVD disk. Right?
    Thus, if I uncheck that Finder Preference box you suggest, one of two outcomes will result:
    -- Either CD, DVDs and iPods are still mounted, they just won't appear as icons on the Desktop; but they would still need to be Ejected via a menu command, which doesn't solve my problem.
    -- Or, CDs, DVDs and iPods are not mounted or recognized by the computer at all, which means that if I insert a disk into the disk drive, it will get stuck there forever, since there's no way to Eject it, since the OS doesn't recognize that it's even there. Which is thereby a new problem.
    Either way, I'd have a problem! Or...? Clarification, anyone?

  • Lightroom Library on a server with external HD connected via FW400

    I plan to set up a Lightroom library on a MacMini which I like to use as a file server and will be connected with an external harddrive like a drobo or any other storage box (several TB). Now in case the whole library including previews is sitting on a storage device connected to a MacMini which is again running as my server and connected with a fast 100MB network line, I am concerned that I open the library with a MacPro (very fast) but this will then take long (50MB Tiff files) to work on. How does LR handle the files, what will be loaded (just the preview-JPG)?
    I would be interested to know this before I change it to such a setting.

    Thx John, I plan to use the library with min 2 people and min 2 computers. So I have the need to share it. To do that with the Macpro does not fully fit in my original network concept. I will try the speed with the current hardware in order to see the actual speed, but I know you are correct. Anyhow, I might look into it from a different perspective and use the server library on the macmini for archival purposes and have a frequently used library on the main working machine (macpro). This is unfortunatlly a bit more complicated and I am not knowledgable enough yet in LR to use it that way. I am sure I can create projects for each bigger fotoshoot which I then can move between LR libraries. This should give me the chance to store the work of a project between computers. Do you agree?

  • Revel mobile is set up and working on three devices.  Elements 12 on PC will not allow me to log in to download mobile albums.  Error message indicates can not connect to server. No connectivity issues are occurring on browser.  Why is this happening?

    unable to log in to download mobile albums in elements 12.  Three mobile devices are synced on Revel but can not access them through PC, Elements 12.   Error indicates  cannot connect to server.  No issues with the browser as am able to connect directly to help from Elements.   Why the Error?

    Hi,
    Are you on PSE12 or PSE12.1?
    Is some external USB device plugged in to your system while trying logging in?
    Thanks
    Andaleeb

  • Studio Creator, Socket Connection to External Device

    I am porting an existing & successful project from Netbeans 3.6 into Studio Creator to take advantage of some of the tools in the IDE for this application. The project requires opening a socket connection from the Server PC to an external Device (PLC) that is a Client on a static IP & a dedicated fixed port.
    I am struggling to get past some security settings specific to AccessControlExceptions. Here is the code method being used to test:
    public String button1_action() {
    // Call methods to open connection, init streams, send command, and close connection.
    try {
    // Open Socket up and accept client connection
    ipSocketObject = new ServerSocket(port);
    bfSocket = ipSocketObject.accept();
    // Establish Streams
    is = new BufferedReader(new InputStreamReader(bfSocket.getInputStream()));
    os = new PrintWriter(bfSocket.getOutputStream(), true);
    System.out.println("Got to here...");
    // Clear the msCounter #13002
    os.println("r13002=0");
    pattern = "13002";
    do{ret=is.readLine();} while ((ret.indexOf(pattern)) ==-1);
    is.close();
    os.close();
    bfSocket.close();
    ipSocketObject.close();
    } catch (IOException e) {
    e.printStackTrace();
    return null;
    The Socket Connection is established, but the command string is not processed before Studio Creator generates a AccessControlException Fault. I have experiemented putting in a SocketPermission statement with out success.
    Is anyone aware of some sample code I might be able to review for opening socket connections to clients in a Studio Creator Application? Please excuse this request if too rudimentary- I am an Industrial Controls guy by trade... :)

    Sorry I know of no such application at this time, and unfortunately have not done socket work myself for many moons....
    What JDK was your previous application written under? I googled for AccessControlException and socket and seems that sometimes accounts for some issues... you can also search for that combination in the forum advanced search and might find something there.... one more long shot suggestion based upon your statement "the command string is not processed".... could it be that you need to flush the stream...?
    Sorry I don't have more to offer...
    v

  • Can i delevop and app that connects to an external device?

    0down votefavorite
    I am working on a project, where I am supposed to make a wireless connection from iOS (iPhone, iPad) to an external device, for sending and receiving some data. I would like to later publish this app on the App Store. At first I wanted to do the connection by bluetooth, but considering Apple's bluetooth MFi policy I had to reconsider this solution.
    My next idea is to use wi-fi. The iOS device would connect to the external device through a socket, probably using something like NSStream or CFStream. The external device would be configured as a wi-fi access point, with some kind of a server that stores data sent from the iOS app. The stored data would then be used by the external device to generate a signal for some mechanical actuators. The server would provide the app with data about the actuators.
    So my big question is, is this OK by the apple policy? Because if this is possible then I'll sign up for the developer program.

    Hello! First thing to check is the LaCie website to see if there's a firmware upgrade for the drive. Second is the drive formatted and HFS+ or did you use it straight out of the box. If that's the case it may be formatted FAT32 which could be the problem. Tom

  • Is there any way to see if a file has been saved to an external device, or to see a history of which external devics have been connected to an iMac in 10.6.7?

    I have a client that believes someone came into his house and took some digital files (photos, stored in iPhoto) off of his iMac (2.66GHz running v10.6.7)
    He usually just sleeps his computer while away and requires no password to login.  Is there any way to see if an external device or CD/DVD has been used to save files?  Is there any wya to see the history of a file and determine if it has been saved anywhere else?  I know this is a long shot, but I figure it is worth asking.

    Will it continue to say that the device is in lost mode if it has been restored?  My Find Iphone is saying that when the device is connected to the internet that it will be locked and that a message (that I typed in) will appear. It also says that I will be notified and that a sound will occur when it is connected. Now my iphone has been updated to the ios7, but I don't think his ipod was updated.

  • How to connect external database(Ex:SQL Server/Tivoli)  from ABAP Webdynpro

    Hi,
    Any one have idea how to connect external database like SQL Server/Tivoli to access tables from WebDynPro ABAP.
    Please point to me some links if you have
    Thanks
    Praveen

    Hi,
    Please check out this link -
    FETCH DATA FROM ORACLE DATABASE USING Web Dynpro
    Regards,
    Lekha.

  • Have a thuderbolt to hdmi adapter connected not showing video on external device

    tryin to connet to external display to mix video file and not able to see output on external device, tested device an working with other devices

    I brought an aftermarket Mini DisplayPort to HDMI converter on eBay for £7.99. Both video and audio works fine.
    http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=140479519950&ssPageName=STR K:MEWNX:IT#ht500wt1156
    I connect my MBAir to my TV using HDMI and the TV is connected to my sound system via optical cable.
    You just have to select TV as the output source under Sounds in System preferences.
    A cheaper option if you don't want to buy the Apple converter.

Maybe you are looking for