It seems like you have two issues - one is the visa free transit, the other is to move luggage from one flight to another without you having to collect it yourself and re-check in.
Actually there is a mechanism where you can transit China without a visa and you CAN go ground side.
I've asked the moderators to redirect this thread to the China forum; in the meantime look at this thread
http://www.flyertalk.com/forum/china...e-transit.html
On the baggage issue the question is whether or not the two (?) airlines involved interline. What are the airlines in question?
If you would like a more specific response, suggest you give full info, ie flight number of arriving and departing flights and the date that you are travelling, also your nationality (I don't think this is necessary but might be useful). Off the top of my head even if you have final destination tickets to PEK if you have another ticket departing PEK within the timeframe this should be ok.