Hi @rekha_devi
There is a lot of data associated with saving configrable data. There is a few ways of doing this. The simples being fetching the configurable data from the typeinstance on the product and then setting it again before saving.
// Mage_Catalog_Model_Product $product
$configurableAttribtues = $product->getTypeInstance()
->getConfigurableAttributesAsArray();
This code will return an array contain all attronites amd the values for them. You can mod what you need and set it again dirrectly on the product object, and then save
$product->setConfigurableAttributesData($configurableAttributes);
try {
$product->save();
} catch(Exception $e) {
Mage::logException($e);
}
I hope this helps :-)