Dear Pravin
May be you have not understood what Lakshmipathi sir asking for?
What you are actually taking as reference when you are creating return sales orders??
Are you referring to parent billing doc or parent sales doc--please confirm.(then understand the point of what Lakshmipathi sir suggested
Now after creation of return sales orders--how you are proceeding further in creating credit memos??
As per you--there is some selection criteria while creating credit memos through Batch job...so customized program..
So why dont you include your logic of 1 SO with 1 CREDIT MEMO ONLY into this program...
if you dont know the logic how to communicate to abaper--come back to us..
Note: alternatively if your batch Job program giving an option of From & To in entering return sales doc numbers--just you remove "TO option"--your abaper can do this in just 5 Mins.
Hope you understood now..
Phanikumar