Application Development 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: 

Background Jobs (Import/Export to Memory)

Former Member
0 Kudos

Hi Folks,

I have one report which process some data (lets call it Rep1). Now I have created another report (Rep2). Rep2 reads data from the database. Then divides it into 10 chunks of same size. One by one it Exports each chunk to cluster (using Export to database, and each data block has a different object name) and creates a background job (of Rep1) using JOB_SUBMIT. Inside Rep1 I am reading from cluster using Import. Now the problem is out of 10 jobs, onle 2 or 3 are able to read data. Others are just failing (saying 'No data found').

What could be the cause? Any tips?

Regards,

Munish

1 ACCEPTED SOLUTION

marina_plag
Explorer
0 Kudos

Hi,

I suppose that memory cannot be read if the writing job is running on application server A and the reading job on server B.

Regards, Marina

8 REPLIES 8

Former Member
0 Kudos

Hey Folks,

Any suggestions?

Regards,

Munish

0 Kudos

Check your data in debug mode before the export statement

See if 'chunks' 4 - 10 contain any data

0 Kudos

Hi Kris,

Export works perfectly. Sy-subrc is zero afterwards.

And during different runs, different number of jobs fail. Its not always the last ones. Sometimes first few, and sometimes randomly.

Regards,

Munish

0 Kudos

It may export an empty table / data and that could cause the other programs to fail (based on the logic there)

Also check if the DELETE statement in one of the programs is clearing all the data

0 Kudos

Yes. Thats the exact problem. Second report is unable to read data from the memory (exported by the first report). The table imported is blank.

there is no Delete statement for the database memory.

Former Member
0 Kudos

There is a limitation on Amt of data you can store in ABAP Memory and SAP Memory .. check those limitation ..per user ..

also check for Number of external session granted by urr basis ppl...

it may be possible that only 3-4 session are allowed coz each background process create and external session ..

marina_plag
Explorer
0 Kudos

Hi,

I suppose that memory cannot be read if the writing job is running on application server A and the reading job on server B.

Regards, Marina

0 Kudos

Hi Folks,

The problem is solved. The entries in the cluster table were getting over-written. Simply used separate keys for diffetent sets (though sets already have different names).

Thanks.