Use FM TR_OBJECTS_INSERT to add the objects from the program. Before passing values to this FM, you need to invoke TR_OBJECTS_CHECK function module with table name.
You can also try TRINT_OBJECTS_CHECK_AND_INSERT
Use FM TR_OBJECTS_INSERT to add the objects from the program. Before passing values to this FM, you need to invoke TR_OBJECTS_CHECK function module with table name.
You can also try TRINT_OBJECTS_CHECK_AND_INSERT