We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-abap] How can I get multiple pdf file in single background job

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by ahmedarsath.a
on Apr 7 at 2:47 AM
Dear All,

Sorry. I Couldn't reach my goal. Here I have attached that code. Please read & advise me...

LOOP AT cust_mail. "No. of customers
clear: p_email1, p_kunnr,bsad_tab1, bsid_tab.
perform get_ac_state. "output - Normal Report
* new-page.
commit work.
* ITCPO-TDDELETE = ''.
* ITCPO-TDNEWID = 'X'.
new-page print off.
IF sy-batch EQ 'X'. " for backgroung job
PERFORM get_job_details.
PERFORM obtain_spool_id.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
ENDIF.
Endloop.

FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.

*

---------------Original Message---------------
From: ahmedarsath.a
Sent: Thursday, March 17, 2011 6:54 AM
Subject: How can I get multiple pdf file in single background job

Hi Everyone,
I did the code as follows,
Loop at customer.
perform customer_statement{Normal report - Not in ALV/Smartform}.
perform spool_list.{CALL FUNCTION 'GET_JOB_RUNTIME_INFO'}
perform convert_pdf.{CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' }
perform send_mail.{CALL FUNCTION 'SO_DOCUMENT_SEND_API1' }
{Here, Is there any option to refresh/clear spool in frequently. My problem is, first time loop executed only one customer. second time, its executed up to two customer. Here I need only second customer details}
endloop.
Please let me know, any idea...
Thanks & Regards,
Arsath. A

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
Which response to your Toolbox.com Groups post was the most helpful? Use 'Best Answer' to mark highest quality content.
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language