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: 

Regarding spool list title

Former Member
0 Kudos

Hi

Please help me in this regard

i am working in archving project of 3.1i version, here the spool list title has to be generated when i execute program either in foreground or background automatically, for this i wrote Function module "GET_PRINT_PARAMETERS"

please see below code

move sy-sysid to tit3.

move 'MF403' to tit4.

concatenate 'QAR' tit1'/'tit2 into title.

concatenate tit3 plant tit4 into title1.

concatenate title title1 into title separated by space.

move title to title1.

call function 'GET_PRINT_PARAMETERS'

exporting

archive_mode = '2'

archive_text = title1

ar_object = doc_type

copies = 1

cover_page = 'X'

destination = 'LP01'

expiration = '8'

immediately = 'X'

layout = 'X_65_80'

line_count = 65

line_size = 132

list_name = 'QAR'

list_text = title

new_list_id = 'X'

no_dialog = 'X'

release = ' '

report = 'YPDQA01R'

sap_cover_page = 'D'

sap_object = 'DRAW'

importing

out_archive_parameters = arparams

out_parameters = params

valid = valid

exceptions

archive_info_not_found = 1

invalid_print_params = 2

invalid_archive_params = 3

valid_missing = 4

out_parameters_missing = 5

others = 6.

if valid <> space.

new-page print on

parameters params

archive parameters arparams

new-section

no dialog.

endif.

If i execute this program automatically title should generate in spool "sp01" or else in background job "sm37" - spool list.

sp01

03069 01/18/06 06:53 Archive 3 <u><i><b>QAR 003510-107/ JONATHAN EDG0040MF403 </b></i>

</u>

i wrote concatenate statements for this title "QAR" etc,

once program generate title, again some times it not, error: No spool list available.

I checked document_type and archive_object every thing is fine

i debugged the program "sy-subrc = 0" in each step, please let me know what will be the problem.

appreciate for spontaneous reply.

Thankyou

regards

vani.

1 REPLY 1

Former Member
0 Kudos

Hi ,

Please confirm that the code whatever you want in the output must come in b/n

if valid <> space. 
new-page print on 
parameters params 
archive parameters arparams
new-section 
no dialog. 
-- output data code must come here.
endif. 

Hope This Info Helps YOu.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav