Share this page

# (Optional) Set logs for debugging purpose

1. Go to the `<`PPM_Home`>/conf/sdi/ppm-sm-adapter.ext` directory. Change the file name of `convertPPMToSM.js.sample` to `convertPPMToSM.js`.

2. Open the `convertPPMToSM.js` file in a text editor and edit it.

   1. Comment out the line beginning with "`var REQMODDATE`".

   2. Add the following line right after it:

          var SYNCSTATUS = "syncStatus"; //The syncStatus field

      Note: You may need to add the syncStatus field and expose it in the WSDL before adding the above line.

   3. In the function `convert`, add the following line:

          logger.error("PPM -> SM Convert " + ppmRFC.get("REQD-SD_TICKET_ID"));

   4. Comment out the line beginning with
      "`serviceManagerRFC.setField(REQMODDATE`"

   5. Add the following line right after it:

          serviceManagerRFC.setField(SYNCSTATUS,ppmRFC.get("REQ-DESCRIPTION"));

   6. In the function `preFilter`, add the following line:

          logger.error("PPM -> SM preFilter " + ppmRFC.get("REQD-SD_TICKET_ID"));

   7. In the function `postFilter`, add the following line:

          logger.error("PPM -> SM postFilter ");

   8. In the function `convertDate`, replace the following line:

          format.setTimeZone(java.util.TimeZone.getTimeZone ("PST"));

      with the following:

          format.setTimeZone(java.util.TimeZone.getDefault());

   9. Save the file.

3. Go to the `<PPM_Home>/conf/sdi/serviceManager-adapter.ext` directory, change the file name of `convertSMToPPM.js.sample` to `convertSMToPPM.js`.

4. Open the `convertSMToPPM.js` file in a text editor and edit it.

   1. In the function `convert`, add the following line:

          logger.error("SM -> PPM convert " + serviceManagerRFC.get("header.changeNumber"));

   2. In the function `preFilter`, add the following line:

          logger.error("SM -> PPM preFilter " + serviceManagerRFC.get("header.changeNumber"));

   3. In the function `posteFilter`, add the following line:

          logger.error("SM -> PPM postFilter");

   4. Save the file.

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: