Problem in Contract update  SRM

Hi experts,
I'am trying tlo update a contract using the FM :   'BBP_PD_CTR_UPDATE' . I use the folowing logic :
   * Lock contract
    CALL FUNCTION 'BBP_PD_CTR_LOCK'
      EXPORTING
        i_header_guid = l_header_updated-guid.
*Update
    CALL FUNCTION 'BBP_PD_CTR_UPDATE'
      EXPORTING
        i_park                  = 'X'
        i_header                = l_header_updated
        iv_with_change_approval = ' '
        it_conditions           = lt_conditionsu
      TABLES
        i_item                  = wt_item2
        e_messages              = lt_message.
    CALL FUNCTION 'BBP_PD_CTR_SAVE'
      EXPORTING
        iv_header_guid = l_header_updated-guid.
    " Unlock contract
    CALL FUNCTION 'BBP_PD_CTR_UNLOCK'
      EXPORTING
        i_header_guid = l_header_updated-guid.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
The contract is updated correctly but the problem  is the statut of the contract in the portal was changed from 'Realesed' to ' Approved'.
Any Idea,
best regards

Hi Abhay
Please check SAP Note 1011267 - FAQ - Questions about Contract Gen
There is a clause in the note for the error mentioned by you. There is a solution where SAP can help you if yours is a hosted environment.
If yours is a On-premise,you can restart the Contract Generation Webservice, due to some bad data going thru
Download the note, you will find the details that I have mentioned below
Problem statement
Question: There is an error that states "There is a problem with the
Contract Generation web service. Please contact your syustem
administrator
Solution
This error indicates that the contract gen server is not running. This can
happen when bad data is passed through the server. The operations group at
SAP can restart this for you. Contact Support to have this initiated
Let me know if this has helped you
Cheers
tridip
Please award points for useful answers

Similar Messages

  • Problems in Contract Replication SRM

    Hi Experts,
    I need your help....i'm trying to make the contract replication from backend system by the program BBP_CONTRACT_INITIAL_UPLOAD.
    But there is a message erro in coditions as down
    ''End of discount condition validity > end of price condition validity''
    The replicate will work but all the contract cames in SRM with memorize status and i have to edit all the contracts...
    if i change the date of condition in r/3 contract, i can make the replicate without problem. But this is not a correct solution.
    there is a way to solve this?
    I saw the notes in SAP but my Support Package is the last one (SAPKIBKT11)
    Thanks all
    gustavo

    Hello Gustavo,
    We are facing the same problem and are trying to figure out the solution from you inputs.You have suggested 2 options
    1. BADI : BBP_CTR_BE_CREATE
    But this BADI will be called when a contract is to be created in the backend and how will this BADI be helpful when we are replication/uploading contracts from backend R3 to SRM
    2. Maintain same pricing conditions in both R3 and SRM: could you explain in details what you are trying to say.
    Thanks
    Raghu

  • Updating SRM contracts from R/3 to SRM....

    Hi all,
    I am working in SRM, my requirement is to update the SRM contracts from R/3 to SRM and if any changes happen in R/3 contracts (previously updated contracts to SRM) then it should replicate those changes in SRM contracts also.
    I found the program BBP_CONTRACT_INITIAL_UPLOAD (This program can be used to upload contracts from ERP to SRM. A separate contract in SRM would be created for each successfully transferred ERP contract.)
    My question is, so if any changes happen in R/3 contracts it should update SRM contracts also.
    Please let me know the solution how to solve this?
    Highly appreciated any kind of help..
    Thanks
    Rajesh.

    Hi Rajesh,
    I think that your scenario is very risky as there is no master system for contract : one time it is srm and after it can be r/3 !
    Besides this comment, you can search the forum and find some threads for contract replication in both ways (but no activated in the same time...)
    Kind regards,
    Yann

  • Updating purchasing contracts in SRM from external system ( XI )

    Hello friends,
    We have a requirement to update / create purchasing contracts in SRM from external system ie e-sorcing . We are getting the structure of contract from
    xi proxy.
    We are using function modules
    BBP_PD_CTR_CREATE
    BBP_PD_CTR_UPDATE
    to create / update contracts.
    The issue is , how we will come to know an existing contract is got updated in
    the external system and , is there any function module/ bapi available to get those
    updated contract records or is there any way to do this.
    It would be great if anybody can provide some helpful information.
    Thanks..
    Jayaram

    Hello BABA,
    Try this link. Hope this helps.
    [Re: Creating SRM PO with Smartforms BBP_PO;
    Please discuss this issues in SRM- General forum for better replies.
    Cheers,
    Suvendu

  • Facing problem in creation Central contract in SRM 7.0 System

    HI Experts,
    We have implemented Classic scenario in P2P business application.
    We are facing problem in creation Central contract in SRM system as we using SRM 7.0 .
    Error show  Application error in back-end system  (SAP SRM outline agreement* & Differing time interval
    Status show Document complited ->Distribution Incorrect >Created>Complate > Released.
    Please Reply
    Sharad

    Hi Sharad
    some mapping error with ECC and SRM
    expand the COND /BLOARD . you must get some clue - in bd87 51 error code
    did you map pricing condition type with ECC and SRM?
    kindly check BADI mapping in SRM
    Muthu

  • Contract updation for Delivered material quantity

    Hi All,
    I have a problem related, contract and release order updating with reference to delivered material quantity.
    for example let's say contract is created for 1000 units of material A, after that sales order with reference to contract is created for 500 units and delivery is created for 300 units then remaining order quantity cannot be delivered as  customer master is maintained so.
    Now I want to create sales order for 700 units of 'A' but system is not allowing to do so saying the 500 units are already referenced.
    If i use rejection reason in sales order still system is not allowing to create a new sales order with 700 units.
    How to solve this issue?
    Please Help
    Thanks and regards
    Amit

    Hi Manam,
    thank you very much for your immediate reply.
    But the issue is a sales order will have only one delivery as the sales order contains freight amount at header level which helps calculate the excise duties as the prices quoted to customer include freight and duties.
    So now is that possible to update the delivered quantity at contract level so that undelivered quantity can be referenced to create another sales order and can be delivered.
    To describe the process:
    A contract will be created, a sales order will be created for required delivery quantity then delivery will be created. In case due to some problems if delivery quantity is less than sales order then the undelivered quantity will be getting updated in sales order. and the sales order undelivered quantity will be rejected and the contract will get updated.
    Please help.
    Regards
    Amit

  • Upload Contracts in SRM

    Hi Guys,
    When trying to upload the contracts data in SRM using the following process.
    1. Contract Management -- > Upload contracts -- > Upload
    We are inputting the file from the existing contract using the download option. After doing this i am facing an error called,
    The file cannot be read.
    Please help me in this issue. And please proved any file templete for it. Or do i need to modify the download flat file as it already contains the Document number and the GUI id.
    Thanks in Advance,
    Mohit.

    Hi Mohit,
    If you want to upload R/3 contracts to SRM you can run the below mentioned report using SA38 and can upload the contracts in SRM.
    <b>BBP_CONTRACT_INITIAL_UPLOAD</b>
    However any changes made in the contracts in R/3 after the upload will not get updated in SRM.
    The otherway is to publish contracts as catalogs using XI.
    Hope this resolves your query. Clarifications are welcome.
    Assign points for suitable answers.
    Rgds,
    Teja

  • Backend PO number does not update SRM follow-on doc section

    Hi Guys,
    We are on SRM5.0 and ECC6.0 with Classic scenario.
    We are developing a logic in BADI BBP_CREATE_BE_PO_NEW (method FILL_PO_INTERFACE1) to determine if a Goods Receipt is required for some business conditions. Below is the logic.
    1.If GR is required then create a PO with External number range in backend. This is working fine.
    2.If GR is not required then create a PO with internal number range in backend. PO_NUMBER field will be cleared in the BADI so that backend system creates a PO with internal number range. This is working fine.
    But the problem in the point 2 above is, internal PO# is not reflecting in the follow-on doc section in SRM. I noticed that SRM allots a PO# in table BBP_PDBEI with backend external number range before it transfers the data to backend. We tried to delete the PO# in BBP_PDBEI-BE_OBJECT_ID in the same BADI so that backend system can updates this field BE_OBJECT_ID in SRM with internal number PO. We did not succeed in doing this.The SC status shows Approved but do not show the PO#.
    Can any one tell me how to populate the backend internal number PO in the Follow-on doc? Is this the right way of doing or is there any better way?  Did any one developed such logic?
    Please share your thoughts and experience.
    Thanks in advance..
    Jagdish

    I noticed that SAP takes the number sequence from number range PO and updates BBP_PDBEI field before sending the Purchase order to ECC. If the different number range is defined in IMG "Define num range per Backend system for Follow-on docs" then system takes that num range. Then BBP_GET_STATUS_2 checks the PO# and updates SRM if the PO# matches otherwise it wont update.
    But in our case we defined num range 44 for POs with Goods receipt and would like to assign another number range 22 for POs with NO GR. We can assign different PO doc type (ZEC) for NO GR by using BADI BBP_CREATE_BE_PO_NEW. But how to assign num range 22 for ZEC dynamically in BADI. System is trying to take num range 44 by default.
    Is there any way we can assign different number range in SRM BADI?
    Thanks,
    Jagadish

  • Updating SRM 7.0 purchase order  from R/3 ECC 6.0

    Hi,
    we have a situation where we need to update srm po (account assignment ) after GR . we were able to update in R/3 .
    Till now SRM version is 4.0 there was no problem and purchase order is only available in R/3 . Now SRM system getting updated to 7.0 and as in SRM 7.0 purchase order is  saved in SRM system too . To avoid the inconsistency we have to update the po in SRM as well.
    Is there any way to update in srm from r/3 ecc 6?
    Thanks ,
    Rhea.

    Hi Masa,
    We use some customization during good receipt so during GR we change the account assigment details of po .
    We got a method to change the ECPO . so it is possible to change ECPO(copy of srm ) in ERP.
    What I am looking at is after changing the srm po copy in ERP I want to update in SRM too. so that both has same values (account assignment) . Not sure at this point how can be done (May thru BAPI/ RFC).
    so is it possible to change po details in SRM from R/3.
    Rhea.

  • Transferring contract from SRM to R/3

    When I trigger a contract from SRM to R/3, then
    1) If there is no material code in BID then, while transferring account assignment gets changed from K(cost centre) to U (unknown).
    2) If there is material code in BID then account assignment category comes as blank henceforth contract does not get made and throw an error.
    I am tranferring data by IDOC.
    While if I make a PO from this bid then it works perfectly fine.
    Pls. guide. Thanks
    Parag
    09881240969

    Rajesh,
               We are facing the same problem
    Is your issue resolved, can send us the solution.
    Thanks
    Sanjay

  • Multiple Samsung Stratosphere problems after FF1 update

    There have been multiple posts on various issues users have found after the recent Stratopshere FF1 update.  Some were replys to older posts and some only touched on a single issue.  I wanted to consolodate into one thread, and hopefully get teh attention of Verizon to maybe reply here.
    For reference, a lot has been discuss here --> https://community.verizonwireless.com/message/874446
    Summary:  Verizon and Samsung have finally updated the Stratosphere almost 1 year after release.  This updated the phone from Android 2.3.5 to Android 2.3.6.  Going by filename, this is known as the FF1 update.   This update went live at the end of August 2012, and most users were upgraded before mid September 2012.
    There were some noticable changes in this update:
    -Lock screen has changed.  The puzzle piece and glass lock options have been removed.  New options have been added, such as facial recognition unlock.
    -Call answering screen has changed, introducing the option to ignore call with a message.
    -Camera now has digital zoom ability.
    -Ability to uninstall the 2 games the phone comes with (Need for Speed and Lets Golf)
    -Phone icon has changed ever so slightly
    -Wifi icon now included up and down arrows to indicate data is being sent or recieved
    -Wallpaper no longer "stretches" over multiple screens - ie, it no longer scrolls as you move from screen to screen
    -The visual voicemail app has been improved (I have personally not used this feature)
    -Callback number is now supported in text / picture messages
    -Android core OS updated from 2.3.5 to 2.3.6 (both versions are still Gingerbread)
    -Update to how the device deals with the end of scrolling.  It used to rubber-band bounce back, now it will just give a green bar and expand the bar as you scroll.  (I cannot fault Samsung for this change as this was at teh core of an Apple lawsuit and has been changed in newer versions of Android.)
    -(I am sure there are more.  please list any others you may have noticed)
    I have found some problems, and others have confirmed that this is (at least) somewhat widespread:
    -The biggest problem is with wifi connectivity.  Upon an initial connection to wifi, everything works great.  After somewhere between 15minutes and 2 hours, problems start happening.  Its as if the wifi keeps hanging or reconnecting.  Download speeds (tested with the SpeedTest.com app) slow to about one third of normal.  Apps like Facebook that require a constant connection will just time out.
    -It appears the signal strength for 3g and 4g connections is lower.  There are places where I used to get a 4g connection, and now I only get 3g.  Some palces I fall back to just 2g digital.
    Another minor issue i found was with text messages.  When you reply to a message, it no longer automatically focuses the text in the input box.  You have to first click into the box to start typing.  Not a huge deal, but one more step to take over and over.  Minor annoyence.
    At my house, I struggle to get a 3g or 4g signal.  I depend on wifi for my data connection.  So with the wifi connection problem introduced by teh FF1 update, my phone is somewhat useless to me now while at home.  Here are teh troubleshooting steps I have been through so far to attempt to fix the wifi problem:
    -Complete factory reset on my phone.  (did not help)
    -Pull battery and SIM card out of phone for 15 minutes.  (did not help)
    -Went to a Verizon store.  The guy at the store was helpful, and said he also had a Stratosphere and was getting the same wifi problems after the update.  He said all he could do was to send me out a replacement phone. I got the replacement phone, and it had the same problems.
    -I read in multiple palces that Android 2.3.6 has a bug within wifi and DHCP.  Apparently if you have a DHCP lease set to "forever", the phone will keep requesting a new address.  Setting the DHCP server on the router to something like 2 weeks, or using a static IP is supposed to solve this.  I have a NetGear N900 router, and I can not change teh DHCP lease time.  It appears, however, that my router is not sending out "forever" leases.  But just to make sure, I gave my phone a static IP.  (None of these steps made any difference).
    The only thing that temporarily fixes the problem is a reboot of the phone.  This will again give you anywhere from 15min to 2 hours of good wifi use before problems start happening.
    I have now had this update for over a week, and on 2 phones.  I still can't maintain a wifi connection for much longer than 15 minutes without problems starting up.
    I am asking Verizon or Samsung to at least confirm this issue if possible.  Maybe there are newer revs of the Stratopshere hardware that don't have this problem.  Or there is something unique about my (and apparently others) situation.  But it seems like Verizon's current stance is to offer a repalcement phone (as currently all Stratospheres are within their 1 year manufacture warranty as the phone has not been ouy for quite 1 year yet).
    I am asking for a workaround for this problem, or a true fix adressed by a new software update, or at least allow us to roll back to the original Andorid 2.3.5 software.
    I have had my original Stratosphere for almost a year with no wifi problems - then get the FF1 update and have had nothing but problems on 2 different phones.
    Thank you for your time.

    Thanks for starting a comprehensive thread on problems with this update. I want to add one more.
    I have Bluetooth in my car (a 2004 model), and previously the phone has connected to it practically instantly when I start the car. Since the update, I have never been able to connect the phone to the car by Bluetooth. Several times the phone has made a standard notification sound at the moment it should be connecting to Bluetooth, though no notification appears. I have no idea what that could mean.The car's Bluetooth shows up as paired in the list of devices in Settings > Wireless & networks > Bluetooth settings. I haven't seen this widely reported as an update issue, but perhaps some others have experienced it too.
    UPDATE: I finally did some testing, and found that the notification was to signal the extremely brief appearance of a dialog indicating that the car's Bluetooth was requesting a connection. Accepting that request let the phone connect with the car, and calls went to the car's sound system as they should. When I turned the car off and back on (just the electrical system; not wasting any gas on this!), the connection was established immediately, so apparently the acceptance only had to be done once. Nevertheless, it did have to be done, and the dialog notification disappears within seconds. I believe it would have been possible to go into Bluetooth settings and accept the connection request there if I missed the notification; but not seeing the notification, I might not know to do this.
    One further observation: When I turned the phone's Bluetooth off and back on after a connection had been established, leaving the car on the whole time, the two did not reconnect. I believe that may be different from before the update, but I'm not really sure.
    Message was updated by David Rensberger

  • Hi I am having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and loading then I get an error message saying unable to download app. Eventually,after many attempts it works.

    Hi Guys - for a few days I have been having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and downloading then eventually says unable to download app. Sometimes after many attempts it wil eventually work. I tested it on an old iPhone 3G and got the same problem so it is not an iOS 5 issue. My WI-FI connection is working fine. I was wondering if this is an App Store problem? Anyone else in the UK having this problem?

    Hi John
    iTunes Support wasn't of any use to me.
    I have also been having another problem - with BBC iPlayer and other video streaming not working due to insufficient bandwidth, despite my overall download speed being consistently around 50Gb.  This is also affecting AppleTV downloads
    I am using Virgin Media as my ISP, and was wondering whether you do as well.  This might be the common thread.
    -Bernard

  • Problem with an update page.

    I have a problem with an update page on my website
    Here's how it work
    values are defualted in from the advert table  - this works fine
    I should then be able to change the fields and click on the update button
    This works fine but ONLY when the O_year field is populated. 
    There doesn't seem to be anything special about the O_year field
    I thought spry text validation would of been causing the issues, but I removed them and have the same problem.
    For some reason the POST_MMupdate value is not being set to 'form4', which it is doing if O_year is set.
    Please can someone have a look at this, code,
    Also, is there a way of 'stepping through' dreamweaver code to debug it?
    Thanks
    Adam
    $colname_Advert = "-1";
    if (isset($_GET['advert_id'])) {
      $colname_Advert = $_GET['advert_id'];
    mysql_select_db($database_guitarswap_db, $guitarswap_db);
    $query_Advert = sprintf("SELECT * FROM advert WHERE advert_id = %s", GetSQLValueString($colname_Advert, "int"));
    $Advert = mysql_query($query_Advert, $guitarswap_db) or die(mysql_error());
    $row_Advert = mysql_fetch_assoc($Advert);
    $totalRows_Advert = mysql_num_rows($Advert);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form4"))
        //Сheck that we have a file
    if((!empty($_FILES["PictureLocation"])) && ($_FILES['PictureLocation']['error'] == 0))
          //Check if the file is JPEG image and it's size is less than 350Kb
          $filename = basename($_FILES["PictureLocation"]["name"]);
          $ext = substr($filename, strrpos($filename, '.') + 1);
          if (($ext == "jpg") && ($_FILES["PictureLocation"]["type"] == "image/jpeg") &&
        ($_FILES["PictureLocation"]["size"] < 350000))
            //Determine the path to which we want to save this file
              $newname = dirname(__FILE__).'/upload/'.$filename;
              //Check if the file with the same name is already exists on the server
              if (!file_exists($newname))
                //Attempt to move the uploaded file to it's new place
                if ((move_uploaded_file($_FILES['PictureLocation']['tmp_name'],$newname)))
                       // echo "It's done! The file has been saved as: ".$newname;
                else
                       // echo "Error: A problem occurred during file upload!";
            else
                 // echo "Error: File ".$_FILES["PictureLocation"]["name"]." already exists";
          else
             // echo "Error: Only .jpg images under 350Kb are accepted for upload";
        else
         // echo "Error: No file uploaded";
        $filename=$row_Advert['PictureLocation'];
        // set default opentoalloffers
    if (!isset($_POST['checkopentoalloffers']))
        $_POST['checkopentoalloffers'] = 'n';
      $updateSQL = sprintf("UPDATE advert SET PictureLocation=%s, O_Make=%s, O_Model=%s, O_Country=%s, O_Year=%s, O_Colour=%s, O_Body=%s, O_Neck=%s, O_Fingerboard=%s, O_Pickups=%s, `value`=%s, `condition`=%s,  W_Make=%s, W_Model=%s, W_Country=%s, W_Year=%s, W_Colour=%s, W_Body=%s, W_Neck=%s, W_Fingerboard=%s, W_Pickups=%s, Comments=%s, opentoalloffers=%s, ChangeFlg = %s  WHERE advert_id=%s",
                           GetSQLValueString($filename, "text"),
                           GetSQLValueString($_POST['O_Make'], "text"),
                           GetSQLValueString($_POST['O_Model'], "text"),
                           GetSQLValueString($_POST['O_Country'], "text"),
                           GetSQLValueString($_POST['O_Year'], "date"),
                           GetSQLValueString($_POST['O_Colour'], "text"),
                           GetSQLValueString($_POST['O_Body'], "text"),
                           GetSQLValueString($_POST['O_Neck'], "text"),
                           GetSQLValueString($_POST['O_Fingerboard'], "text"),
                           GetSQLValueString($_POST['O_Pickups'], "text"),
                           GetSQLValueString($_POST['value'], "int"),
                           GetSQLValueString($_POST['condition'], "text"),
                           GetSQLValueString($_POST['W_Make'], "text"),
                           GetSQLValueString($_POST['W_Model'], "text"),
                           GetSQLValueString($_POST['W_Country'], "text"),
                           GetSQLValueString($_POST['W_Year'], "date"),
                           GetSQLValueString($_POST['W_Colour'], "text"),
                           GetSQLValueString($_POST['W_Body'], "text"),
                           GetSQLValueString($_POST['W_Neck'], "text"),
                           GetSQLValueString($_POST['W_Fingerboard'], "text"),
                           GetSQLValueString($_POST['W_Pickups'], "text"),
                           GetSQLValueString($_POST['Comments'], "text"),
                           GetSQLValueString($_POST['checkopentoalloffers'], "text"),
                           GetSQLValueString('y', "text"),
                           GetSQLValueString($_POST['advert_id'], "int"));
      mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
        $updateGoTo = "Member2.php";
         if (isset($_SERVER['QUERY_STRING'])) {
           $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
           $updateGoTo .= $_SERVER['QUERY_STRING'];
         header(sprintf("Location: %s", $updateGoTo));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="Layout3.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
        background-color: #FFF;
        margin-left: 20px;
    .twoColFixLtHdr #container #main3 #form1 div fieldset {
        border: thin ridge #CCC;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    //-->
    </script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
      <div id="header">
        <div id="Righty">
          <ul id="MenuBar2" class="MenuBarHorizontal">
        <li><a href="index.php">Search</a>      </li>
        <li><a href="Member2.php">Members</a></li>
      </ul>
      <p> </p>
    </div>
    <span id="LoginDiv">
        <?php
          if (isset($_SESSION['MM_Username']))
            echo "hello ". $_SESSION['MM_Username']. "";
            echo " <a href='Logout.php'>Log out</a> ";
        else
            echo "
                <a href='Login.php'>Login</a> / <a href='Register.php'>Register</a>
        ?>
        </a></span>
    <div id="Middle">
      <h1 align="center">GuitarSwap</h1>
    </div>
      </div>
      <div id="sidebar1">
        <h4>Members Area</h4>
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="Member2.php">My Adverts</a></li>
          <li><a href="NewAdvert.php">Create new Advert</a></li>
          <li><a href="UpdateUserDets.php">My Account</a></li>
        </ul>
        <h3>  </h3>
      </div>
      <div id="mainContent">
        <h4>Update Advert</h4>
        <!-- end #mainContent -->
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <div id="main3">
        <div id="main">
          <fieldset>
            <legend>Please update advert details and confirm</legend>
            <form action="<?php echo $editFormAction; ?>" enctype="multipart/form-data" method="post" name="form4" id="form4">
              <input type="hidden" name="advert_id" value="<?php echo $row_Advert['advert_id']; ?>" />
              <p></p>
              <table width="650" align="center">
                <tr valign="baseline">
                  <td width="17" rowspan="15" valign="middle" nowrap="nowrap"><?php echo "<img src='upload/" .$row_Advert['PictureLocation']."' width='64' height='180'/>" ?></td>
                  <td width="133" align="right" nowrap="nowrap"> </td>
                  <td width="240" align="center" bgcolor="#CCCCCC"><strong>Offered</strong></td>
                  <td width="240" align="center" bgcolor="#CCCCCC"><strong>Wanted</strong></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Make:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Make" type="text" value="<?php echo $row_Advert['O_Make']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Make" type="text" value="<?php echo $row_Advert['W_Make']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Model:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Model" type="text" value="<?php echo $row_Advert['O_Model']; ?>" size="30" maxlength="30" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Model" type="text" value="<?php echo $row_Advert['W_Model']; ?>" size="30" maxlength="30" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Country:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Country" type="text" value="<?php echo $row_Advert['O_Country']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Country" type="text" value="<?php echo $row_Advert['W_Country']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Year:</strong></td>
                  <td bgcolor="#CCFFCC"><span id="sprytextfield1">
                  <input name="O_Year" type="text" value="<?php echo $row_Advert['O_Year']; ?>" size="4" maxlength="4" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span></span></td>
                  <td bgcolor="#CCFFFF"><span id="sprytextfield2">
                  <input name="W_Year" type="text" value="<?php echo $row_Advert['W_Year']; ?>" size="4" maxlength="4" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span></span></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Colour:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Colour" type="text" value="<?php echo $row_Advert['O_Colour']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Colour" type="text" value="<?php echo $row_Advert['W_Colour']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Body:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Body" type="text" value="<?php echo $row_Advert['O_Body']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Body" type="text" value="<?php echo $row_Advert['W_Body']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Neck:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Neck" type="text" value="<?php echo $row_Advert['O_Neck']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Neck" type="text" value="<?php echo $row_Advert['W_Neck']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Fingerboard:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Fingerboard" type="text" value="<?php echo $row_Advert['O_Fingerboard']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Fingerboard" type="text" value="<?php echo $row_Advert['W_Fingerboard']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Pickups:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Pickups" type="text" value="<?php echo $row_Advert['O_Pickups']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Pickups" type="text" value="<?php echo $row_Advert['W_Pickups']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Condition:</strong></td>
                  <td bgcolor="#CCFFCC"><label for="condition">
                    <select name="condition" size="1" id="condition">
                      <option selected="selected" value="" <?php if (!(strcmp("", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>---select---</option>
                      <option value="immaculate" <?php if (!(strcmp("immaculate", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>immaculate</option>
                      <option value="excellent" <?php if (!(strcmp("excellent", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>excellent</option>
                      <option value="good" <?php if (!(strcmp("good", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>good</option>
                      <option value="well used" <?php if (!(strcmp("well used", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>well used</option>
                      <option value="poor" <?php if (!(strcmp("poor", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>poor</option>
                  </select>
                  </label></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Value:</strong></td>
                  <td bgcolor="#CCFFCC"><span id="sprytextfield3">
                  <input name="value" type="text" value="<?php echo $row_Advert['value']; ?>" size="11" maxlength="11" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td align="right" valign="top" nowrap="nowrap"><strong>Comments:</strong></td>
                  <td bgcolor="#CCFFCC"><textarea name="Comments" cols="25" rows="3"><?php echo $row_Advert['Comments']; ?></textarea></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Picture location</strong></td>
                  <td bgcolor="#CCFFCC"><label for="checkopentoalloffers"></label>                <input type="file" name="PictureLocation" value="<?php echo $row_Advert['PictureLocation']; ?>" size="20" /></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td height="26" align="right" nowrap="nowrap"><strong>Open to all offers:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="checkopentoalloffers" type="checkbox" id="checkopentoalloffers" value="y" <?php if (!(strcmp($row_Advert['opentoalloffers'],"y"))) {echo "checked=\"checked\"";} ?> /></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
              </table>
              <p> </p>
              <div id="submitdiv">
                <input type="hidden" name="MM_update" value="form4" />
                <input name="submit button" type="submit" id="submit button" value="Update Advert" />
              </div>
              <div id="exitdiv">
                <label for="button15"></label>
                <input name="button" type="button" id="button15" onclick="MM_goToURL('parent','Member2.php');return document.MM_returnValue" value="Exit" />
                <label for="button16"></label>
              </div>
              <p> </p>
            </form>
          </fieldset>
          <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur"], minValue:1900, maxValue:2010, isRequired:false});
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur"], minValue:1900, maxValue:2010});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer", {minValue:1900, maxValue:2010, validateOn:["blur"], isRequired:false});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "currency", {validateOn:["blur"], isRequired:false});
          </script>
          <br class="clearfloat" />
      <!-- end #container -->
    </div></div></div>
    <script type="text/javascript">
    <!--
    var  = new Spry.Widget.MenuBar("", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($Advert);
    if (is_resource($Result1)) mysql_free_result($Result1);
    ?>

    Please note,
    Removing I investigated spry a little more, in the end I settled for removing spry altogether,
    Maybe it was because the text field in a $GET (for the default) AND a $PUT (for the update)

  • HT1871 Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Hello i have one IPhone 4S and I use 3G net in my mobile sometime I have problem with temperature in my phone at the SIM card or battery how can I fix this problem. By update or version of 6.1.3

    Could it be because the SIM card got damaged while I cut it to fit the IPhone?
    Very likely. Hard to believe the carrier in Mexico doesn't have a micro-SIM card available.
    Or somehow the Chinese carrier found out and locked it?
    No, which is not possible.
    What can I do? Get a new SIM and see if it works again?
    Get a micro-SIM from the carrier in Mexico that you don't have to manually cut down. If that carrier doesn't provide one, switch to another carrier that is not so low-budget.

  • How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    You've logged into your account and viewed your purchase history and there aren't any error messages shown (e.g. 'problem with a previous purchase'), and you haven't got any purchases due (e.g. pre-orders and/or subscriptions) : Why can’t I select None when I edit my Apple ID payment information ?

Maybe you are looking for

  • In search of a good HD Camcorder

    I have newborn twins and am in dire need of a good camcorder. My requirements are either a hard drive or Flash model and will spend up to US$1200.00 I have read certain articles that state it may be difficult to find camcorders that work nicely with

  • IPod 4th gen has lots of lines over screen looks like bar codes and can't see display?

    My step sons iPod I just a year old but for about 3 months it's been coming up with lots of lines on screen looks like bar code. Now he can't see anything on screen due to his. He has not been on it for a while as he has a 2nd one from his mum but I

  • Getting SSD Drive for my Core i5 Laptop

    still-learning wrote: I am sorry Sid, I didn't get your last sentence. " it literally turns them into another computer". I am sorry I am very confused and my another reason for upgrading to 2.5" SSD drive is to welcome the new Windows 10 and ofcourse

  • Zen Micro 5GB player stop after playing an al

    Just got the player last week and it's COOL. Does the player play non stop from album to another? If I have only 2 songs by an artist, the player stops after the 2 songs is over (if I did not put in repeat). Please help.

  • Server getting restarted

    Dear All, I am getting error massage and my server is getting restarted. We are using win2003 sp1. The system has detected the following event: SNMP Trap:         736 Date time:         06/09/2009  01:14:54 PM Computer:          ***** Source: