below is my scenario :
As soon as vendor is created/ updated at R/3 , the IDoc is triggered via. change pointer , and is send to XI. XI will create / update the corresponding vendor in Oracle database at the pther side.
My question is , at Xi how will I come to know that the incoming vendor i have to insert in Oracle or update in oracle., as from XI i have to fire a query isert / update