Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Program taking too much time to execute

srivijay_dinnimath
Active Participant
0 Likes
501

Hi Experts,

There is a requirement to delete some Open text files from the server. For that I am using below 2 FMs.

1.  ARCHIV_CONNECTINFO_GET_META  - To read fetch the file details

2.  ARCHIV_DELETE_META                        To delete the file


We have one custom table which contains key( object_id) for all the files(And this custom table contains million records in Production system).


And logic I am using to delete those file is,

1. Fetch the object_id from the custom table

2. Pass it to 1st FM with  sap_object.

3. Then pass outcome value from 1st FM to 2nd FM.

Initially I had used select statement with package size 1000. But this program was taking more than 4Hrs to execute in Non-production systems with 25000 data in custom table. And again executed the program by increasing the package size by 50000, but no use.

I can't run this program without using Packet size logic, as it will give TIME OUT dump.

Please suggest me if there is any alternate solution for this.

Regards,

Srivijay

1 REPLY 1
Read only

krishna_k19
Contributor
0 Likes
338

Hi Vijay,

    While fetching data from the table are you using all primary keys , if not then include those one and try.

And second thing , if part from primary keys if you are or you can use other keys means go with index .

Regards,

Krishna