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

Problems with format page - Report writer

deiamolina
Contributor
0 Likes
519

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

1 ACCEPTED SOLUTION
Read only

deiamolina
Contributor
0 Likes
485

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

1 REPLY 1
Read only

deiamolina
Contributor
0 Likes
486

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.