Application Development 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: 

how to determine if its already printed

Former Member
0 Kudos

i create a list report and want to print it how would i know if i already print the report so that i can update the table that this certain record is already printed.

i have a print_flg in a table and need to update it if i already print a record.

thanks.

5 REPLIES 5

Former Member
0 Kudos

If you have a flag then update it after printing. So in your print program put your own logic that after giving the printing command then set this flag for that record.

Regards,

Amit

0 Kudos

im not using dynpro screen. how would i determine if the user click the printer or the printing command is finish since i dont have GUI Status, what i use is the standard list report where the standard toolbar shown.

Former Member
0 Kudos

Hi Donna,

Use 2 conditions ..

While triger Print, just chk the Print flag in the table .

P_flag <> 1

"call printer triggering fn module "

and

update the table flag to 1.

Else .

"display ..msg "you have printed already"

Rgds,

J

0 Kudos

what is the function module that determined that the printer is triggered?

0 Kudos

Hi donna ,

Turn on the debug option and just find out wht happens when print is triggerd .

Anyhow ...

Probably u can reach this fn mod if u hav used any form.

CALL FUNCTION 'OPEN_FORM' "open layout set

EXPORTING

DEVICE = 'PRINTER'

DIALOG = 'X'

Regards,

J

Plz awrd pts for helpful ans.