Call_and_receive fires 2 times?? why ??

Hello,
i have little problem with saprfc_call_and_receive().
In Firefox (2+) everything is ok. call_and_receive() fires only 1 time.
BUUUUUUT with IE (6+) the same call_and_receive() fire 2 times.
1. Firing => RCODE = 0 (OK)
2. Firing => RCODE = 4 (BAD) because datarow is already in DB.
PHP 5.1.1
SAPRFC_PHP 1.4.1
Any suggestions???
<?PHP
$login = array (     
                                        <passing logon data>
$rfc = saprfc_open ($login );                                                                               
//We must know if the function really exists
$fce = saprfc_function_discover($rfc, "<function_name>");
if(!$fce){
     echo "The function module has failed.";
  echo $rfc;
  exit;
//Pass table parameters
saprfc_table_init ($fce,"<table_name");
//setting IMPORT-Param
$set_import = saprfc_import ($fce,"SPRAS",$SPRAS);
foreach ($new_data as $data){
  saprfc_table_append ($fce,"table_name", <building my array>);
//Call and execute the function
$rc = saprfc_call_and_receive ($fce);
//wenn etwas auf Fehler läuft wird dieser ausgegeben.
switch ($rc) {
   case SAPRFC_OK        : break;
   case SAPRFC_EXCEPTION : echo "Exception raised:".saprfc_exception($fce)."<br>";
                           // handle exception
   default              : echo "RFC error ".saprfc_error()."<br>";
                           exit; 
?>
<html>
<head>
</head>
<body>
<?PHP
     $RCODE = saprfc_export ($fce,"RETURNCODE");
     $MESSAGE = saprfc_export ($fce,"MESSAGE");
//if $RCODE =4 Errormessage $MESSAGE
     if ($RCODE == "4") // Fehler
                <PHP-Coding>
     else
          <PHP-Coding>
     } // if ($result == "" )
saprfc_function_free($fce);
saprfc_close($rfc);
?>
</body>
</html>
thanx
Florian Endres

Hello,
It's not that easy.
My prior page calls the update page only 1 time.
I think some freaky dll form the IE fires the call_and_receive 2 times.
Some debugging on the update page give me this result.
Function module: /FIS/MON_SET_VERTRETER (remote SAP R/3: 700 Unicode)
IMPORT
CHECK_AUTGEN /o/  C 1 0 offset = 0
SPRAS  C 1 0 offset = 0
EXPORT
MESSAGE  C 72 0 offset = 0
RETURNCODE  b 1 0 offset = 0
TABLE
VERTRETERLISTE MANDT C 3 0 offset = 0
EMPFAENGER_EMAIL C 128 0 offset = 3
ZEIT_VON D 8 0 offset = 131
ZEIT_BIS D 8 0 offset = 139
KZ_GRUNDSAETZLIC C 1 0 offset = 147
VERTRETER_EMAIL C 241 0 offset = 148
VERTRETER_SAPUSE C 12 0 offset = 389
DB_MODE C 1 0 offset = 401
Value of import (input) parameter CHECK_AUTGEN (optional) (memory = 1):
Value of import (input) parameter SPRAS (memory = 1):
"D"
Value of export (output) parameter MESSAGE (memory = 72):
Value of export (output) parameter RETURNCODE (memory = 1):
"0"
Internal table VERTRETERLISTE (memory = 408):
MANDT EMPFAENGER_EMAIL ZEIT_VON ZEIT_BIS KZ_GRUNDSAETZLIC VERTRETER_EMAIL VERTRETER_SAPUSE DB_MODE
"500" "[email protected]" "20080505" "20080505" "" "[email protected]" "" "I"
1 rows
When the prior or update page fires the call_and_receive 2 times, should i see this debug info twice?
thanx
Edited by: Florian Endres on Sep 1, 2008 8:46 AM

Similar Messages

  • Observer event fires two times

    Hi!
    I am wondering why an observer fires two times the same
    notification type. I have created a simple example and the message
    box appears two times:
    var dsAll = new Spry.Data.XMLDataSet("all.xml",
    "/root/item[@TitleSectionTitle='Germany']", { sortOnLoad:
    "@orderLevel", sortOrderOnLoad: "ascending" });
    var allRelevantSitesData_observer = new Object;
    allRelevantSitesData_observer.onPostLoad = function(dataSet,
    data){
    alert("uniqueCall " + dataSet.getDataWasLoaded());
    dsAll.addObserver(allRelevantSitesData_observer);
    function test(land){
    dsAll.setXPath("/root/item[@TitleSectionTitle='"+land+"']");
    dsAll.loadData();
    //on click two message boxes will appear
    <a href="javascript:test('Australia')">change filter:
    Australia</a>
    <a href="javascript:test('Austria')">change filter:
    Austria</a>
    I am looking forward to a short reply.
    Regards
    libelle2000

    Hi !
    On Srpy 1.4 version the 1:n relation is not supported, but we
    have two new solutions for this already posted on preview section.
    http://labs.adobe.com/technologies/spry/preview/samples/data_region/NestedXMLDataSample.ht ml
    Instead of creating one master xml file that points to other
    details xml files, you can have a single xml and create there the
    1:n relation there. In this way your request is solved using a
    single xml file.
    Please follow the link I gave you above and see the examples
    from there.
    Diana

  • My dad and i use the same apple id, when he recieves a call, hes phone and my phone ring at the same time, why?

    my dad and i use the same apple id, when he recieves a call, hes phone and my phone ring at the same time, why?  and how do i fix this

    Settings > FaceTime > iPhone Cellular Calls > OFF

  • When i plug in my ipod to my PC it makes a sound like it doesnt accept it. on the ipod, it says connect to itunes because it was disabled many times. why wont it connect?P.S I know nothing about this kind of stuff

    when i plug in my ipod to my PC it makes a sound like it doesnt accept it. on the ipod, it says connect to itunes because it was disabled many times. why wont it connect?P.S I know nothing about this kind of stuff

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • Im on wifi but sometimes when i try and send imessages it wont let me for a period of time why?

    Im on wifi but sometimes when i try and send imessages it wont let me for a period of time why?

    If not thsi:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    One user reported that placing the iPod in the freezer fixed the problem. A trick that works frequently with iPhones:
    Settings > AirPlane Mode ON, Do Not Disturb ON
    Power down and wait 5-10 minutes
    Power up
    Settings > AirPlane Mode OFF, Do Not Disturb OFF
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then
    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • HT4623 I keep getting a message update is not available at this time, why?

    I keep getting a message update is not available at this time, why?

    Im working on the same issue and am at a loss. really disappointed with th apple right now. 
    Bring Steve Jobs Back!!!

  • We're sorry, we are unable to continue with your activation at this time. why does this do this? i need help

    We're sorry, we are unable to continue with your activation at this time. why does this do this? i need help please.

    Activation issues are typically the result of a device that has been hacked or jailbroken.  Is this the case?

  • Why is FF sucking up so much CPU time & Why can I not preform a search on FAQ's?

    Why is FF sucking up so much CPU time &
    Why can I not preform a search on FAQ's?
    FF is sucking up way too much CPU time from 30 to 98% for great/long periods of time on a Sony Vaio laptop platform running P4 CPU w/XP prof w/SP3 & 2Gb RAM.
    Why can I not preform a search on FAQ's so that might not have repeat a question that might have been asked previously?
    Searching 24xx pages is not my idea of how to spend precious time to find an answer that I am looking for.

    Safe mode or turning off the plugins does not work with this bug. If they are still installed firefox will open plugincontainer, the plugins need to be uninstalled or disabled at OS level.
    "''clearing Cookies will start an instance of plugin-container for almost all of the plugins installed on the system, regardless of enable/disable state for each one.''"

  • IPhone installs one app at a time, why?

    I have an iPhone 4S and an iPad 2.  Both are running iOS 6.1.3.  For the longest time, the way my iPhone and iPad install or upgrade apps has differed.
    For my iPad, the install/update process for multiple installs/updates works like this:
    1. Download first app
    2. Start installing the app and simultaneously start downloading next app.
    For my iPhone, the process works like this:
    1. Download app.
    2. Install app.
    3. Once install is finished, download next app.
    In other words, my iPad will download an app without waiting for the prior one to finish installing, while my iPhone downloads and installs one app at a time.  Because of this it takes longer to update apps on my iPhone than on my iPad.   This is case over both cellular and Wifi.
    I'm assuming the way the iPad is working is the correct method.  Why doesn't my iPhone work the same way?

    Whil you can run two apps at the same time, i.e. Music and Safari, you can only see one app at a time.

  • Both headphones and speakers play aloud at the same time, why???

    I have just purchased macbook pro... im in windows XP right now. I installed an mp3 player, Winamp, put my headphones on and the music comes through the headphones AND the speakers on the laptop at the same time. Why is this? I thought sound is muted on the computer once you plug the headphones in. Any ideas or suggestions is appreciated!! thanks
    -Allison
    email me: [email protected]

    I originally posted in another posting, didn't realize this was posted twice. In case, you didn't realize you posted twice,I'll copy my reply in both messages.
    The sound card on the macbook has a combined optical digital audio output/headphone out (minijack). So sound is being piped out both sound outputs in OSX and XP.
    The difference comes in because XP and the windows sound drivers for that card, do not know how to handle dual digital audio outputs and instead of shutting down the internal digital speakers(on our Macbook)when say your headphones are plugged in, windows just leaves both digital outputs open.
    To resolve this issue, contact Apple or the soundcard vendor to obtain a Windows XP driver that supports digital output on the dual-mode analog/digital capable sound card.
    To work around this issue, use analog speakers or headphones.
    Hope this Helps!
    Mac OS X (10.3)
    Mac OS X (10.2.x)
      Mac OS X (10.2.x)  

  • When I print from my pad it only print one page at a time, why?

    Why can I only print one page at the time when using the iPad?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • Brand new iPod keeps freezes all the time, Why?

    The problem started early this year with my old iPod classic (couple years old) was beginning to freeze all the time so I just thought it was time to get a new one so I did but the same probably happened straight away and just just died after 2 weeks of constant resting so I got a brand new replacement and the same thing is happening to this one too, my question is why does this still happen and how to stop it?

    You are still under warranty.  Call Apple Care, get a case number and keep it handy.

  • There is no sound generated by Beep.VI when using frequency and duration time. why? Thanks

    Hi,
    I want to generate some beeps with certain frequency and duration time.
    Setting "use system alert? (T)" true, I can hear the beep; Setting "use system alert? (T)" false, certain frequency and duration time, I can't hear any sound. Why?
    attachment is the VI.  
    LabVIEW 8.2.1, WinXP
    Attachments:
    BeepWithFreq&Width.vi ‏8 KB

    Your PC speaker only covers certain frequencies..  Mine goes as low as 37 Hz, which I cannot be distinguished from other lower frequencies.  I have to go up to 80 Hz before hearing any difference. I can hear up to 14000 Hz and barely 15000 Hz.  Now, you cannot compare this with a Hi-Fidelity sound system..
    As for setting False, it will not play anything.  So all appears normal.. And of course, if it does not play anything, the duration setting is ignored..
    R
    EDIT:  I just read the othe people's posts..  The frequency & duration settings work fine on my machine.  It is a PC, running Win-XP.  
    (Finally, I can say something positive about a PC running XP.. )
    Message Edited by JoeLabView on 08-04-2008 06:13 PM

  • Premier Pro is slowing the audio of a clip over time why?

    There is nothing wrong with the clip I look at it online before i download it and even when I download it the sound syncs up perfectly with the video, however when i bring the clip into premier pro and play it the sound starts off once again perfectly in sync, however by the end of the clip the sound it completely out of sync with the picture. when i go to export the video as a sequence it does the same thing where the clip starts out fine,  but over time becomes out of sync. what is Premier doing and why?

    What, EXACTLY, is inside the video file?
    Read Bill Hunt on a file type as WRAPPER http://forums.adobe.com/thread/440037
    What is a CODEC... a Primer http://forums.adobe.com/thread/546811
    What CODEC is INSIDE that file? http://forums.adobe.com/thread/440037
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/
    For Mac http://mediainspector.massanti.com/
    While your specific file may not be from an iphone, this MAY give you an idea
    Iphone won't edit easily because it uses a variable frame rate
    - A fix in message #22 http://forums.adobe.com/thread/934466

  • Can Adobe flash be installed in my kindle fire if not, why?

    can i install Adobe flash in my kindle fire in my kindle fire and if not, why?

    Please view below post.
    http://forums.adobe.com/message/4836271#4836271#4836271

Maybe you are looking for

  • Error while uploading ESS through SDM.

    Hi all,           We are on EP7.0 SP13 .I am deploying the ESS business package through SDM.I deployed  the PCUI_GP 600 SP06 through SDM.It went perfectly.Now I am deploying  the ESS 600 SP06.It is aborted in the middle by throwing an error like this

  • IPhoto 9 - Can't Edit photos. Only get black screen

    Recently I went to edit some photos I have in iPhoto 9.  When I click on a thumbnail to edit, I get nothing but black.  When I show file, the jpg is there and it opens fine in preview. I tried the iPhoto Library Manager. Made a new library and then t

  • Last kernel patch for Solaris 10 x86 screwed up my kernel

    Hi, The last kernel patch for Solaris 10 x86 (sorry I can�t remember the patch id, but the revision is 30), available from Sun Update Manager screwed up my system. The system is still booting but in maintenance mode: smf can't start because of reposi

  • Data Protection Manager 2012 to protect clients backup

    Hi All, I have a requirement to backup 200 clients data (including email PST files). I have below concerns to be clarified, 1. 200 LAN users, does DPM new version support compression? does it compress data and do the backup process? 2. Can we do bloc

  • Elements 7 - Where are my pen tablet options???

    Hi. I use a Wacom Bamboo pen tablet for editing my pictures on my Notebook. OS is Windows Vista Home Premium. In the editor of PSE 5 I always could adjust tablet-options (for the brush tool for example). Now that I updatet to PSE 7 these tablet optio