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

Form printing

Former Member
0 Likes
329

Hi,

I have saved pdf file in application server directory. Now I am reading it and displaying on desktop.For this I did as below.

open dataset p_file1 for input in text mode encoding default.

if sy-subrc eq 0.

do.

read dataset p_file1 into p_file2. " cursor taking much time to proceed further from this line.

if sy-subrc eq 0.

write : p_file2.

endif.

enddo.

else.

message e005(zmsg).

endif.

close dataset p_file1.

In the debugging when the cursor reaches ' read dataset p_file1 into p_file2' line, it is taking much time to proceed further. Why is it so?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
306

Hi,

Use the length addition of Read Dataset statement... Check this link

http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3d42358411d1829f0000e829fbfe/content.htm

Hope this would help you.

Regards

Narin Nandivada

1 REPLY 1
Read only

Former Member
0 Likes
307

Hi,

Use the length addition of Read Dataset statement... Check this link

http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3d42358411d1829f0000e829fbfe/content.htm

Hope this would help you.

Regards

Narin Nandivada