Class X Imp Notes Cbse
Class X Imp Notes Cbse
Answe
ACTIV
INACT
Prima
STEP1
STEP2
STEP3
SM30
step2
Step3
Transport Request and types
A Tr number is sued to move your developments/config from one sys to another sys
EXample
------
TR000001-------->This is called actual TR/Parent TR
TR000002------->This is called as Task/Child TR and this is created per uname.
sometimes the TR looks as below when we multiple users are using same TR
TR000001--------->This is called actual TR/Parent TR
TR0000002-->This is called as Task/Child TR and this is created per uname1:ARJUN
TR0000003-->This is called as Task/Child TR and this is created per uname2:RAVI
TR0000004-->This is called as Task/Child TR and this is created per uname3:RAMU
TR Types
---------
we have 4 types of TR'S
1.Customizing TR--->All FUnc configs are captured under this TR.(SCC1 Tcode)
2.Workbench TR--->All ABAP developments-RICEFW are captured under this TR.
3.Transport Copies--->A special type of TR which is created as a copy of original TR.
4.Relocations
what is Workbench TR
------------------------
Anything which is client independant is saved under a TR called Workbench TR-
Ex : ABAP Program is client independant and it is saved under Workbench TR
what is Customizing TR
Now when a func cons configures comp codes, plants....etc and saves it...now the sys
checks weather the config is client dependant or cleint indep.......
As youknow all the config are client dependant.....so system generated a TR called
Customizing TR.
That is why all the TR created by func cons are Customizing TR.
and then sometimes the fun cons wants to move the config from client 100 to 200
or 200 to 300 or 300 to 400....Then they use SCC1 Tcode whch is also called as
CLient COpy.
And then when you want to move the config from SERVER TO SERVER then we use
TR movements....i.e. Relase the TR and BASIS team moves the TR to another server.
TR concept
FIRST PARENT TR
CHILD TR
YOUR CONFIGS
400AR01===>400CLINT NO,,,,,AR01 is the COCOde
E070
E071
are the tables for TR'S.
Whan a Table starts with V….those are called as VIEWS…..But not tables
Transport of Copies
Jan 01-->You have done some Config in DEV Server and saved under TR000001
Now we want to move thsese config to QUALITY server
Normally we release the TR and import in the QULAITY SERVER
Instead of releasing the TR0000001 …..Just create TOC for the TR000001
Lets say TOC TR0000005 is created and lets release thhis TOC TR and import in the QUALITY server
Now we can move only one TR i.e. TR000001 to Quality and Prod SERVER
What is the Advantage here is….We always have singe TR for our Config's
On Jan 30………………..Finally we got the approval that the cofig is tested and ready to move to PROD server
Now we have to move all the below TR'S to Production
TR0000001
TR0000007
TR000009
TR0000005
TR00000011
Instead of this procedure….suppose if we have created a TOC TR …………then we can move only one TR
TR000001---->move his TR to Quality////// and Production
CHARM/SOLMAN
Some client use CHARM/SOLMAN as a tool for TR management
ARJUN is the Lead and will create a TR0000001 in the CHARM and is given to developers or consulatnats
lets say comsultant1 uses the TR TR000001 and now system creates a task(child TR) TR000002
lets say comsultant2 uses the TR TR000001 and now system creates a task(child TR) TR000003
lets say comsultant3 uses the TR TR000001 and now system creates a task(child TR) TR000004
ABAP Dicitonary is the central location where technical objects like TABLES,VIEWS…ETC can be created/changed/deleted
SE11 is the tcdde
SE16N is the tcode to display the data of tables,views.
Fieldname
customer no
name1
country
currency
What is DATA ELEMENT - DATA Element is a option to provide the detailed information about a field
That is
1.What is the Description
2.What is the Length
3.What is the DATATYPE
But SAP has provided lot of predefined data Elements and Field names
So….we no need to create new data eements or fields
Just use the exisiting given by SAP
How to find the exsiting data elements or fields……..CICK F1-->click Tech Info-->Double lcick on the field name and note down t
KUNNR
SAVE THE DATA-->SYSTEM DOES NOT KNOW IN WHICH CLIENT THE DATA SHOULD BE SAVED
SO THE SYSTEM SAVES THE DATA IN ALL THE CLIENT NUMBERS…800 ,810,820,830…ETC
THIS IS CALLED CLIENT INDEPENDENT TABLLE
here there is no security to your data
Client dependan Table--->A table which has MANDT as first field is called Cl.Dep.Table
MANDT
Enter the data in the table and save--->system saves the d ata only in one client i.e. Login Client.
IS a tacode to maintain the data in the tables by Func team/end users in a simple way
Steps to create a table--->Watch the video and create the table
Create TABLE MAINTENANCE OPTIONS--->Please watch the video to create Table Maintenace Option
Authorization Group : &NC& means without any authorziation group-->means everuser can maintain data
suppose if only few u sers wants to maintain the data then basis team will create a AUTHGroup
That AUTHGroup name must be enetered here
How to you control weather the table data should be transported or Not transported?????
Lets say we do not want to tranport the data then….please select the option : NO RECORDING
Lets say we want to tranport the data then….please select the option : STANDARD RECORDING
DATA Validation
so whenever we enter the data in the tabke…..we want to validate the data-->Then follow the below setps and create Validati
select the field in the table-->click on FK Icon--->system will propose the Config /master table-->click on YES
The validation is active---->Watch the video
Creating a ZTCODE for Table maintenance instead of using SM30--->Watch the video
Tcode:Z101-->Internally it will call SM30 only and configute the default table name here : ZCUSTOMERS_03
What is Domains
Domain means---->it’s a option which provides Technical Information like DATATYPE,LENGTH,FIXED VALUES,CONFIG/MASTER
Sir, Can you please show us 2nd option of SE93 (Report transaction), does it takes it to source code screen or any inp
Structures
Structures are same as tables ,,,the diff is,,,,,,tables is collection of fields and it stores data
wheras a STRUCTURE is just a collection of fields without storing data
Creating a STRUCTURE
Step1 --->Create a STR : ZADDRESS_FIELDS with some fields.-->Activate it
Step2--->Include the STR in the required Tables
Ex: The Func Cons asks the ABAP team to add the new fields in
1.FB01 Tcode----------->ABAP team finds what is the Main tabke,,,,ex: BKPF
2.VA01 Tcode
3.ME21 Tcode
STEP1 : Add the New fields to the Backend Tables,ex,BKPF using APPEND STRUCTURE
STEP2 : Add the same fields to the frontend Transaction,ex,FB01
STEP3 : Add the ABAP Logic to map the fields from frontend transaction to the Backend Tables via USEREXIT.
Please note that ---------->This is the most tough scenario in ABAP and it requires lot of testing as well Bcoz
we are customizing std sap transaction
Indexes in Tables
Index means sorting the table data as per required fields,ex,Customer wise, material wise,COCODE wise
When we do indexing….the reports become faster Bcoz the data is sorted/indexed already
When your reports are slow….Please create a Index on the exatc table and exact field
What is that Exact Table and field……This requires some analysis from ABAP….
Then based on the analysis….a Index is created on that Table and field
Now the reports become faster
2.Secodary Index----------------->A Index/Sortinf created on non primary key fields is called Sec Index
This is created based on the demand from func cosultant.
Views
A view is a collection of fields from multiple tables
You can think of views as SAP Queiries
But SAP query is a Report
and View is a just a obejct which displays the data by combinging multiple tables
JOIN TYPES
Table joins is common concept in Oracle,SQL,SAP,HANA
Joins means joining the tables in Views and SAP Queries
There are 4 types of Joins
1.Inner Join-------->common data from both the tables will be selected
2.Outer Join(Left Outer Join)--->The data from Left table is selected and displayed first. If there is same data in secnd table then
is displayed…else….Blank values are displayed
3.Right Outer Join--->The data from Right table is selected and displayed first. If there is same data in secnd table then also da
is displayed…else….Blank values are displayed
4.Full JOIN
GL MASTER DATA-->SKA1
GL COCODE DATA---->SKB1
Types of VIEWS
DB View-------------->A view with Inner Join is called DB View
Help View---------->A view with Left Iuter Join is ccalled Help View
Maintenance View---->A View to maintain the data is callaed….Maintenance View and it also uses Inner Join or Left Outer Join
Projection View------------>A view on single table is called Projection View
Sometimes a Table can have 400 fields.
Then we may not require all the 400 fields but we want 25 fields then we create projection View
IT_XXXX
WA_XXXX
ELSE.
ENDIF .
SELECT-OPTIONS=========>This is also like parameters but this takes ranges or multiple values as Inputs
Ex
SELECT-OPTIONS SO_XXXXXXX FOR TABLE-FIELDNAME OBLIGATORY .
VARIANTS
Saving the Paramters and Select-Options Values to avoid the data entry is called as a VARIANT
Dynamic variants
IT_BKPF[0rows * 100columns]===>it_bkpf[10*100]
Structure------------>In the programs structure can store a single record
Means Structre acts like a WA
MESSAGES IN SAP
SE91 is the tcide for messages.
All the messages related to a pplication like SD/M//FI/ are stored in SE91
For every message there will be a number like 000,001,002…..999
The message Number will be - Msg_class + number
Function Modules
It is a Sub Program/Child Program inside a Main program
Sometimes we want to divide main pograms into smaller parts for reusablitiy.
Main prog with 1000 lines of SubProg1 - FM
code
Call FM
SubProg2 - SubRoutine
Call SUbRoutine
Call Include
SubProg3 - Include Program
Main Prog2
Call FM
Call SubRoutine
Call Include
What Actually is a FM
FM is a subprogram which has
Imports----->Inputs to the FM means a single value/record/line
Exports----->Outputs from the FM means a single value/record/lin
Tables----->ITAB's as Inpouts and Outputs means Multiple values/Records/Lines
Changing---->Changing Values inside the FM
Exceptions--->Are errors inside the FM
Source Code---->means ABAP Code
SE37
Find the FM name using *xxxx*
Observe the Imp/Exp/Tables tabs
Click on Test/Execute Icon
Enter the Inpputs
Save the data as a Variant for future Refernce
Execute
The resuults will be displayed in table by name RETURN
Read the error and correct the Inputs and Try to Post again until you can get success message
Module Pool programs - Means Creating new SAP Programs with screens
for ex , ZVA01,ZME21N,ZFB01
- Now in 2012 onwards….These are obselete and SAP is recomming to create SAP FIORI apps
for all the custom Programs with Screens.
Where do we actually use these FM'S in Real time when we already have SAP tcodes like MM01,VA01,FB01…etc
The answer is -
My requirement is to create a Mat Master in SAP -
Then use MM01 for a single Material
Suppose you want to create 5000 Mat Masters…..Then…ABAPer call FM 'BAPI_XXXXXX
or
Suppose you want to create single Mat Master fromm 3rd Party sys….Then ABAPer/Fu
for the FM 'BAPI_XXXXXXXXXXX' and give the name to 3rd party so that they can c
What is RFC- It is also a FM used bwteen SAP to SAP means SAP ECC to CRM/SRM/APO/EWM…etc
What is BAPI-It is also a FM used between SAP and NONSAP means SAP ECC to ORACLE,BANK,TALLY,JAVA,MOBILE…etc
How to find the FM 'BAPI_XXXX' inside the std tcode like FB01/MM01…etc??
The answer is …we are not sure weather SAP std Tcode used BAPI_XXXXX
But anyways…..the answer is ……Start Debugging using /H
Enter
use the menu path: BREAK-POINT--->BREAK-POINNT AT STATEMNT
Give the statement as 'Call Function'
Enter
use F8 to moove from one FM to another FM
continue until you find the BAPI_XXXXXXXXXXX
TOC
LENGTH DESCRIPTION
10 customer no
35 name1
3 country
13,2 Currency Quality SYSTem
1000
us01
NAME1 LAND1 usp1
AAA US
BBB IN
CCC DE
*---All Selects
SELECT * FROM mara
INTO TABLE it_mara
WHERE matnr = p_matnr .
IF sy-subrc = 0 .
LOOP AT it_mara INTO wa_mara.
WRITE : / wa_mara-matnr , wa_mara-meins.
ENDLOOP.
ELSE.
WRITE : / 'No material Found' .
ENDIF .
TABLES : BKPF .
DATA it_bkpf LIKE TABLE OF bkpf .
DATA wa_bkpf LIKE bkpf .
IF sy-subrc = 0 .
LOOP AT it_bkpf INTO wa_bkpf.
IF WA_BKPF-blart = 'SA' .
WRITE : / wa_bkpf-bukrs ,
wa_bkpf-belnr ,
wa_bkpf-gjahr ,
WA_BKPF-BLART,
wa_bkpf-bktxt.
ELSE.
CONTINUE .
ENDIF.
ENDLOOP.
ELSE.
WRITE : 'No data found for this CoCode' .
ENDIF .
Please create a Message class with name ZFICO_MSGS in SE91 and create a message with text
*---All Selects
SELECT * FROM mara
INTO TABLE it_mara
WHERE matnr = p_matnr .
IF sy-subrc = 0 .
LOOP AT it_mara INTO wa_mara.
WRITE : / wa_mara-matnr , wa_mara-meins.
ENDLOOP.
ELSE.
MESSAGE E000.
ENDIF .
1 and create a message with text as 'Invalid Material'.
BUKRS BELNR
1710 123456
GJAHR
2019 ITAB[1*3]