I need to write a routine to trigger a specific ouput type on invoice saving for a particular pricing condition.I have written the code within the routine.But now what do I do to trigger the output type , I mean in which transaction do I place the routine
to make it to trigger when the invoice is saved if the given condition is satisfied
Goto NACE and assign the output type for that transaction.
NACE is a message control table...You can customize with SapScripts or SmartForms forms are going to be used in standard programs...
You can track the form and the print program used for that form
NACE is used to create output type while creating the output type you will mention forms, and driver program.
that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
so check in NAST, TNAPR table
Follow this sample example
Goto Transaction NACE --> Select Application V1(Sales) --> Click on Output Types --> Select the output type as BA00 (as generally BA00 is the output type associated with Sales Order ) --> Double click on the Processing Routines folder on the left and it will display the Form name and the corresponding driver programs name.
Close the thread if your question is answered.
Suppose the requirement is when a particular output type is triggered the control should go to a particular subroutine of a print program and from that subroutine other subroutines are called. For that purpose the ROUTINE option is there is NACE to mention the subroutine name where you want the control to go after the output type has been triggered.
This also ensures that the print program cannot be executed from any other source other than triggering the output type.
this is primaryily customizing of output types using condition technique. [Message Control Customizing|http://help.sap.com/saphelp_erp2005/helpdata/en/c8/19887b43b111d1896f0000e8322d00/content.htm] may give you some hints.