added some code for SAP