2013 Sep 02 3:27 PM
Hi all,
I created a batch input program to call a report writer. This program will be executed in background and the background will be configurated to send an email monthly.
For some reason even if I change the background print parameter on the Z program spool is being generated truncated.
So, I do know that I need to change the print parameter format and I mapped all steps to generate the job on the report writer and included it all on the code and now I have a new (2nd) job and I can't use variables or schedule the email to be sent on this second since it will be dinamically generated.
Anyone knows a diferent way to do that without user exit changes?
P.s: Is not possible to do this changes on the report writer.
Thanks
2013 Sep 03 12:10 PM
Solution:
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
line_size = 255
IMPORTING
out_parameters = print_parameters
valid = valid.
SUBMIT p_program TO SAP-SPOOL
WITH $zyt = l_year
WITH $zmt = l_month
WITH $1ckoset = l_cost
WITH _1ckoset-low IN s_value
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO.
Hi all,
I created a batch input program to call a report writer. This program will be executed in background and the background will be configurated to send an email monthly.
For some reason even if I change the background print parameter on the Z program spool is being generated truncated.
So, I do know that I need to change the print parameter format and I mapped all steps to generate the job on the report writer and included it all on the code and now I have a new (2nd) job and I can't use variables or schedule the email to be sent on this second since it will be dinamically generated.
Anyone knows a diferent way to do that without user exit changes?
P.s: Is not possible to do this changes on the report writer.
Thanks
2013 Sep 03 12:10 PM
Solution:
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
line_size = 255
IMPORTING
out_parameters = print_parameters
valid = valid.
SUBMIT p_program TO SAP-SPOOL
WITH $zyt = l_year
WITH $zmt = l_month
WITH $1ckoset = l_cost
WITH _1ckoset-low IN s_value
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |