Sie sind auf Seite 1von 5

What is the difference between a script & a report ?

Script is a form which has a layout set as per the company standards and can be used for external use too. Generally reports are designed for internal use for in house users What are the components/elements/layout sets in sap script ? Layout set and Print program and the layout set has windows in it. Components of scripts: Layout sets, SAPScripts text, ABAP print program, symbols, function module like open form, start form, write form, etc.... Layout sets of scripts are: Header data, paragraph formats, charcter formats, windows, page windows, pages. Can you create a script with out a main window ? No How many main windows can be created for a script ? 99 How can we use tables in sap scripts? We can access structures and the tables tat are updated during runtime. Else you have to pass the structure values to the table in the print program. How to print a logo in a sap script? Upolad in the R3 using Se78 and use the Include statement in the script. When we need to modify standard scripts (eg:medruck) given by sap? When the client goes for customization of the form What is the use of transaction code NACE in sap scripts? You can track the form and the print program used for that form What is the table name that will contain all the script form names and print program names? TNAPR Can you assign your own form to a standard print program? how? Yes. thru NACE What is the use of PROTECT & ENDPROTECT? Keeps the block of text in the same page.

How to add extra functionality to a standard print program with out touching the print program? Thru subroutine programs What is sub routine pool in sap script? when it is used? Its an Abap prog of type sub routine pool, it is used for calculating certain variables, eg DUE date for an Invoice. You pass the values from the form thru ITCSY structure intot he prgram. How to read text in sapscripts? SO10 What is the difference between paragraph & character format? Self explanatory definition How to use a sapscript for multiple languages ? (english, germany etc) Copy the script in each lang or you have an option to click 'TO all Languages' How to download/upload sapscripts from & to your PC ? SE78 or RSTXLDMC What is the difference between scripts & smart forms? Scripts are client-dependent but SF are client Independent Sapscripts and abap programs are client dependent or not? Why? Scripts are client dependent. / Reports are client Independent. What is the transaction code for logo uploading? SE78 What is the standard program used for uploading the logo to script? RSTXLDMC FM to upload image in tiff format. How can you send forms from one client to other? SE71, Utilities -> Copy from client... What does open_form, write_form, close_form do? Again its self-explanatory What is the diffrence between open_form and close_form? open_form is used to open the form/initiate the form. close_form is used to conclude the open_form.

How to convert a sapscript to smart form? tcode SMARTFORMS, I think its menu Utilities you have an option.. Migrate Scripts to Smartforms. How to send a smartform result through mail? I think you have to configure the output type. Not sure.. How to select desired paper size in sapscript? In Basic settings. How to print the Page Nos in Forms. Every page I want to print 1 of 10 , 2 of 10 , 3 of 0 ...etc. PAGE &PAGE& OF &SAPSCRIPT-FORMPAGES& *-- Nitin How to debugg a script? This can done in two ways: In the form Utilities->debugger / RSTXDBUG FM for debugging script The Procedure for debugging SAP script is: Generally SAP script contains the Layout and corresponding print program. First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option. Now go to SE 38 and enter ur Print Program name and execute the program. Now you can debug the script Page wise and window wise. ****************************************************************************** LUW: The R/3 system is multi user system and many users access the same information at the same time, which is mainly DATA. Consider the case where one user is modifying a record, and second user is trying to delete the same record. If the second user is successful in deleting the record then the first user will face problem for modifying the record that is already deleted. The avoid such situation, R/3 system has provided Logical Unit of Work, which is defined as a locking mechanism to protect transaction integrity. Of course, there are other measures, which ensures data integrity like check table i.e. foreign key relationship. Within SAP system there are three types of transaction and may be distinguished as:

Database transaction known as LUW. It can be defined as a period in which operation requested must be performed as a unit, i.e. all or nothing operation. At the end of LUW, either of the database changes are committed or rolled back.

Update transaction or SAP LUW. One SAP LUW can have several databases LUW. So a set of a database is either committed or rolled back. The special ABAP/4 command COMMIT WORK, marks the end of a SAP LUW. ABAP/4 transaction. Is made up of a set of related task combined under one transaction code. ABAP/4 transactions are for programming environment, in which ABAP/4 transaction functions like one complete object containing screens, menus and transaction codes.

R/3 system has provided in built locking mechanism, which defines the Logical Unit of Work. Also user can set his own locking mechanism. The LUW starts when a lock entry in the system table is created, and it ends when the lock is released.

To provide the user the facility to communicate with the table in order to modify or delete or insert data, R/3 has provided tool called SCREEN PAINTER. This tool allows you to design screen, process screen through program and update the database table. SAP has provided one and only one way to update the database table, i.e. transaction. Though you can update database table by using open SQL statement through program, SAP usually doesnt recommend this kind of updating. Many standard transactions are available to update standard table but if the need arises, the developer should be able to develop new transaction, which allows the updating of database tables. This can be achieved by using various components of screen painter.

SAP LUW The Open SQL statements INSERT, UPDATE, MODIFY, and DELETE allow you to program database changes that extend over several dialog steps. Even if you have not explicitly programmed a database commit, the implicit database commit that occurs after a screen has been processed concludes the database LUW. The following diagram shows the individual database LUWs in a typical screen sequence:

Under this procedure, you cannot roll back the database changes from previous dialog steps. It is therefore only suitable for programs in which there is no logical relationship between the individual dialog steps. However, the database changes in individual dialog steps normally depend on those in other dialog steps, and must therefore all be executed or rolled back together. These dependent database changes form logical units, and can be grouped into a single database LUW using the bundling techniques listed below.

A logical unit consisting of dialog steps, whose changes are written to the database in a single database LUW is called an SAP LUW. Unlike a database LUW, an SAP LUW can span several dialog steps, and be executed using a series of different work processes. If an SAP LUW contains database changes, you should either write all of them or none at all to the database. To ensure that this happens, you must include a database commit when your transaction has ended successfully, and a database rollback in case the program detects an error. However, since database changes from a database LUW cannot be reversed in a subsequent database LUW, you must make all of the database changes for the SAP LUW in a single database LUW. To maintain data integrity, you must bundle all of you database changes in the final database LUW of the SAP LUW. The following diagram illustrates this principle:

The bundling technique for database changes within an SAP LUW ensures that you can still reverse them. It also means that you can distribute a transaction across more than one work process, and even across more than one SAP system. ****************************************************************************** What is troubleshooting and where you can use this TS? It is defined as fixing a problem. It means that How the error was occured and how the error has to solve .then that process is called TroubleShooting. ****************************************************************************** At line selection event:
AT Line-Selection This event is processed whenever the user chooses a valid line in the list (i.e. a line generated by statements such as WRITE,ULINE, or SKIP) with the cursor and presses the function key which has the function PICK in the interface definition. This should normally be the function key F2, because it has the same effect as double-clicking the mouse, or clicking once in the case of a hotspot. The processing for the event AT LINE-SELECTION usually generates further list output (the details list) which completely covers the current list display. If you want the current list display to remain visible (to aid user orientation), you can do this with the key word WINDOW.

=>In most cases, the information from the selected line is used to retrieve more comprehensive
information by direct reading. When displaying the original list, you store the key terms needed for this in the HIDE area of the output line.