Replication system stored procedures are documented and available as a method for accomplishing one-time tasks, such as implementing replication, and for using in batch files and scripts.
SQL Server Books Online provides examples of how to program most of the common replication tasks using Transact-SQL stored procedures. For more information, see Replication System Stored Procedures Concepts.
Only the replication stored procedures documented in SQL Server Books Online are supported. Undocumented stored procedures are only for the use of internal replication components and should not be used to administer replication.