Sorry do not understand your question ... why not reverse the calling order of your 2 procedures. That is call procedure "B" first to insert the data into either a temporary table or a table variable and then operate on that data with procedure "A".
If you follow the example given by clicking on the first link in my signature block you will most likely receive the assistance you are requesting.