Sunday 24 April 2011

ABAP Processor Functionality


ABAP Processor Functionality

  • In ABAP created a program, and executed prog by ABAP PROCESSOR
  • While executing the program it executes the program in sequence(i.e. Line by line based on character format
  •  ABAP Processor is an ‘Interpreter’ and it can execute logic in sequence based on character format.


Table creation in oracle :

Create table yemp ( eno Integer …)

  • while working with SAP R/3 we cannot create tables directly by syntactically like oracle it uses ABAP dictionary to create it
  • under ABAP language, see about database table creation
  • name of table is zemp. If object starts with ‘z’ i.e. user defined object.. in this table  fields are eno, ename.

Eno
Ename



  • to do this job, going to use ABAP Work bench Tool, nothing but ABAP Dictionary. Transaction code is SE 11.
  • In SAP to create a table we have to work predefined Application(ABAP Dictionary) we should handle screens given by SAP.
  • In oracle we can create table with syntax. Where as in SAP we can not create table with syntax like ORACLE.
  • Once we handle Screens, tables can be generated automatically.
  • Those Screens are : (i)Domain screens (ii) Data Element screens
DOMAIN:
·        In any technology while creating table we should assign datatype, size for every field for that we have to use Domain Screen in SAP.
·        DOMAIN allows to maintain datatype and length of a field.

DATA ELEMENT :
  • Imagine one table created in oracle as a BACK-END.
Eno
Ename



  • And Front-End is VB. Field labels are empno, empname.





  • In client server technology field labels can be kept from Front-End.
  • In SAP field labels can be kept from Front-End like in Client-Server Technology. Apart from that in SAP field labels can be kept in Back-End also. To keep labels in Back-end Work with data element screens
  • Data Element allows to maintain field labels from SAP Back-End(i.e. Database Server)/
  • In SAP Field labels can be kept in FRON-END also like in Client-Server technology.
  • Data Elements screen is optional because labels can be maintained from Front-End also.
 
ABAP Dictionary :
Domain : provider properties of respective fields i.e.Datatype  and length of the fields
Data element: provides field labels for respective field in backend.


* without ‘Data element’ it is possible to create a field in SAP R/3
Table creation steps
 
1. Sap R/3 menu 
2. Choose TOOLS from main menu
3. select ABAP Work bench
4. choose Development
5. click on ABAP  dictionary (Tr code: se11)
It will displays a initial screen in that select ‘Domain’ and give domain name i.e.


·                                            select Domain : ZENODEMAIN  these are user defined tables so start with Y or Z
( Domain describes valid values for a field)
·                                            select a window and provide that window
*displays a window and provide following in that
·                                            short text : domain for dno field

*Mandatory fields :nothing but fields that compulsory enter in window i.e.
Datatype, length of  char

* if we provide Data type as a integer * ABAP processor will convert it to character.
ABAP processor :- is an interpreter and it executer the logic sequentially this ABAP processor will execute based on character format.

* it was provide character type directly processor uses directly
Data type : CHAR

Length of char :             15
Field or length
·                                            Save the details by pressing  Ctrl +5 it will display or window and provide following
·                                            Development class :      make it as blank
·                                            Select Local object in that window.
·                                            Press Ctrl +F3 for activate that Domain it will shows the domain field in Active
‘.’ With Activation object will be transferred from application sever to database server.

·                                            Press F3 for back to initial screen i.e. ABAP dist in that select (1) Data element
·                                            provide short text : Data element for END
·                                            provide Domain which we created just now
·                                            Domain : ZENODOMAIN
·                                            Select label length provide table
Medium                 20           EMPLOYEE NUMBER
·                                            Ctrl +S for save
·                                            Development class                    leave it as Blank
·                                            Select  local class object
·                                            Ctrl +F3 for Activate Data type.
·                                            F3 for back
·                                            Select (1) Data base table
·                                            Go for   Create
·                                            Short Description :     
·                                            Delivery Class : A
ü   enable character for maintenance allower
 
 


·                             Click on Fields
·                             Go to fields option
Fields          Key      Fieldtype          Datatype          Length
ü            Zenodata (dataelement )i.e.  alter enter the fields type click the datatype i.e. datatype and length will automatically get it from domain.    
·                             Go for second field ENAME           
·                             Select direct type there fields type will be disabled and datatype is length options will enable to we can enter it manually.
                 If u want to go for without data element for end field then go which on Direct type
                 Datatype      :           CHAR
                 Length         :           25
·                             Ctrl +s for save
·                             Go with local object then
·                             Select Go To
                        Technical Settings        
·        Provide data class : APPL 0
·                             Size category           :           i.e.  0 indicates upto 61,000 records we can use
·                             Ctrl +s         Save
·                             F3 for back and Activate it by
·                             Ctrl +F3
·                             Data inserting :

CHECKING And Inserting Of Fields :-
·                             Select UTILITIES
·                                            chooseTable contents
·                                             Go for Display for check weather created fields and getting or not
Go for Create to enter for data in that fields by using Reset apt or we Can enter more records 

Activation :  By Activating the object will transfer from appoint server to database server.

















No comments:

Post a Comment