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

Update Z-table when printing a smartform

former_member185116
Active Participant
0 Likes
1,766

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..

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
1,313

Look at standard parameters received by the Smartforms (e.g. control_parameters-preview) and insert the data in a node code or initialization.

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
1,314

Look at standard parameters received by the Smartforms (e.g. control_parameters-preview) and insert the data in a node code or initialization.

Read only

iftah_peretz
Active Contributor
1,313

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.

Read only

0 Likes
1,313

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.

Read only

1,313

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: #

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,313

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!