Hoping to get a leg up on rival Oracle Corp., SAP AG is gobbling up a pricing and demand software vendor that caters to the retail industry, a market in which SAP’ is looking to boost its presence.