cancel
Showing results for 
Search instead for 
Did you mean: 

passing data to a printing report

Former Member
0 Kudos

Hi all,

I think it's a stupid question, but I am very new in form printing, and I need some base information I cannot find searching here on SDN. I am writing some program for printout, and I understood how report write data in form in sapscript, and I also understood that in smartforms, there is an interface that function fills and where the form retrieve data needs for printing. What now I need to understand is how printing report know which data need to print. For example, if I am printing data about order 123456, and in SPRO I set my program as print program, how do I retrieve the order number?

thanks in advance and sorry if the question is too idiot.

Gabriele

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member755502
Participant
0 Kudos

Hi,

Check for tables NAST and TNAPR. Also, you have to do some configuration in NACE transaction, where you would specify print program name (if not using standard), entry point and smartform name (if not using standard) for a particular OUTPUT type. And if you are going to develop custom print porgram and smartform then read about function module SSF_FUNCTION_MODULE_NAME.

I hope it will guide you to explore more. Please revert for any further clarification.

Regards,

Sambaran

brad_bohn
Active Contributor
0 Kudos

Sounds like you've done some research and tried to find the info. Congratulations, there are many on this site that don't even bother. Look up 'Output Determination' in the help files and you'll find some more useful information. Basically, when you configure an output type and associate it with an application, the object key field from table NAST (NAST-OBJKY) will hold the value for the document number and possibly other information (such as the item number) if relevant. For SAPScript, you may also find the document number in a global structure field that's available in the print program and for Smartforms, you will find the document number in a field or structure in the form interface.

Former Member
0 Kudos

thanks,

but where are this data ? in shared memory and I need to import them?