‎2008 Jul 29 10:37 AM
Hello freinds,
Could you please tell me how can we assign print program to sap script.
Give me a full procedure.
‎2008 Jul 29 10:38 AM
Hi
Use tcode - NACE and follow procedure as follows
1)Choose Application from list(eg PO)
2)Click OP type
3)Chose one OP type from Right pane.
4)Click on processing routines
and attach driver program and script/smartform to processing routine.
With Regards
Nikunj Shah
‎2008 Jul 29 10:38 AM
Hi
Use tcode - NACE and follow procedure as follows
1)Choose Application from list(eg PO)
2)Click OP type
3)Chose one OP type from Right pane.
4)Click on processing routines
and attach driver program and script/smartform to processing routine.
With Regards
Nikunj Shah
‎2008 Jul 29 10:39 AM
hiii
use following FM for calling script from print program..use this FM in Print program
CALL FUNCTION 'OPEN_FORM'
EXPORTING
* APPLICATION = 'TX'
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMS = ARC_PARAMS
DEVICE = LVF_DEVICE
DIALOG = ' '
FORM = TNAPR-FONAM ----->Here need to give a SCRIPT NAME
LANGUAGE = NAST-SPRAS
OPTIONS = LVS_ITCPO
MAIL_SENDER = LVS_SENDER
MAIL_RECIPIENT = LVS_RECIPIENT
* MAIL_APPL_OBJECT = ' '
* RAW_DATA_INTERFACE = '*'
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
OTHERS = 8.regards
twinkal
‎2008 Jul 29 10:39 AM
Hi,
Please Search SDN forum
Check this link:
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
Regards
Adil
‎2008 Jul 29 10:39 AM
‎2008 Jul 29 10:40 AM
Hi,
Refer the below link:
"saptechnical.com/Tutorials/Smartforms/SFMain.htm"
Reward if useful
Regards
Shiva
‎2008 Jul 29 10:41 AM
Hello Amar,
use the function modules
OPEN_FORM
WRITE_FORM
CLOSE_FORM
Regards
Indu.
‎2008 Jul 29 10:41 AM
Hi Amit,
Steps Involved:
1. go to NACE
2.Application
3.Output types
4.Processing Routines
Have A Nice Day
Chaitanya.
‎2008 Jul 29 10:43 AM
hi,
go to Nace transaction.
select the output type and application type then click on processing routines there u can find the driver program and form name . so give ur entries there in print medium in first row.
Rgds.,
subash
‎2008 Jul 29 10:43 AM
Amar,
In NACE transaction, We will assign the Form name and the driver program name and the corresponding routine to be triggered in the driver program.
We should be able to tell the system to pick up the desired form layout and trigger the routine and get the data from the database and put it on to the form. All these stuff the system will come to know from the NACE settings.
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
You can view all forms and driver programs for standard SAP Scripts.
Assigning Form and Driver proram to an Output type is as follows.
1) Go to NACE transaction
2) Select an Applicatin(V1-Sales,V2-Shipping,V3-Billing)
3) Click on Outputtypes Button
4) Comes to Change Mode
5) Click on New Entries button
6) Specify Output type,Form name and Program and Save it.
http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
Amit.
‎2008 Jul 29 10:49 AM
Hi Amar.
I would like to suggest a few references,
[SDN - Standard Reference for assigning your own form to a standard print program|;
[SDN - Reference for Assigning Form name to SAP print program|;
[SDN Weblog - Standard Reference for Configuring Output types for PDF-Based print forms|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4510] [original link is broken] [original link is broken] [original link is broken];
[SAP HELP - Standard Reference - Defining Output Types for forms|http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/content.htm]
[SAP HELP - Standard Reference for Defining the Procedure|http://help.sap.com/saphelp_erp2005/helpdata/en/c8/198a0b43b111d1896f0000e8322d00/content.htm]
[SDN - Reference for Using both NACE for assign form to print program and open_form to call form|;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave
‎2008 Jul 29 10:49 AM
Hi,
write the print program calling function modules
open_form
write_form " If needed.
close_form
In the open form - assign script to it.
and assign this program for an output type in NACE (t-CODE)
In the NACE t-code
select the application
and select the output type
and select proceeding outputs
and then assign your sap script form name and print program in the program.
Hope it is useful to you.