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

Capturing the Print Event

Former Member
0 Likes
962

Hi Guys,

A newbie here!

I have been reading a lot but I can't seem to find the answer I'm looking for.

See, I have created a report in SAPScript. Basically, I need to create a table (have done that) to record when the document was initially printed, as well as the latest date when it was reprinted.

For succeeding prints, I have to mark the document with the label "reprint".

The question is, how do I capture the "print event" so I can record said data.

I need to capture the event

1. when the user clicks on the print button of the initial dialog box;

2. when the user clicks the print button on the standard menu when he goes on print preview; and

3. when the user clicks print from the system menu.

Thanks much!

Hi Guys,

A newbie here!

I have been reading a lot but I can't seem to find the answer I'm looking for.

See, I have created a report in SAPScript. Basically, I need to create a table (have done that) to record when the document was initially printed, as well as the latest date when it was reprinted.

For succeeding prints, I have to mark the document with the label "reprint".

The question is, how do I capture the "print event" so I can record said data.

I need to capture the event

1. when the user clicks on the print button of the initial dialog box;

2. when the user clicks the print button on the standard menu when he goes on print preview; and

3. when the user clicks print from the system menu.

Thanks much!

4 REPLIES 4
Read only

aris_hidalgo
Contributor
0 Likes
871

Hi,

For your requirement, you can check out table NAST. Hope it helps...

Read only

0 Likes
871

Hi,

Thanks! I know NAST is a message status table, but how would I connect it from there? How would it determine that the output was printed. Is there a way to know the object key that my program would create?

Read only

0 Likes
871

I have going through the same problem, kindly guide me if you are done with this issue

Read only

Clemenss
Active Contributor
0 Likes
871

Usually everything is provided in SAP Standard. Most output messages are recorded in table NAST. What kind of process prints your output?

I know some customers prefer to write their own standard because they do not really know how to use what SAP already programmed, tested and maintained for them. That's what you pay for.

If you do not like it, why use SAPscript which is SAP standard too though outdated and obsolete.

If you really stay with your idea: Use implicit enhancements in functions in function module START_FORM which is used to call any sapscript output.

But do not blame me if anything unexpected happens in the system.

Regards Clemens.