If you have version 8.5, why are you not following the example given in the programmers manual, where you just set p( ) and s( ) that are passed to your element from FEAP? FEAP then takes care of all the rest, namely dealing with the assembly into the proper locations and the solution of the equations.
Is there something that the standard set up will not accommodate that you are interested in?