Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: Generic Program to convert any smartform to PDF

$
0
0

Hi Nidhi,

 

As far as i understand the main driver program for the smartform which includes data retrievals, calling the smartform function module would have to be separate because each module will work with completely different sets of tables and information. What you can do is, create a pdf generation and email sending program separately which can be generic for any module by working with the OTF data returned by each individual smartform.

For example, the OTF data returned by any smartform will be of the same table type and that s not dependent on specific module. So we can write a program which will accept the OTF data as an input selection entry and perhaps an email field also (considering different modules may want to email different people or groups the pdf attachment). Inside this program we would convert the OTF data received as an input to pdf and write the code for sending the same via email attachment.

In that case each of your current individual programs of different module will just have to add a SUBMIT statement to call this generic program to pass the OTF data from the smartform and the generic program will do the rest.

This way, it will be like encapsulating your pdf and email functionality into a single program to be used across all your current driver programs.

 

Regards,

Arnab


Viewing all articles
Browse latest Browse all 3354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>