Problem while creating the spool requests for multiple PO's
I have a program to send the PO message output as an email to vendor.
When I create a spool requests for individual PO, it is working very well.
But, if I try to create the spool requests for 15 PO's ,spool request is created for only some PO's.
I am using FM to get the spool request number and I am calling these FM 's in loop.
CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
rqowner = sy-uname
spoolrequests = lt_spool
no_permission = 1
OTHERS = 2.
Kindly anyone advise how to solve this problem.
Thanks & Regards,