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

urgent and difficult

Former Member
0 Likes
815

hi!

in sap version 6 do you know any program that prints any file (pdf, excel, txt, doc, etc... ) which can be found in a file server? how can be implemented? the program must be run in background session. Please Help!

usefull answers will be rewarded with points!!!

hi!

in sap version 6 do you know any program that prints any file (pdf, excel, txt, doc, etc... ) which can be found in a file server? how can be implemented? the program must be run in background session. Please Help!

usefull answers will be rewarded with points!!!

6 REPLIES 6
Read only

Former Member
0 Likes
789

If u want to print a report tht was designed in smartforms,u can do it so by giving print there and it will generate a spool number..

Go to rstxpdf4 program and run it..It will ask for spool request number it will generate the pdf file..

If u want to download table datas in a file means ,U can do with gui_download FM.

Background session u can do it in se38 and also in sm36..

In se38 u can set the job in the intial screen..

Read only

Former Member
0 Likes
789

my problem is that i will not be able to know the type of the file. the program must print 2 files. the sapscripting file and the 'dont know' file. of course the sapscripting file is easy to be printed either with sapscript or with smartforms. how can i take the file from the server and send it to spooler so it can be printable?

Read only

Former Member
0 Likes
789

hi antonis,

u r going any program in se38 and it will get output. find list menu. it click that print and get the spool number(last 4 numbers only).

u r remember that. then again goto se38 for type as RSTXPDFT4.

it is the automatically program.it get f8(execute) then put the spool number. it executed converted in pdf. it is saved file. u can get the pdf file.

u can get the program for background in sm36.

reward if useful..

thanks,

s.suresh.

Read only

Former Member
0 Likes
789

probably you didnt understand.

the prob is how to take the file from the server and then it will be able to print.i dont know the format of the file. it can be in jpeg, it can be in txt or something else. i need the source code to get the file !!

Read only

0 Likes
789

hi.

see goto se38 in type as RSTXPDFT4

Read only

matt
Active Contributor
0 Likes
789

>

> probably you didnt understand.

>

> the prob is how to take the file from the server and then it will be able to print.i dont know the format of the file. it can be in jpeg, it can be in txt or something else. i need the source code to get the file !!

This works on windows, because the OS recognises the file extension, and knows which program to run to print out the file. It hands control over to that application program. Of course, if it doesn't recognise the extension it doesn't know what to do. Other OSs are able to recognise the file type, and therefore which application controls it, using other means.

You are wanting to do this in background. So, somehow, you have to use a command of the operating system of your application server, to print the file, using the correct application, which must also be availabel for running on your application server.

If you use photoshop to print JPEGs then you'll need photoshop installed on your app server. If you use gimp, then you'll need to install gimp. etc.

On balance, it seems what you require will be quite difficult to do.

I think a program that could automatically print whatever was thrown at it, for all possible files, would be rewarded probably with a Nobel prize, rather than points.

matt