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: 

Very Urgent help !!!!!!!!!!!

Former Member
0 Kudos

Hi all,

I have a report program in which i am having an scenario of using two JOB_OPEN function modules and the correasponding job_close function modules.

When i execute the report program in background i am not able to see two spool in the SM36.Please tell me on how to solve this ....its very urgent

If possible also tell me on how to combine two spool outputs to one

7 REPLIES 7

Former Member
0 Kudos

check SP01/SP02 to get list of Spoools.

Regards

Peram

Former Member
0 Kudos

hey u need to check the spools in sp01......

reward points if helpful

Former Member
0 Kudos

Hi all,

I am also giving the part of code .please tell me where i am going wrong

<b>ZCALLMARK</b>

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = lv_jobname1

IMPORTING

jobcount = lv_jobcount1

EXCEPTIONS

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

OTHERS = 4.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

SUBMIT zcte0010_mark_and_release WITH p_crun = 'S4000A'"wa_it_crun-crun

WITH p_cdate= '20070829'"lv_costing_run_date

WITH p_jnam = lv_jobname

WITH p_jcnt = lv_jobcount

WITH p_rb1 = 'X'

WITH p_rb2 = ' '

VIA JOB lv_jobname1 NUMBER lv_jobcount1

TO SAP-SPOOL WITHOUT SPOOL DYNPRO

AND RETURN.

PERFORM f_print_msg USING lv_msg.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = lv_jobcount1

jobname = lv_jobname1

strtimmed = 'X'

EXCEPTIONS

cant_start_immediate = 1

invalid_startdate = 2

jobname_missing = 3

job_close_failed = 4

job_nosteps = 5

job_notex = 6

lock_failed = 7

invalid_target = 8

OTHERS = 9.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

<b>zcte0010_mark_and_release</b>

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = p_jnam

IMPORTING

jobcount = p_jcnt

EXCEPTIONS

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

OTHERS = 4.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

SUBMIT saprck23

WITH p_buper = lv_period

WITH p_gjahr = lv_year

WITH kaladat = p_cdate

WITH kalaid = p_crun

WITH p_ckvo = p_rb1

WITH p_ckfr = p_rb2

WITH p_test = ' '

WITH p_listau = 'X'

WITH p_batch = ' '

VIA JOB p_jnam NUMBER p_jcnt

AND RETURN.

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = p_jcnt

jobname = P_jnam

strtimmed = 'X'

EXCEPTIONS

cant_start_immediate = 1

invalid_startdate = 2

jobname_missing = 3

job_close_failed = 4

job_nosteps = 5

job_notex = 6

lock_failed = 7

invalid_target = 8

OTHERS = 9.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Former Member
0 Kudos

Hi,

For every JOB open you need to close the Job using JOB_CLOSE function module, so that there would be 2 jobs in SM37, then the spool will be generated, and you need to check these SPOOL requests in SP01 transactioncode

Regards

Sudheer

Former Member
0 Kudos

Hi,

after list of spoor requests displayed

change the settings

goto -> in display area -> change from page to the last page.

or

in simple words.

ctrlshiftf10 then change from page to the last page.

this may help you.

http://help.sap.com/saphelp_erp2004/helpdata/en/c4/3a8009505211d189550000e829fbbd/frameset.htm

Regards

former_member588853
Active Contributor
0 Kudos

HI,

go to SM36,

select the "JOB selection" button on top..

Now give the Job name .

Check all the job status.

and execute..

You will find your job status.

check it and select the options above..

Now check the check box of your job, and click the spool.

Now click the abap list under the Type column//

rewards if useful,

regards,

nazeer

Message was edited by:

'Nazeer'

Former Member
0 Kudos

Hi ,

This link will help u

http://www.sap-img.com/abap/spool-output-greater-than-255.htm

Regards ,

Kumar.