The 30-share Sensex ended up 31 points at 19,722 and the 50-share Nifty was up 15 points at 5,995.
Markets had firmed up after better-than-expected April WPI but pared gains in late trades after profit taking was seen at higher levels.
India's wholesale price inflation slowed for a third straight month in April to 4.89 per cent against 5.96% in the previous month, official release showed today.
This is the lowest level in 41 months last seen in November 2009.
The Nikkei share average edged down on Tuesday, after two gaining days, as interest rate-sensitive sectors such as real estate and financials succumbed to signs of rising long-term interest rates.
The Nikkei ended down 0.2%, Hang Seng was down 0.3%, Shanghai Composite fell 1.1%while Straits Times ended up 0.1%.
European shares were trading lower on Tuesday as investors remained cautious ahead of data on German investor confidence and industrial production in the euro-zone.
The CAC-40, DAX and FTSE-100 were down 0.1-0.3% each.
The sectoral indices on the BSE were led by Healthcare index up 0.7% followed by Power, Oil & Gas, IT indices.
Select oil and gas shares were up after a report in the The Financial Express said that ONGC and Oil India have requested the government to reduce the discounts they must offer PSU refiners on crude purchases because of declining crude oil prices.
ONGC was among the top Sensex gainers up 1.8% at Rs 326 while GAIL India was up 1.6% at Rs 337. Among other oil shares, Oil India was up nearly 2% at Rs 560.
HDFC ended up 0.7% at Rs 869. Motilal Oswal in a results review said current valuations are reasonable, considering company's growth potential, sound business fundamentals and substantially improved subsidiaries' performance (life insurance business has turned profitable).
The brokerage has Buy rating with a SOTP-based target price of Rs 970.
Tata Motors gained 1% to end at Rs 301 after its UK-owned Jaguar Land Rover reported 12% growth in April to 28,503 vehicles compared to the same month last year. For the first four months of 2013 sales grew 16%.
Software
Balooning trade deficit, gold import batter Nifty
Choosy FIIs up stake in 18 Nifty firms to record high
Sensex ends shy of 20,000; ITC, HDFC surge
Markets end choppy session on a flat note
Stir at Mahindra's Igatpuri plant called off