865: X_retcode := '2';
866: X_errbuf := 'Could not the model contract or it may not have Bill to/Ship to Site Use, Sales person, Accounting rule, Invoicing Rule.';
867: WHEN FND_API.G_EXC_ERROR THEN
868:
869: FND_MSG_PUB.Count_And_Get
870: (p_encoded => FND_API.G_FALSE
871: ,p_count => l_msg_count
872: ,p_data => l_msg_data
873: );
876:
877: WHEN OTHERS THEN
878: X_errbuf := 'Stmt '||l_stmt_num||' '||SQLCODE || substr(SQLERRM, 1, 200);
879: X_retcode := '2';
880: FND_MSG_PUB.Count_And_Get
881: (p_encoded => FND_API.G_FALSE
882: ,p_count => l_msg_count
883: ,p_data => l_msg_data
884: );