Thursday 25 April 2013

SAP Script and Smartform Interview questions and answers

What is difference between SAP Script and Smartform?

SAP Script:                                                                          
1.Client dependent
2.Multiple page format is not possible 
3.Scripts allows only black & white texts
4.There is no mixture of portrait and landscape format
5.Scripts allows more than one main window
6.This is not support for online.

Smartform:

1.Client independent
2.multiple page format is possible
3.Text can be written in various color
4.There is an option to print a mixture of portrait and landscape format
5. Smartforms allows only one main window on page
6.This is online support.


Windows are defined in form maintenance. They represent areas that are positioned on pages – as page windows – and in which at a later time text is printed. You must define at least one window for each form. Otherwise, SAPscript cannot format the text.
You can assign window names and window types. However, note that you can define only one main window per form.
Use one of these window types: 

MAIN WINDOW:
Main window in which continuous text is printed. This is the window used by dialog users of a print program and form. For example, the body text of a letter would be entered in MAIN.
The text in the main window can extend over several pages. If the text fills one page, output continues in the window of the next and subsequent pages, as long as MAIN has been defined for these pages.


VARIABLE WINDOW:
Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page.
To every window you can assign text, which is printed in the corresponding window when the form is formatted. To assign text, use text elements, which are stored with the form.
To create and maintain text elements with the SAPscript Editor, choose Text elements. For more information, see Text Elements.Should the text selected for the window exceed the window size, then the text is cut off. 



CONSTANT WINDOW
Window with constant contents that is formatted only once.
Currently, constant windows are processed in the same way as VAR windows. You should only use windows of type VAR.

How to debug SAP Script?
Goto--- Tocde SE71-->Utilities-->Active Debugger. and then go to Tcode SE38-->give driver program name of SAP Script then click on debug.

How do you transport a script and how do you transport standard text?
By using standard program RSTXTRAN we can transfer SAP standard text form one client to another client  and using standard program RSTXSCRP we can transport script from one client to another client.

Different types of SAP Script Symbols?
1.System symbols   2. Standard symbols 3.Program symbols 4.Text symbols.

How to find driver program given the name of SAP script?
First you need to goto Form-->check-->text, you will get one small box hit on enter where you can see the driver program name.

Tuesday 23 April 2013

SAP ABAP Data Dictionary Interview Questions and Anwers

What is Delivery Class?
You use the delivery class to control the transport of table data for an installation, upgrade, or client copy and transports between customer systems. The delivery class is also used in the extended table maintenance.

There are the following development classes:
      A- Application table (master and transaction data).
      C- Customer table, data is only maintained by the customer.
      L- Table for storing temporary data.
      G- Customer table, SAP can insert new data records but cannot overwrite or delete existing ones. The customer namespace must be defined in table TRESC. To define the customer namespace use report RDDKOR54. You can start it directly from the table maintenance by choosing Maintain Customer Namespace on the Delivery and Maintenance tab.
      E- System table with its own namespace for customer entries. The customer namespace must be defined in table TRESC. To define the customer namespace use report RDDKOR54. You can start it directly from the table maintenance by choosing Maintain Customer Namespace on the Delivery and Maintenance tab.
      S- System table, data changes have the status of program changes.
      W- System table (for example table of the development environment) whose data is transported with its own transport objects (such as R3TR PROG, R3TR TABL and so on).

How many types of Data Classes are there in sap abap?

i) APPL0(Master Data) for the data frequently accessed but rarely updated/changed.
ii)APPL1(Transactional Data) for the data that is frequently changed.
iii)APPL2(organizational Data) for customizing data that is defined/ entered during system installation and rarely changed.

 What is Value Table? 
Value table is maintained at Domain level in SAP. During domain creation, value range of the domain i defined by specifying value table. 

What is Table Attribute? 
The Table attributes determine who is responsible for maintaining a table and which types of access are allowed for the table. The most important table attributes are:
i)Delivery class
ii)Table Maintenance allowed 
iii)Activation type.

What is is a Match code? 
A Match code is a tool tip to help us to search for the data records in the system. Match codes are an efficient and user friendly search where key of a record is unknown.
What is meant by Hot spots?
A Hot spot is a list area where the mouse pointer appears as an upright hand symbol. When a user points to that area, a single click does the same thing as a double click. Hot spots are supported from R/3 release 3.0. 

Difference between call by value and call by reference?
Call By Value:creates a new memory location for use within the subroutine. The memory is freed once it leaves the subroutine, changes made to the variable are not affected outside the subroutine.
Call by Reference : passes a pointer to the memory location. Changes to the variable within the subroutine affects the variable outside the subroutine.

How to create a table in ABAP?

Step by Step Procedure to Create DDIC Tables 

Go to Tcode se11 and create table.  

In Delivery and Maintenance Tab Give Delivery Class and Maintenance.





In Fields Tab Create Fields.




Create  New Data element for the field by double clicking on the Data Element Name.






Create  New Domain  for the field by double clicking on the Domain Name.







Select Data Type  and No of Characters for the field as shown below.





After Selection Activate the Domain and Data Element as shown below.  


 



 



 



 After Field creation Give Technical Settings for the table  as shown below.

 



 

 
 Save the Technical Settings and return back to fields. 
Now after Technical Settings Activate the Table.  

Create Entries for the Table as shown below.  
 As it is procedure for remaining Fields....







 

 

 


 

What is Data Dictionary?

ABAP Dictionary

Data definitions (metadata) are created and managed in the ABAP Dictionary. The ABAP Dictionary permits a central description of all the data used in the system without redundancies. New or modified information is automatically provided for all the system components. This ensures data integrity, data consistency and data security.
You can create the corresponding objects (tables or views) in the underlying relational database using these data definitions. The ABAP Dictionary therefore describes the logical structure of the objects used in application development and shows how they are mapped to the underlying relational database in tables or views.
The ABAP Dictionary also provides standard functions for editing fields on the screen, for example for assigning a screen field an input help.
What Information is Stored in the ABAP Dictionary?
The most important object types in the ABAP Dictionary are tables, views, types, domains, search helps and lock objects.

Tables are defined in the ABAP Dictionary independently of the database. A table having the same structure is then created from this table definition in the underlying database.
 Views are logical views on more than one table. The structure of the view is defined in the ABAP Dictionary. A view on the database can then be created from this structure.
 Types are used in ABAP programs. The structure of a type can be defined globally in ABAP programs. Changes to a type automatically take effect in all the programs using the type.
Lock Objects are used to synchronize access to the same data by more than one user. Function modules that can be used in application programs are generated from the definition of a lock object in the ABAP Dictionary.
 Domain
A domain defines a value range. A domain is assigned to a data element. All table fields or structure components that use this data element then have the value range defined by the domain. The relationship between the field or component and the domain is thus defined by the data element of the field or component.
Fields or components that refer to the same domain (with the assigned data elements) are also changed when the domain is changed. This ensures that the value ranges of these fields or components are consistent. Fields or components that are technically the same can thus be combined with a reference to the same domain.
The value range of a domain is defined by specifying a data type and length (and number of decimal places for numeric data types).
 This graphic is explained in the accompanying text


 A personnel number is defined by the data format NUMC and by specifying the number of places for this personnel number. The value range of a domain can be restricted by definin fixed length. If all the fields or components that refer to the domain should be checked against a certain table, this table can be defined as the value table of the domain.
Output attributes can also be defined for all the fields or components that refer to the domain  A conversion routine can be assigned to a domain. This conversion routine converts values from display format to internal format for the fields or components that refer to this domain.

Monday 22 April 2013

What is Sap Abap

ABAP/4 Programming

ABAP 4 is the programming language used to code SAP R/3. The full form of ABAP is Advanced Business Application Programming. There are three main components of the ABAP 4 language. These are -
  1. ABAP 4 Development Workbench
  2. ABAP 4 Data Dictionary
  3. ABAP 4 Repository Information
The development workbench gives access to SAP's development tools. Any program developed in ABAP is stored in the R/3 repository. Definitions of variables and parameters on the other hand are stored in the data dictionary. ABAP programmers use the development workbench to write programs in SAP. ABAP is similar to many other programming languages. It consists of Source Code, Text elements and Attributes. As part of the ABAP 4 syntax, certain rules apply to writing the ABAP code.- Learn more at www.technofunc.com. Your online source for free professional tutorials.

What is SAP?



What is SAP?
Whether your company recently purchased SAP software or you just joined an organization using SAP software, you will undoubtedly find yourself asking the basic questions of "What is SAP and how do I use it?". Answering the question "What is SAP" is a far easier task than answering "How do I use it?". The answer to "What is SAP" is the same across organizations, however the "How do I use it?" will vary greatly by organization and functional area. In this section of our website, we will tackle the "What is SAP?" question. We encourage you to visit our SAP training section to obtain a detailed answer to the "How to do I use it?" question.

What is SAP?

Thousands of mid to large size companies worldwide use SAP software to run the majority of their day-to-day business transactions and processes. Called an enterprise system, or ERP (Enterprise Resource Planning) solution, it can literally run an entire enterprise. Companies can run SAP's transactions to support their Order to Cash, Procure to Pay, Plan to Produce, Hire to Retire business processes, and much, much more!