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

Sap script

Former Member
0 Likes
956

Hello freinds,

Could you please tell me how can we assign print program to sap script.

Give me a full procedure.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
935

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

11 REPLIES 11
Read only

Former Member
0 Likes
936

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

Read only

Former Member
0 Likes
935

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

Read only

Former Member
0 Likes
935
Read only

Former Member
Read only

Former Member
0 Likes
935

Hi,

Refer the below link:

"saptechnical.com/Tutorials/Smartforms/SFMain.htm"

Reward if useful

Regards

Shiva

Read only

Former Member
0 Likes
935

Hello Amar,

use the function modules

OPEN_FORM

WRITE_FORM

CLOSE_FORM

Regards

Indu.

Read only

Former Member
0 Likes
935

Hi Amit,

Steps Involved:

1. go to NACE

2.Application

3.Output types

4.Processing Routines

Have A Nice Day

Chaitanya.

Read only

Former Member
0 Likes
935

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

Read only

Former Member
0 Likes
935

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.

Read only

Former Member
0 Likes
935

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

Read only

Former Member
0 Likes
935

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.