cancel
Showing results for 
Search instead for 
Did you mean: 

How to know "when the last time" SAPscript/Smartforms is printed?

Former Member
0 Kudos

Dear Gurus,

How to know "the last time" SAPscript/Smartforms is printed?

example :

I have a program ZPYG_FORM and layout ZPYG_LAYOUT

I want know when the last time layout ZPYG_LAYOUT is printed through program ZPYG_FORM?

Cheers!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sendy,

If your requirement is to know when the form was last printed, you may create a custom table ZTABLE contaning DATE, TIME, or other details you want, and then you change your driver program such that it will update the custom table whenever the driver program is run.

If the driver program is a standard program, you can simply add program logic in the smartforms so that it will update the custom table. For sapscript, you might need to use PERFORM <subroutine> IN PROGRAM <another custom program>.

Take note that this will let you know the details of the spool generated. It's possible that the end-user can print the spool multiple times. If you want to know that too, you may have to refer to standard spool tables such as TSP02.

Regards,

Paul

Former Member
0 Kudos

Hi Sandy,

Below link can be helpful to your requirement.

http://help.sap.com/saphelp_nw70/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm

Thanks,

Sanjay Gogikar

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Check in table nast.

Regards,

Madhu.

Former Member
0 Kudos

Hi,

For Sapscript, you go to SE71, press F6 to make changes to the program, F7 to display the list of windows in the form, F9 to enter any window, press Ctrl + F3 to see the Program Symbols. In the dialog of Program Symbols, you'll see the program that use the form.

For Smartform, you go to se37 to use where-used-list function for funtion 'SSF_FUNCTION_MODULE_NAME', you'll see all the programs that use the smartforms in the system. Search within this list, and you'll find the program which is using your smartform.

Other way, go the tcode NACE and find for the output type, Choose the associated application and you'll see the the program & form corresponding to the output type.

Thanks,

Paul