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 in Smartform

former_member156446
Active Contributor
0 Likes
3,241

Hi Gurus

I am using RSPO_R_RDELETE_SPOOLREQ to delete the spool after converting the spool from pdf and to email.

I am having a dump at

CALL 'RSPOARNS' ID 'ID' FIELD spoolid
                  ID 'FORCE' FIELD 'X'
                  ID 'RC'  FIELD rc.

code of the FM. It say POSTING_ILLEGAL_STATEMENT, I have authorizations to delete the spool but, I am not finding a solution to delete the spool.

Do we have any other option to delete the spool?

Thanks

J@Y..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,958

Hello

I at one time tested this module.

Problem was in that spool number number was sent as '5.521'. It this did not delete spool and returned RC = 12.

When I became to send as '5521' (without delimiter) all were ok.

Hi Gurus

I am using RSPO_R_RDELETE_SPOOLREQ to delete the spool after converting the spool from pdf and to email.

I am having a dump at

CALL 'RSPOARNS' ID 'ID' FIELD spoolid
                  ID 'FORCE' FIELD 'X'
                  ID 'RC'  FIELD rc.

code of the FM. It say POSTING_ILLEGAL_STATEMENT, I have authorizations to delete the spool but, I am not finding a solution to delete the spool.

Do we have any other option to delete the spool?

Thanks

J@Y..

12 REPLIES 12
Read only

Former Member
0 Likes
2,959

Hello

I at one time tested this module.

Problem was in that spool number number was sent as '5.521'. It this did not delete spool and returned RC = 12.

When I became to send as '5521' (without delimiter) all were ok.

Read only

0 Likes
2,958

Well my spool id number comes correct and there is no type miss match... no characters in between

it brings the spool properties with RSPO_GET_ATTRIBUTES_SPOOLJOB correct with the date time and all the details correct..

what are those commands called ? CALL 'RSPOARNS' ID 'ID' FIELD spoolid

ID 'FORCE' FIELD 'X'

ID 'RC' FIELD rc.

Or is there any other FM / Method to delete the spool id ?

Read only

0 Likes
2,958

Hello J@y,

The problem occurs with just this particular spool or you are not able to delete any of the spools?

Vikranth

Read only

0 Likes
2,958

I am not able to delete, any spool id..

Read only

0 Likes
2,958

Looks like there are quite few FMs' to delete spool requests. Did you try with these too?

RSPO_SPOOLREQUEST_CLEANUP

RSPO_IDELETE_SPOOLREQ

RSPO_RLIST_DELETE_SPOOLREQ

Read only

0 Likes
2,958

>

> RSPO_SPOOLREQUEST_CLEANUP

>> this is not my purpose to delete all spools

> RSPO_IDELETE_SPOOLREQ

>> this again calls the FM I am using, so cannot use it

> RSPO_RLIST_DELETE_SPOOLREQ

>>No documentation avaliable, I am feeling this is used to edit the spool from particular column

Read only

Former Member
0 Likes
2,958

Are you passing spoolid as char(10)?

Rob

Read only

0 Likes
2,958

Yes char10

DATA: delete_id TYPE tsp01_sp0r-rqid_char.

          CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
            EXPORTING
              spoolid = delete_id.

I am getting the spool id from Smartform Interface job_output_info-spoolids[]

CALL FUNCTION 'RSPO_RETURN_SPOOLJOB' for OTF

CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF' OTF to PDF

after sending the email

CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'

Edited by: J@Y on Oct 13, 2009 10:16 AM

Read only

Former Member
0 Likes
2,958

Are you creating the spool from a recently transported SMARTFORM?

Rob

Read only

0 Likes
2,958

this SF has been in sandbox quite a long time from now, without fixing this I cannot Transport and see if it works in other environments.

Read only

0 Likes
2,958

Are you getting a dump? Error message? Express mail?

Maybe there's a note.

Rob

Read only

0 Likes
2,958

Express mail.

I am suspecting I am in a update task, and trying to delete it... when I pick some other spool and trying to delete it, that gets deleted, and also figured out that the business will not do print immediate during, output generation.. so chances of getting this dump is very very less.

Thank you very much for your time Gurus.