cancel
Showing results for 
Search instead for 
Did you mean: 

scripts

Former Member
0 Kudos

how to change the standard script?how to add fields to that?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

before changing standard script you must migrate into user defined script.

<b>for that one follow these steps...</b>

1)goto SE71

2)provide name for SCRIPT( begin with Z)

3)select CREATE option

4)press ENTER

5)select FORM option(u find this option on top of the screen)

6)from that choose MIGRATE option.

7)then it will displays dialog screen with required field like FORM( provide standard form name) and LANGUAGE( here provide in which language form exisisting)

8)press ENTER.

9)select SAVE and ACTIVATE.

<u><b>procedure to add fields</b></u>

1)goto SE71.

2)provide FORM( which you migrated).

3)slect PAGE WINDOWS.

4)select EDIT option.

5)select WINDOW required for adding a field.

6)select EDIT option.

7)from that choose ELEMENT( also called TEXT ELEMENTS)

8)goto------>EDITOR.

<b>Here you enter field as per your needs.</b>

      • i give sample code

AS <S> modifying layout </>

/: if &ekko-lifnr& > 50000

/ plant id is 300

/: endif

9)after completion of entering element goto BACK.

10)choose SAVE.

11)ACTIVATE.

regards,

Ashokreddy.

Message was edited by:

Ashok Reddy

Answers (7)

Answers (7)

Former Member
0 Kudos

in initial screen(se71),

in the menu bar ->utilities->copy from client and

logon with en languege...

write subroutine using itcsy structure (or)

after executing transaction like vf02 compare with PRINT PRIVIEW AND MAIN WINDOW OF THE FORM...

CHECK DATA COMING FROM WHICH TABLE AND WHICH FIELD

PLACE IN THE MAIN WINDOW OF THE FORM ..

IT WILL WORK

former_member196280
Active Contributor
0 Kudos

You have to customize it.

You cannot modify the standard script.

Goto SE71 , utilities--> copy from client ,

Change according to your requirment.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

First go to SE71, then give a Name for the Z-form and copy the predefined form from UTILITES -> COPY FROM CLIENT.

Then open the coiped Z-form and save and activate.

This is the procedure for copying a predeifned form.

go to SE71 T code

enter the std script, display

from the second page Copy the script to the ZSCRIPT with EN as lang

and do the modifications in that Zscript and that has to be attached in the NACE t code for the related Output type and Driver program.

for example

for PO MEDRUCK is the std Script Copy it to ZMEDRUCK and do the changes.

then in NACE select the output type NEU and attache it to SAPFM05P program and remove the MEDRUCK and keep ZMEDRUCK.

reward if useful.

Regards,

Priyanka.

Former Member
0 Kudos
Former Member
0 Kudos

hi

good

go through this

you want to modify SAP forms, set up your development environment as follows:

Make sure that no SAP-standard forms are stored as client-specific copies in your development client.

Such forms should be held only in client 000, the SAP development and installation client. If you access an SAP-standard form from another client, then the central copy in client 000 is used.

If you need to remove SAP-standard objects from your development client, see Notes 10388 and 3355 in the SAP Online Service System (OSS). These notes explain the procedure for saving modified forms and then deleting all forms.

To modify SAP standard forms,

– Copy the forms you need from client 000 to your development client.

– Rename the forms using a name from the customer name reserve (names starting with Y or Z).

– Copy the forms to one of your own Y or Z development classes.

Renaming the SAP standard object makes it possible to manage and transport your changes with the SAP workbench organizer. The organizer is not activated for SAP-standard objects that are modified in clients other than 000.

To put your modifications into effect, you must also modify the ABAP print program used to print documents that use this form. You should rename such print programs and store them in your own Y or Z development classes.

You can use the SAP Customizing System to replace the SAP print program with your modified print program in the affected applications.

Forms: Concepts

Forms are used to control the page layout and also the text formatting in your documents. Before formatting a document for output to the screen or to a printer, you must assign a form to it. If you do not specify a form for a document, then the SYSTEM form is assigned to the document by default.

Application-specific forms are used in SAP applications to specify the page layout for such special documents as invoice or checks. These forms specify the structure of the information on the page(s) of such a document. They define, for example, the address header, item lines, the footer, and so on.

There are two ways to format texts with forms:

In the standard SAPscript text processing (Tools ® Word processing ® Standard text), you can select a form for a document. You can then type text into the main window of the form and output the document in the format defined in the form.

For example, you can select a form for a letter. You can then type the body text of the letter in the main window. When you print the letter, the default text elements in the other windows of the form (heading, footer, and so on) are printed with the body text.

A document can be generated by a print program in one of the SAP applications. The print program uses a form to generate the document. Most correspondence and document generation in the SAP System are handled by way of print programs.

A print program selects the text elements that are to be printed in the windows of a form. It may also collect information from the user or ask the user to input text directly, as in some correspondence functions. The print program may also provide data for variables defined in the form.

Finally, the print program uses the form to format the document for display or printing.

Check this link...

http://help.sap.com/saphelp_erp2005/helpdata/en/d1/802d7d454211d189710000e8322d00/frameset.htm

thanks

mrutyun^

Former Member
0 Kudos

hi,

before changing standard script you must migrate into user defined script.

<b>for that one follow these steps...</b>

1)goto SE71

2)provide name for SCRIPT( begin with Z)

3)select CREATE option

4)press ENTER

5)select FORM option(u find this option on top of the screen)

6)from that choose MIGRATE option.

7)then it will displays dialog screen with required field like FORM( provide standard form name) and LANGUAGE( here provide in which language form exisisting)

8)press ENTER.

9)select SAVE and ACTIVATE.

<u><b>procedure to add fields</b></u>

1)goto SE71.

2)provide FORM( which you migrated).

3)slect PAGE WINDOWS.

4)select EDIT option.

5)select WINDOW required for adding a field.

6)select EDIT option.

7)from that choose ELEMENT( also called TEXT ELEMENTS)

8)goto------>EDITOR.

<b>Here you enter field as per your needs.</b>

      • i give sample code

AS <S> modifying layout </>

/: if &ekko-lifnr& > 50000

/ plant id is 300

/: endif

9)after completion of entering element goto BACK.

10)choose SAVE.

11)ACTIVATE.

regards,

Ashokreddy.

Former Member
0 Kudos

hi Anand,

Check out this related thread

Regards,

Santosh