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

Delete spool FM throwing dump in background

Former Member
0 Likes
1,219

Hi,

I`m using the FM "RSPO_R_RDELETE_SPOOLREQ" to delete spool from my program and I`m trying to execute the program in background, but the batch job fails and it gives a dump in the FM used, when I tried debugging the program (in background).

Could anyone let me know what could be the reason for the dump.As I`m passing values of proper type to the FM, it still throws me "SPOOL_INVALID_JOB " exception.

Regards,

Farhana.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,043

Hi,

Add the validation to check whether the spool no. is blank.

If not lv_spoolno is initial.

CALL FM 'RSPO_R_RDELETE_SPOOLREQ'


endif.

Best regards,

Prashant

7 REPLIES 7
Read only

Former Member
0 Likes
1,044

Hi,

Add the validation to check whether the spool no. is blank.

If not lv_spoolno is initial.

CALL FM 'RSPO_R_RDELETE_SPOOLREQ'


endif.

Best regards,

Prashant

Read only

0 Likes
1,043

Hi Prashanth,

Thanks for your reply. This check does not solve the problem, it still throws the same exception.

Regards,

Farhana

Read only

Former Member
0 Likes
1,043

Hi,

Make sure you give the correct JOB Name( as the dump name suggest SPOOL_INVALID_JOB )

also try to pass the Job name in Capital letters if you are using char literals

if both these doesn't serve

check the compatibility of the parameters that you are passing as one of the parameters

Regards

Ramchander Rao.K

Read only

0 Likes
1,043

Hi Ramachander,

Job name is not being passed as paramter to this FM, and I also checked with the data type of the parameters, they seem to match.

Regards,

Farhana.

Edited by: Farhana Sheriff on Dec 8, 2008 11:59 AM

Read only

Former Member
0 Likes
1,043

Hi,

Please check whether some other job which is still running & hence there is a table lock bcz of which you are receiving invalid spool job error.

I hope you are passing the job name from JOB_OPEN fm to JOB_SUBMIT.

Best regards,

Prashant

Read only

0 Likes
1,043

Hi Prashanth/Ramachandra,

I got the solution for this. As the spool was empty, it was not allowing me to delete the spool, even though there was a spool id being generated.

Thanks for all your quick responses.

REgards,

Farhana.

Read only

0 Likes
1,043

Hi Farhana,

Can you please let me know the solution you applied to solve this problem. I am also facing this error in our project. I am facing this error at the end of integration model activation program RIMODAC2.

regards,

Shiv.