<?xml version="1.0"?><ownershipDocument><schemaVersion>X0201</schemaVersion>    <documentType>4</documentType><periodOfReport>2003-07-28</periodOfReport><notSubjectToSection16>0</notSubjectToSection16><issuer><issuerCik>0001077814</issuerCik><issuerName>BLUE MARTINI SOFTWARE INC</issuerName>        <issuerTradingSymbol>BLUE</issuerTradingSymbol></issuer><reportingOwner><reportingOwnerId><rptOwnerCik>0001205979</rptOwnerCik><rptOwnerName>VERHALEN ANDREW W</rptOwnerName></reportingOwnerId><reportingOwnerAddress><rptOwnerStreet1></rptOwnerStreet1><rptOwnerStreet2>1000 WINTER STREET, SUITE 4500</rptOwnerStreet2><rptOwnerCity>WALTHAM</rptOwnerCity><rptOwnerState>MA</rptOwnerState><rptOwnerZipCode>02451</rptOwnerZipCode><rptOwnerStateDescription></rptOwnerStateDescription></reportingOwnerAddress><reportingOwnerRelationship><isDirector>1</isDirector><isOfficer>0</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>1</isOther><otherText>General Partner of 10% Owner</otherText></reportingOwnerRelationship></reportingOwner><nonDerivativeTable><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-07-28</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>J</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F1" /></transactionCoding><transactionAmounts><transactionShares><value>937172</value></transactionShares><transactionPricePerShare><value>4.30</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>0</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Partnership</value><footnoteId id="F2" /></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-07-29</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>J</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F3" /></transactionCoding><transactionAmounts><transactionShares><value>103340</value></transactionShares><transactionPricePerShare><value>4.30</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>790</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Partnership</value><footnoteId id="F4" /></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-07-29</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>J</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F3" /></transactionCoding><transactionAmounts><transactionShares><value>10049</value></transactionShares><transactionPricePerShare><value>4.30</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>10049</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Holds Shares Indirectly through a Trust</value></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-07-29</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>J</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F3" /></transactionCoding><transactionAmounts><transactionShares><value>21</value></transactionShares><transactionPricePerShare><value>4.30</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>21</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Trust for Benefit of Minor Child</value><footnoteId id="F5" /></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-07-29</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>J</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F3" /></transactionCoding><transactionAmounts><transactionShares><value>21</value></transactionShares><transactionPricePerShare><value>4.30</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>21</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Trust for Benefit of Minor Child</value><footnoteId id="F5" /></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock </value></securityTitle><transactionDate><value>2003-07-29</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F4" /></transactionCoding><transactionAmounts><transactionShares><value>790</value></transactionShares><transactionPricePerShare><value>4.20</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>0</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Partnership</value><footnoteId id="F4" /></natureOfOwnership></ownershipNature></nonDerivativeTransaction></nonDerivativeTable><footnotes><footnote id="F1">Partnership distribution by Matrix Partners V, L.P. to the Partners thereof.  </footnote><footnote id="F2">By Matrix Partners V, L.P.  Affiliated partnership under common control.  The reporting person disclaims beneficial ownership of the securities indicated to the extent to which such person does not have an actual pecuniary interest in such securities.  The reporting herein of such securities shall not be construed as an admission that the undersigned is the beneficial owner of any such securities for purposes of Section 16 of the Securities Exchange Act of 1934 or for any other purpose.</footnote><footnote id="F3">Partnership distribution by Matrix V Entrepreneurs Fund, L.P. to the Partners thereof. Reporting person received 10,049 shares from this distribution indirectly through a trust.  Reporting person also received indirectly 21 shares from each of two trusts for the benefit of minor children (see footnote 5 for further detail).</footnote><footnote id="F4">By Matrix V Entrepreneurs Fund, L.P.  Affiliated partnership under common control.  The reporting person disclaims beneficial ownership of the securities indicated to the extent to which such person does not have an actual pecuniary interest in such securities.  The reporting herein of such securities shall not be construed as an admission that the undersigned is the beneficial owner of any such securities for purposes of Section 16 of the Securities Exchange Act of 1934 or for any other purpose.</footnote><footnote id="F5">By trust of a minor child of reporting person.  The reporting person is not a trustee and disclaims beneficial ownerhship of the securities indicated.</footnote></footnotes><ownerSignature><signatureName> Andrew W. Verhalen</signatureName><signatureDate>2003-07-30</signatureDate></ownerSignature></ownershipDocument>

