Anda di halaman 1dari 6

Create Scripts of Your Own Using Standard Scripts

All Standard Scripts are in client '000'. We have to copy them to '800'. (this is your own company define client no) All Standard Scripts and their respective print programs are listed in table 'TNAPR'. Ex: FORM MEDRUCK has the Driver Program SAPFM06P. NOTE: Never make any changes to the Standard Driver Programs

STEP 1. ---------Goto Transaction Code <SE71> and select from Menu UTILITIES ->Copy from Client. Enter the Standard Form Name, It source Client 000 and the target Form Name that you want it to be saved as on your client. Say you are naming it as zmedruck1. Click on EXECUTE.

STEP 2. --------Converting form to English. Open zmedruck1 in <SE71> With language DE. Then goto UTILITIES -> Convert Original Language from DE to EN. Then you can modify the layout for example, chaging the logo, or changing the headers, or adding any new code to do some calculation etc., SAVE THE CHANGES AND ACTIVATE. Then select from the menu FORM -> CHECK -> TEXT. SELECT your driver program name from the list adn click on COPY. If you don't see the program name in the list then click on 'APPEND PRINT PROGRAM' and add your program name and then select it from the list and click on COPY.

STEP 3: Assigning our form to the standard print program. ----------Start Tr.Code <NACE>. In our present case since we are working on 'Purchase order' we have to select EF and click on the button Output Types. Then on Right hand side, scroll down and select NEU - New P O Printout. (This may change for different programs). Then Double click on Processing Routines on Left hand side. Change from Display -> Change Mode. Give your form name (zmedruck1) for printoutput and SAVE.

STEP 4: ---------Start Tr.Code <ME22N> since you are working on Purchase order and click on print Preview to make sure your layout etc., changes are OK. If not again you have to make the changes accordingly.

SAP provides standard forms for all kinds of applications. If the client/Customer is not satisified with the layout of the form, then New forms are created. The same driver may or may not be used for the new forms. Once the forms are developed, output type is created for driver program and Form for the applications. Check the following SAP Standard programs. RVINVOICETH - Invoice/Tax Invoice MEDRUCK - Purchase Order WASCHEIN - Goods Issue Slip INVENT - Physical Inventory Document SD-SALES-SUMMARY - Sales Summary The standard sap script is SD_INVOICE_LIST for invoice list

Medruck Change: STEP 1.

Goto Transaction Code <SE71> and select from Menu UTILITIES ->Copy from Client. Enter the Standard Form Name, It source Client 000 and the target Form Name that you want it to be saved as on your client. Say you are naming it as zmedruck1. Click on EXECUTE.
STEP 2.

Converting form to English. Open zmedruck1 in <SE71> With language DE. Then goto UTILITIES -> Convert Original Language from DE to EN. Then you can modify the layout for example, chaging the logo, or changing the headers, or adding any new code to do some calculation etc., SAVE THE CHANGES AND ACTIVATE. Then select from the menu FORM -> CHECK -> TEXT. SELECT your driver program name from the list adn click on COPY. If you don't see the program name in the list then click on 'APPEND PRINT PROGRAM' and add your program name and then select it from the list and click on COPY.
STEP 3: Assigning our form to the standard print program.

Start Tr.Code <NACE>. In our present case since we are working on 'Purchase order' we have to select EF and click on the button Output Types. Then on Right hand side, scroll down and select NEU - New P O Printout. (This may change for different programs). Then Double click on Processing Routines on Left hand side. Change from Display -> Change Mode. Give your form name (zmedruck1) for printoutput and SAVE.

STEP 4:

Start Tr.Code <ME22N> since you are working on Purchase order and click on print Preview to make sure your layout etc., changes are OK. If not again you have to make the changes accordingly.

Re: SAP Standard Scripts ( how to Modify Standard Scripts) Go to transaction OMFE. Tell me what you see there for the output type you are interested in. Let me take the standard output type NEU. The entry looks something like this. NEU Purchase order 1 SAPFM06P ENTRY_NEU MEDRUCK. The first one is your output type, next is its description, next is the medium, then the program, routine, and the form name. You already copied the layout MEDRUCK to ZMEDRUCK. Now copy SAPFM06P to ZZSAPFM06P. Now ENTRY_NEU routine is in the include FM06PE02. You need to make your changes here to accommodate for the new field. So copy this include to ZZFM06PE02 and make your changes. Also, in ZZSAPFM06P, change the line where it says INCLUDE FM06PE02 to INCLUDE ZZFM06PE02. Now in this routine ENTRY_NEU, there is a function module call ME_READ_PO_FOR_PRINTING which reads in the PO data from the tables. We need to copy this function module as well as this is where you will do your extra selections for the new fields. You will do the same with the other function call ME_PRINT_PO, if you need to change anything on the print. after this to define output type... NACE 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.
http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm https://forums.sdn.sap.com/thread.jspa?forumID=50&threadID=120165&messageID=1344901#1344901 EX--in simple terms..take a transaction say ME21N ( Purchase Order ), u can see a Print icon there. now when u click on this icon, it has to print the PO document. Now how does it do that? when u click Print, the control gets transffered to a print program, now which program gets triggered is decided by what program name u specify in NACE. So in NACE-->EF-->Output Type-->NEU-->processing routine--> u can see some standard program already configured( maybe SAPFM06P n form MEDRUCK )..these are the programs n sapscript that gets executed wen u say "PRINT" in the transactrion...so u can customise the print program for customer changes over here by copying the standard program n form into a Z/Y one and replacing the program names in NACE.

Modifying SAP Forms If 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

STANDARD SCRIPT AND INSERT A LOGO IN IT Suppose RVDELNOTE is your standard script first copy the script into ZRVDELNOTE. in menu bar we have option UTILITIES > COPY FROM CLIENT. go to SE78 and upload logo. go to SE71 > Open your window > Text Elements >Insert > Graphics

==================*************************
Download / Upload SAP scripts in different clients with different names
Posted: Apr 16, 2010 9:15 AM

Reply

Hello Folks, I want to download and upload one SAP script from Production server to development server.. Both the systems are different. I have used RSTXSCRP program and downloaded to desktop . Now i need to upload the script in development client..But with different name. I think its not suggestable to change the formname in the notepad.. I need to change in the source system but the problem here is source system is a production system.. I cannot create a form there.. is tehre any way to do this?? I have other idea that create the form in development server instead of production then use it... I just need is there any other workaround... Regards, Raj

You can upload your downloaded sapscript to development server with the same name. Now, create a sapscript with the new name and save it. In change mode, goto FORM->COPY FROM. Copy from the script uploaded earlier and delete it. You can use the copied form with new name. Also, check whether the sapscript is available in any other client in your development system. May be the script is not available in the client you are using. If it's available in any other clients, then program RSTXFCPY can be used to copy it to your client in the same system. I'm not sure of your requirement. But, if the sapscript is renamed the configurations also need to be made with the new name Downloaded the script with different name in development server in one system and upload the same in other development system