Than the issue is mostlikely related to the return err, where the refresh statement is before the close and message statement:

WRONG:

  {return array(                 array(‘actn’, ‘refreshData’),

array(‘actn’,’closeWindow’),

                                            array(‘msg’, ‘STRATOS’, ‘Info’, “Success Message is generated”),

                                               );}

 

This can be fixed by putting the refresh after the message:

 

CORRECT:

  {return array(                                array(‘actn’,’closeWindow’),

                                                           array(‘msg’, ‘STRATOS’, ‘Info’, ”                                             array(‘msg’, ‘STRATOS’, ‘Info’, “Success Message is generated”), “),

                                                           array(‘actn’, ‘refreshData’)

                                               );}