‎2017 Dec 04 6:33 AM
Hello all,
I have developed a smart form , (with user input from a module pool screen),
my question is , i wanted to insert the data into Z-table only when the user selects Print but not print preview..

is there any function module to achieve this type of requirement..
thanks in advance..
‎2017 Dec 04 7:55 AM
‎2017 Dec 04 7:55 AM
‎2017 Dec 04 12:12 PM
In the return values of every smartform there is a structure named JOB_OUTPUT_OPTIONS in it the field TDPREVIEW will contain X if it was sent to preview and nothing if it was sent to printing.
‎2017 Dec 04 1:38 PM
Hi ,
Thread duplication happened as i could not find my question under notifications( i think its a flaw ),
thanks for your reply,
i will go through the structure job_output_options.
‎2017 Dec 04 9:46 PM
FYI - our own questions do not appear in the Notifications, only answers and comments to them do (not 100% though). All of our own questions, answers, and blogs can be found in our profile. Click on your picture in the upper right corner, then again on the larger picture in the dropdown. Or use this link: #
‎2017 Dec 05 9:54 AM
As others have already mentioned you can use the standard Smartform parameters to check if the SF is triggered via "print preview". If not fill the data you want to update in the DB & send it via a self-defined exporting parameter.
It is the caller who should decide if the data should be updated or not. SF is only an output medium & should not manipulate the data. For you it's easier to do because of you are dealing with a custom driver program (Modulepool)
BR Suhas
PS - try to avoid any DB-operations inside the Smartforms!