Hi Surya,
You cannot get the same in Table RPSCO, but you can pass the Object Number in Table PRPS.
In PRPS Field STUFE will represent the levels, If it is one it is Level 1... correspondingly Level 2, Level 3 and goes on.
You need to write a logic to identify the WBS element having childs.
Regards
Terence