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

standard print programs in smartforms

Former Member
0 Likes
1,291

hi,

what are the standard print programs in smartforms.and what are the output types used in printing.

how to find the print programs and output types for smartforms.

have a nice day

4 REPLIES 4
Read only

Former Member
0 Likes
876

TRANSACTION .. NACE

TABLE TNAPR

Read only

Former Member
0 Likes
876

hi..

check this link..

http://www.sap-basis-abap.com/abphy.htm

Thanks

Ashu

Read only

Former Member
0 Likes
876

hi

Just look into TNAPR table or NACE transaction.

Or go to SMART Forms transaction and look at the list of the standard forms available by doing a F4 on the name field.

Hope this helps to solve ur problem....

<b>do reward if useful....</b>

regards

dinesh

<b></b>

Read only

Former Member
0 Likes
876

Hi krishna,

The smart forms require print programs to execute. The standard SAP has many such smart forms and their respective print programs.

The very basic of print program is to call the smart form by the method as shown below.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = lf_formname

IMPORTING

fm_name = lf_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

*Error handling

retcode = sy-subrc.

IF sy-subrc = 1.

MESSAGE e001(/smb40/ssfcomposer).

ENDIF.

IF sy-subrc = 2.

MESSAGE e002(/smb40/ssfcomposer) WITH lf_formname.

ENDIF.

PERFORM protocol_update.

ENDIF.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = ' '

is_nast = nast-objky

"is_vbdka = vbdka

is_addres = addr_key

IMPORTING

document_output_info = document_output_info

job_output_info = job_output_info

job_output_options = job_output_options

"TABLES

"it_vepo = i_vepo "Item information

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

the above function calls the smart form and executes the same.

lf_formname has the name of the smart form to be called.

As the above to has said ...

Go to transaction NACE

u will find several output types select any one (eg shipping V2) and then press output types button .now u will see several output types select any one eg (LD00) and double click on the processing subroutines u will seem manyrelations here lies why we need output types.... its here we relate the smartform or script with the corresponding driver program.hope u hhave got an idea of what u want ..... reward points if usefull

With Regards

Sap Surfer