SAPRFC works great unless SAP is bounced

'Everything is working fine unless SAP is taken off line. In which case the php.exe process cpu utilization jumps to 50% and is no longer listening for the RFC.
Once SAP is back on line the php.exe process cpu time is still 50% and still no longer listening. Do I need an error trap, am I using something incorrectly, or is my code fundamentally flawed? Any help is appreciated.
require_once( "api_tunnel.php" );
  $DEF_RFC_KWIKSHIP_API= array (
                  array (
                       "name"=>"MSGTOFS",
                       "type"=>"IMPORT",
                       "optional"=>"0",
                       "def"=> array (
                            array ("name"=>"","abap"=>"C","len"=>10000,"dec"=>0)
                  array (
                       "name"=>"MSGFROMFS",
                       "type"=>"EXPORT",
                       "optional"=>"0",
                       "def"=> array (
                            array ("name"=>"","abap"=>"C","len"=>10000,"dec"=>0)
// Call script with: ./KWIKSHIP_rfc_connector.php -a KWIKSHIP_api -g hostname -x sapgw00 –t c:\
$rfc = saprfc_server_accept ($argv);
$fcl["KWIKSHIP_API"] = saprfc_function_define(0,"KWIKSHIP_API",$DEF_RFC_KWIKSHIP_API);
// PHP server function
while (true)
   $rc = saprfc_server_dispatch ($rfc, $fcl);
function KWIKSHIP_api($fce) {
           $phpconnector_input_str = saprfc_server_import($fce,"MSGTOFS");
     $return_str = SendAPIMessage($phpconnector_input_str);
           saprfc_server_export ($fce,"MSGFROMFS",$return_str);
           return (true);
//Attempt to run listener without ever closing the saprfc connection; Close RFC if necessary
saprfc_close ($rfc);

Hi,
SAPRFC - works on - Windows Server 2003 (IIS x32) and on Apache WAMP -  PHP 5.2.8 - with - php_saprfc_528.dll.
The crucial  thing is the c++ dll complilation. So you cannot use php_saprfc_530.dll for PHP 5.3.5 - it only works with
PHP 5.3.0 and so on. Each php release needs its own c++ compilation for  the php_saprfc_xxx.dll.
I already asked eduard.koucky at czech-tv.cz (the project leader) how to compile a php_saprfc_535.dll  together  with
Visual Studio 2008 and saprfc_php5.sln?
It seems to depend on the php dll build includes in the property sheets of the project in VS 2008:
"..\Build\Php.Build\php-5.2.8";
"..\Build\Php.Build\php-5.2.8\Zend";
"..\Build\Php.Build\php-5.2.8\TSRM";
"..\Build\Php.Build\php-5.2.8\main";
"..\Build\Php.Build\php-5.2.8\win32";
"C:\Program Files\Microsoft SDKs\Windows\v6.1\Include";
..\Build\RFCSDK.710.Win32\include;
..\Build\Php.Build\Win32\include
You find existing versions of the php_saprfc_xxx.dlls here -> http://sourceforge.net/projects/saprfc/files/saprfc/ :
4.3.0  -  4.3.2  -  4.3.8  -  4.3.10  -  4.4.0  -  4.4.1  -  4.4.9  -  5.0.0  -  5.0.3  -  5.0.4  -  5.1.1  -  5.2.8  -  5.3.0
Best regards
Axel Arnold Bangert - Herzogenrath 2011

Similar Messages

  • I have an old ipod. It worked great until about 2 months ago and now it says I need to restore my ipod but I can't unless I format it, but everytime I try, it says the format could not be completed. Is there anything else I can do to get it to work again?

    I have an old ipod. It worked great until about 2 months ago and now it says I need to restore my ipod but I can't unless I format it, but everytime I try, it says the format could not be completed. Is there anything else I can do to get it to work again?

    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                                        
      - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • FaceTime won't work on my MacBook pro unless I tether it through my iPhone - FaceTime works great on my phone through the home wifi network but never connects on the MacBook anyone got any ideas

    FaceTime won't work on my MacBook pro unless I tether it through my iPhone - FaceTime works great on my phone through the home wifi network but never connects on the MacBook anyone got any ideas

    Hey mwe1978,
    I understand that you are having issues with FaceTime on your MacBook. In my experience, the following article may provide best troubleshooting practices, and lead to a resolution:
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/TS4185
    With FaceTime for Mac you can place and receive video calls to users of FaceTime on supported devices. Learn the system requirements for FaceTime for Mac and basic troubleshooting steps to resolve FaceTime for Mac activation and usage issues.
    Thanks,
    Matt M.

  • How to get SAPRFC working on XAMPP 1.6.2? Try this.

    Hi
    I have just managed to get SAPRFC working with XAMPP 1.6.2 (released on  29/05/2007). I noticed there was not much information on XAMPP in the PHP Development forum, so thought this might be useful for anyone who may wish to use it.
    I originally started with Craig Cmehil's post <a href="/people/sap.user72/blog/2005/05/15/getting-started-with-php started with PHP</a>. I already had XAMPP installed, so just needed to update it and add SAPRFC support.
    I am using the following:
    Windows XP SP2
    XAMPP 1.6.2 - <a href="http://www.apachefriends.org/en/xampp-windows.html">http://www.apachefriends.org/en/xampp-windows.html</a>
    This includes:
    1. Apache 2.2.4
    2. MySQL 5.0.41
    3. PHP 5.2.2 + 4.4.7 + PEAR + Switch
    4. And other modules included. See XAMPP website for more information on the extra modules included.
    SAPRFC  1.4-5.20 - Re: PHP 5.2 and saprfc 1.4.1. This provided me with a link to SAPRFC 1.4-5.2.0. Using the php_saprfc.dll file included in this ZIP file solved the problem.
    <u>Instructions</u>
    1. Install XAMPP and follow setup taking defaults (I installed to C:\DEV\XAMPP)
    2. Extract SAPRFC to a suitable location (e.g. C:\DEV\SAPRFC)
    3. Copy the php_saprfc.dll file to the XAMPP\PHP\EXT folder (as defined in the extensions_dir in PHP.INI).
    4. Copy the remainder of the SAPRFC ZIP file to the XAMPP\HTDOCS folder. Create subdirectory if required.
    4. Edit PHP.INI and add the line <i>extensions=php_saprfc.dll</i> You will need to add this after the last <i>extensions=<some_extension>.dll</i> line.
    5. Shutdown and restart Apache using the XAMPP Control.
    6. Launch Internet Explorer and go to page <i>http://localhost/saprfc_test.php</i> or if you have put the SAPRFC PHP files in a subdirectory go to <i>http://localhost/yoursubdirectory/saprfc_test.php</i>.
    7. By running the saprfc_test.php file you should see a logon page.
    It should now be working on the PHP 5.2.2. I have not tested with the 4.4.7 version.
    That's all you need to do, so you should now be able to test some of the examples that are in the Blogs.
    Best of luck
    Nick

    Hello everybody,
    I've found simple solution for all problems with "Generate Activation Context failed for  ... php_saprfc.dll". This has something to do with missing libraries at your system.
    The next trace in Event viewer -> System was:
    "Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
    The solution is install: Microsoft Visual C++ 2005 Redistributable Package (x86)
    "vcredist_x86.exe" available at Microsoft downloads page.
    Good luck
    Michal.

  • *** URGENT *** Poplist VO results not current unless Apache is bounced.

    All,
    In my "create" page I use a VO for my poplist. The VO utilizes a "where" clause to identify specific accounts to choose from based on a configuration value. My poplist doesn't update properly when updating the configuration value unless I bounce Apache. Is typical within OAF?
    select cont_cd, cont_cd||' - '||customer customer
    from spl_account_map
    where attribute4 <> 'N'
    or attribute4 is null
    When I update Attribute4 = "Y" for specific accounts, they don't appear in poplist unless Apache is bounced. Is this typical? Would an LOV work instead?
    Thanks,
    -Scott
    Edited by: sreese on Jun 8, 2009 1:53 PM

    Prior to release 11.5.10, poplist data was cached on the middle tier in a proprietary OA Framework cache that could not be refreshed without bouncing the Java Virtual Machine (JVM). As a consequence, poplists could not reflect changes in the underlying data source while users were actively working. Starting with release 11.5.10, poplist data is cached using the Oracle Applications Java Caching Framework, and as a result, you can implement cache invalidation to automatically refresh poplists when the data they query changes. For example, if a poplist queries the values A, B, C, and D, and a new value E is inserted in the underlying table, your poplist can automatically reflect the addition of this fifth value the next time it renders its data.
    Dev guide says "Apply patch 3688496 to any environment in which you plan to deploy this caching functionality.", seems to solve this this. For details refer to "Cache Invalidation" in dev guide.

  • My Webmail works great, but my regular POP mail wont send (will receive)

    I have two servers, directnic standard set-up, checked by them, and same as has worked for two years. Each server has one email account and a web server, web works great and easily. Webmail works fine for both accounts, mail gets received fine in my mail app by both accounts when sent from my .mac account or my webmail via safari. But when I go to send from either account using mac mail I get "cant use that server" try this one... which of course doesn't work either (unless I select the .mac account sometimes.) both accounts are set up on same server names as work with webmail, same passwords, port 110 for POP... any ideas most appreciated.... I am probably staring at the problem but just cannot see it.... Thanks!

    What are your settings for outgoing mail server? Pop (port 110) can't be used for outgoing mail, you need an SMTP server (normally port 25) for that.
    AK

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • How export to csv work in safari browser? In my application export to csv open like a raw data in new tab. But other browsers working great!. Need to open in a csv file or save it as a csv file.

    How export to csv work in safari browser?
    In my application export to csv open like a raw data in new tab.
    But other browsers working great!.
    Need to open in a csv file or save it as a csv file.
    Please suggest me. Thank you in advance!.

    Hi Adrian,
    Why don't you try any another software for opening CSV files then Notepad ? According to my experience, you can use these softwares to open an CSV files and they are:-
    Microsoft Excel
    Open Office Calc
    Google Docs
    Also there is an additional tool available known as CSV viewer. You may try this, download it from here http://www.csvviewer.com/
    I've never used Notepad for opening CSV files, because sometimes it contains some symbols which are not not at all compatibile with Notepad.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Problem on ios 7.0.4 on iphone  enable your mobile data uncheck to green (enambled) works great ring and shows who ringing may work on 4s and five not tested please try get back to me thanks

    on iphone  enable your mobile data uncheck to green (enambled) works great ring and shows who ringing may work on 4s and five not tested please try get back to me thanks

    I'm sorry, but you are going to have to try a little better to explain your issue and what your question is, or post in your native language.

  • TS3276 I'm now having trouble getting mac mail to work on my mac. The mobile me account works great on iphone and ipad but it won't connect to my mail account. Password is correct. What else can I do? Using OS10.68

    I'm now having trouble getting mac mail to work on my mac. The mobile me account works great on iphone and ipad but it won't connect to my mail account. Password is correct. What else can I do? Using OS10.68

    HI,
    The Apple IDs from @mac.com and @me.com (Older MobileMe and more recent iCloud Names) are also Valid AIM Screen names.
    Any other sort of Apple ID is not a Valid AIM Name.
    A Google ID that is associated with Google Mail Account (And has "Talk" enable on your Google Settings) can be used in iChat as  Jabber Name/ID.  (Google Run  Jabber server).
    Jabber and AIM are different IM Services and it is not easy or straight forward to add Buddies from one Service to the Buddy List of another.  (As A Starting point consider it "impossible")
    iChat 4 and 5 have links to the registration page of @Mac.com here with a "Get an iChat Account" button in the add (Account) screen  (You select @mac.com or MobileMe and then press the Button - Choosing AIM and then pressing the button used to lead to the AIM registration page but AIM moved their page).
    Apple IDs can be any valid email (or an @mac.com or iCloud registration)
    Therefore you could make a Google ID into an Apple ID.
    However this will not be a valid AIM Screen Name the way @mac.com or MobileMe/iCloud ones are.
    Valid AIM Screen Names in Table (pic)
    7:46 PM      Monday; December 5, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Remote printer is recognized but message says can't find printer?  It worked great before installing OSX Maverick

    Remote printer is recognized but message says can't find printer?  It worked great before installing OSX Maverick?

    Thank you for your response.
    Unfortunately I have already rebooted the router and that did not fix the problem. The weird thing is that the computer is connected to the network, it just won't connect to my computer. I have printed the network configuration page to confirm this, and it says the wireless signal is strong. 
    I have not changed anything at all recently in terms of routers, networks, etc. The printer stopped working completely randomly.
    Is there a part in the printer that like emits a signal which computers, phones, etc are supposed to detect? I don't know enough about the mechanics to really theorize about what is wrong, but it seems like that is the only thing that stopped working. 
    Do you have any other suggestions?

  • I have a iMac destop 10.6.2 and use the AOL Mail web site with your Firefox Browser. It has worked great for years. I update the firefox to 6.1 and now I cannot send images using the Firefox browser. With Safari browser it works fine.

    I use AOL mail - http://www.aol.com/ with my Firefox 6.1 browser. Before updating aol mail worked great with firefox for years. Now when I try to send ( upload) messages with a file or images I always get the reading " there was a technical problem and I should try again". Messages with NO files or images go through just fine. I have cleared the Firefox history, the cache and cookies and the problem remained the same. The question is does this problem have something to do with the latest update ? AOL are still only familar with the 3.6 Firefox versions. Thanks

    Well I guess I was too optimistic. Since last posting I have had three hang events, one during reboot. When the login dialog box came up I clicked on it and it hung.
    However I do have a new data point. I have enabled the remote login (sshd). I have discovered that when the system hangs like I described above, I can still log in via SSH from my Windows system. The shell appears normal, but when I tried a "killall Safari" command the OS crashed hard. After a hard reset, the system hung during the login process. Again I could login remotely, and that time I executed a "sudo reboot" via the remote session. That cleared the display to all-blue but did not successfully reboot.
    Can anyone suggest what to try via the remote login to help diagnose what is happening? I am familiar with typical Linux architecture but the differences in Mac OS X are leaving me a bit disoriented.

  • We just moved from the United States to Costa Rica.  The first two days my mac worked great.  Then all of a sudden I was trying to use a game application and the screen went black and there is a white cursor which I can move around, but I can't escape it

    We just moved from the United States to Costa Rica.  The first two days my mac worked great.  Then all of a sudden I was trying to use a game application and the screen went black and there is a white cursor which I can move around, but I can't escape it. When I restart it seems okay and I see my main screen, but only for a second and then it goes black again. 
    This computer was brand new in June.  Is it the humidity???   What can I do.  Please help!!!!

    No guarantess but try smc and pram resets,

  • Imac - dvi to hdmi.  It works great, but I have one problem with blue flicker on my imac

    Yesterday I bought a dvi to hdmi connector from Apple store, and successfully connected my iMac (10.6.8) to an LG 50" monitor. 
    It works great with one problem.  My imac flickers blue every 2 secs when TV is on but set to other inputs.
    We use the TV for other things (TiVo, DVD) as they are HDMI1, HDMI2 and the iMac is HDMI3. 
    I tried several things, and each worked with Audio and Video.   I currently have it setup as seperate screens instead of duplicating the screens, but each worked fine.  And each had the same problem below.
    The problem comes if I am on the iMac and then turn on the TV to watch something.  As soon as I do, my iMac display starts flickering blue every 2-3 seconds as it is obviously talking to the LG TV.  As soon as I set the TV to HDMI3 everything works.  If I turn the TV off, everything works. 
    I don't want to have to connect the cable every time I want I want to project to the TV (although I guess I can live w/ that).  Is there a way to have this setup correctly?
    thanks for any help in advance.

    As an update, after 2 weeks of tinkering with this setup, the iMac is usually able to settle down after about 20 seconds of flittering.  And, if it does happen where the iMac stays blue screen, I can switch the TV to show the HDMI input from the computer, which works, and if I want, switch it back.
    So, all in all, it works very well.  I just needed some more patience.

  • I created a new apple id for my iphone and ipad which work great and allow me to access Icloud. on my macbook air can't get it to use my new apple id for icloud. Help?

    I created a new apple id for my iphone and ipad which work great and allow me to access Icloud. on my macbook air  I can't get it to use my new apple id for icloud. It keeps going back to my old apple id and doesn't afford me to alter it. I use system preferences-icloud and it just wants to verify the old apple id but doesn't afford me the opportunity to delete teh account or edit it like the iphone5 and ipad. Help?

    Welcome to the Apple Community.
    You need to use the sign out option on the left side.

Maybe you are looking for

  • Batch determination issue.

    08.11.2010 Hi friends. We determine batches automatically at the delivery stage.  When a delivery is created against multiple sales orders and if the orders have the same items then in the delivery multiple lines are created for the same material. Th

  • Safari always opens at the last web page viewed. How can I make google the default opening page?

    On my iphone 4, safari always opens at the last page viewed. Does anyone know how I can set it to always open at google?

  • Shape cannot be resolved to a type

    Hi all, For my current programming in eclipse 3.1.0, I'm using an open source class. Within that class, the object 'newShape' of class 'Shape' is declared. When compiling, the following error message occurs: Exception in thread "main" java.lang.Error

  • ICloud doesn't show up in Numbers open file dialog box

    How do you add iCloud to the Numbers open file dialog box? It doesn't show up for me. I've already set up iCloud in my system preferences and enabled document synching.

  • How to Use Backslah() in webi report formula

    Hi My client is using web intelligence XI 3.1 SP2. I have a formula in a report as: =Sum(If([Level 08 Node] InList ("Correlation & Index";"EM\FX Option JV";"Short Dated Exotic Options";"Long Dated Options";"Short Dated Vanilla Options";"Options");[SR