Insert SAP Data into MongoDB

This step ingests master and transactional data from SAP into MongoDB. It enables iMaintenance to work with real SAP objects instead of placeholders. By the end, inbound services will be active, and collections updated with the correct status.

To insert SAP Data into MongoDB
  1. Update SAP MongoDB Connection
    • File Path: RACE/backend/SapInbound/src/direct_adaptor/lib/mongo.js

    • Modify the nosql object with correct values (Database, Host, Username, Password).

  2. Start SAP Inbound Microservice
    cd RACE/backend npm run inbound

    Monitor terminal logs to confirm data ingestion is running.

  3. Monitor MongoDB Atlas
    • Navigate to the Integrations collection.

    • Check the status field:

      • 0 → Not Active

      • 1 → Active

      • 3 → Running

      • 4 → Failed

    • Wait until logs confirm completion.