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

PDF document first page is blank when executing in background

Former Member
0 Likes
690

Hi,

I am creating spool before displyaing report output by using GET_PRINT_PARAMETERS and NEW PAGE PRINT ON option and displaying report header and report final internal table. calling NEW PAGE PRINT OFF

finally i am sending mail, by using SO_NEW_DOCUMENT_SEND_API1 function module in foreground executing and background execution.

When we execute in foreground i am recieveing mail and pdf is perfect.

when we execute in background i am recieveing mail. But when i opend the pdf document in mail, PDF doucment first page is balnk and second page onwards i am able to see the report output

why the PDF first page is blank when i execute the same report with same variant in back ground.

Please help me in this issue.

Thanks in advance

Raju

1 ACCEPTED SOLUTION
Read only

Kanagaraja_L
Active Contributor
0 Likes
619

See the Marie Wislocki thred

Kanagaraja L

Hi,

I am creating spool before displyaing report output by using GET_PRINT_PARAMETERS and NEW PAGE PRINT ON option and displaying report header and report final internal table. calling NEW PAGE PRINT OFF

finally i am sending mail, by using SO_NEW_DOCUMENT_SEND_API1 function module in foreground executing and background execution.

When we execute in foreground i am recieveing mail and pdf is perfect.

when we execute in background i am recieveing mail. But when i opend the pdf document in mail, PDF doucment first page is balnk and second page onwards i am able to see the report output

why the PDF first page is blank when i execute the same report with same variant in back ground.

Please help me in this issue.

Thanks in advance

Raju

3 REPLIES 3
Read only

Kanagaraja_L
Active Contributor
0 Likes
620

See the Marie Wislocki thred

Kanagaraja L

Read only

venkat_o
Active Contributor
0 Likes
619

Hi Raju, <li> Call ABAP4_COMMIT_WORK function module after NEW-PAGE PRINT OFF command.

NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
Thanks Venkat.O

Read only

Former Member
0 Likes
619

Thanks venkat u answer helped alot