How to Check in a file and change the state in EPDM by Solidworks Macro?

Hi,

After doing some changes in Drawing or Part file, I need to "Check in" that file and change that file state from "WIP" to "Production Review", Is there any Macro code to do this action?

Thanks in advance.

SolidworksApi macros