La-Qa, follow these steps to create an action macro :
1. Create a site-defined condition macro from Admin interface. Just create the template and save it.
a. Symbol = Case_Close
b. Macro Type = Site Defined Condition
c. Object Type = Request/Incident/Problem
2. Login to Primary/Background server with RDP.
3. Open command prompt and invoke the following command : pdm_extract -f"select * from Spell_Macro where sym='Case_Close'" > MyMacro.txt
4. Open the MyMacro.txt file search for string "COND_SITE" and replace it with "ACT".
5. In the fragment section you need to update your code. Delete everything (eventually you will see something like : set_return_data(TRUE);\\0012 )from fragment field value and place the following code : status='CL';\\0012active_flag=0;\\0012close_date=now();\\0012
6. Save the file. If your servers running on windows save the file as Encoding=UTF-8 (else you will get error while uploading )
7. Upload the updated file with following command : pdm_load -u -f MyMacro.txt
8. Clear the table cache with following command : pdm_cache_refresh -t Spell_Macro
You are all done and your action Macro is just ready to use.
Thanks
ArunavaS