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

REG: SAP SCRIPT

Former Member
0 Likes
868

HAI,

HOW TO COPY STD SAP FORM AND MODIFY ,.

HOW TO GET DRIVER PROGRAM.

AFTER MODIFYING HOW CAN LINK FORM, PROGRAM AND

TRANSACTION CODE AND HOW CAN I SEE THE EFFECT.

PLEASE SEND, WITH EXAMPLE,STEP BY STEP PROCESS

THANK YOU

ASHOK

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

Hi

Scripts copying

goto SE71 tcode

enter ZFORM and create enter some description and save

from the second screen Menu

from menu

Form-> copy from

enter std script and client

it will be copied to your ZFORM

save and activate

do the changes as per your requirement and activate

you have to assign it in NACE tcode for the driver program

You can use the table TNAPR to know the program

see the NACE tcode settings

NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).

You should know the Application of a document first Like:

for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.

so first select the Application type (ex: EF) for PO and press OUtput types

then a list will come in that you should know the related output type for PO.

in this case it is NEU,

select that and click on the processing Routines button on the left side

it will display the Medium, Driver Program and the Script form or smartform related to that document..

Reward points if useful

Regards

Anji

6 REPLIES 6
Read only

Former Member
0 Likes
812

hi

You can upload smartforms from one system to another.You will see this option in Utilities menu of Smart Forms Transaction. It will download the Smart Forms in XML Format,which can then be uploaded to other system.

it works fine.

the transaction autyomatically triggers the driver program which links to the smart form

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

Former Member
0 Likes
812

Hi,

Go to SE71 - Menu(Utilities- COpy from client) - Give the FOrm name, Source CLeint and Target Form. and Press Execute.

- After Copying Script Go to Se71 and change the language to EN and you can change the Form.

Nace- Is a transaction code to Include your Print Program and Form.

Refer to this Link.

http://www.saptechnical.com/Tutorials/SAPScripts/ScriptMain.htm

Thanks,

Anitha

Read only

Former Member
0 Likes
812

hi

good

it is a SAP Script form or Smartform,

in sapscript you can use copy from client to copy the stanrdard from from 000 client to your client and can to the changes by making it z* program.

in case of smartform there is no standard form so you can copy the same sapscript from to smartform and can do the required changes.

thanks

mrutyun^

Read only

Former Member
0 Likes
812

Hi ,

In se71 Transaction Code give the Form the name and Select

Utilities --> Copy From client and then give the details

means source form and Target form .

If you want to attach this use the Transaction Code NACE.

there only you can get the Driver Program name.

Bye,

Satya.

Read only

Former Member
0 Likes
813

Hi

Scripts copying

goto SE71 tcode

enter ZFORM and create enter some description and save

from the second screen Menu

from menu

Form-> copy from

enter std script and client

it will be copied to your ZFORM

save and activate

do the changes as per your requirement and activate

you have to assign it in NACE tcode for the driver program

You can use the table TNAPR to know the program

see the NACE tcode settings

NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).

You should know the Application of a document first Like:

for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.

so first select the Application type (ex: EF) for PO and press OUtput types

then a list will come in that you should know the related output type for PO.

in this case it is NEU,

select that and click on the processing Routines button on the left side

it will display the Medium, Driver Program and the Script form or smartform related to that document..

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
812

Hi ashok

To copy standard form to Z form follow this procedure

enter tcode SE71 then ont he menu bar

Utilities--> Copy from client

<b>Form Name</b> there enter ur standard form name

<b>Source Client</b> enter ur client either 200 r 300 what ever it may be

<b>Target Form</b> give ur destination form starting with <i><b>Z</b></i>

Then press F8 or execute

<b>to link ur program to ur script follow this steps</b>

<u><i><b>See in the below example the things which are bold are drvier program u have to call driver program like this and to include a program in the script</b></i></u>


LINE/*INCLUDE &<b>RF140-TDNAME</b>& OBJECT BKORM ID FIKO LANGUAGE &<b>RF140-TDSPRAS</b>&
 LINEAF&ULINE(72)&
 LINE/E520
 LINE/**- Document header data ----------------------------------------------*
 LINET2&'Comp. code.. 'BKPF-BUKRS' &T001-BUTXT&'&
 LINET2&'Doc.type.... 'BKPF-BLART'   &T003T-LTEXT&'&
 LINET2&'Doc. number. 'BKPF-BELNR&,,&'Fiscal yr... 'BKPF-GJAHR&
 LINET2&'Refernce.... 'BKPF-XBLNR&,,&'CrsCoCdNr... 'BKPF-BVORG&
 LINET2&'Doc. date .. 'BKPF-BLDAT&,,&'Currncy..... 'BKPF-WAERS&
 LINET2&'Local curncy 'BKPF-HWAER' &RF140-BEZCURT1(40)&'&
 LINET2&'Convert rate 'BKPF-KURSF&,,&'Convr.date.. 'BKPF-WWERT&
 LINET2&'2. Loc.curr. 'BKPF-HWAE2' &RF140-BEZCURT2(40)&'&
 LINET2&'Conv.rte 2.. 'BKPF-KURS2&,,&'Conv. date 2 <b>'RF140-BEZUMRD2</b>(20)&
 LINET2&RF140-BEZBASW2&
 LINET2&'3. Locl curr 'BKPF-HWAE3' &RF140-BEZCURT3(40)&'&
 LINET2&'Cnv.rate 3.. 'BKPF-KURS3&,,&'Conv. date 3 <b>'RF140-BEZUMRD3</b>(20)&
 LINET2&RF140-BEZBASW3&
 LINET2&'Posting date 'BKPF-BUDAT&,,&'Posting per. 'BKPF-MONAT&
 LINET2&'Entry date   'BKPF-CPUDT&,,&'Entrd by.... 'BKPF-USNAM&
 LINET2&'Changed on . 'BKPF-AEDAT&,,&'Last updated 'BKPF-UPDDT&
 LINET2&'DocHdr text. 'BKPF-BKTXT&
 LINET2&'Refrnce typ. 'BKPF-AWTYP&,,&'Refrnce key  'BKPF-AWKEY&
 LINE/**- Document header supplement for actual docs from recurring docs ----*
 LINET2&'Recur.Doc.No 'BKPF-DBBLG&,,
 LINE/**- Doc.header supplement for recurring documents ---------------------*
 LINET2&'First run .. 'BKDF-DBBDT&,,&'Last run  .. 'BKDF-DBEDT&
 LINET2&'Next run     'BKDF-DBATR&,,&'Run plan     'BKDF-DBAKZ&
 LINET2&'Cleared mon. 'BKDF-DBMON&,,&'Run date     'BKDF-DBTAG&
 LINET2&'Num.of runs. 'BKDF-DBZHL&,,&'Del. indic.. 'BKDF-XDELT&
 LINEAF&ULINE(72)&

<u><i><b>Code 2 for calling report in ur script</b></i></u>


LINE/:PERFORM CHEQUE_JNTVENT IN PROGRAM <b>ZFIPROGRAM</b>
 LINE/:USING &BKPF-BELNR&
 LINE/:USING &BSEG-GJAHR&
 LINE/:USING &BSEG-BUKRS&
 LINE/:CHANGING &W_CHECT&
 LINE/:CHANGING &W_HBKID&
 LINE/:CHANGING &W_COMP_DESC&
 LINE/:ENDPERFORM
 LINE/*ENDIF
 LINE/*Anitha
 LINET2,,Comp. code,,: &BKPF-BUKRS&
 LINE/*Y&T001-BUTXT&
 LINE= ,,&'Doc.type.... 'BKPF-BLART'   &T003T-LTEXT&'&
 LINET2,,Desc .,,: &W_COMP_DESC&
 LINE= ,,&'Doc. date .. 'BKPF-BLDAT&
 LINET2,,Doc. number.,,: &BKPF-BELNR&,,&'Posting date 'BKPF-BUDAT&
 LINE/*Y..&'Fiscal yr... 'BKPF-GJAHR&
 LINE/*Y&'Refernce.... 'BKPF-XBLNR&,,&'CrsCoCdNr... 'BKPF-BVORG&
 LINE/*,,&'Doc. date .. 'BKPF-BLDAT&

Reward if helpfull

Regards

Pavan