Professional Documents
Culture Documents
INNER JOIN:
1. In this join only the matching records between the tables will be fetched.
2. The unmatched records are not selected.
OUTER JOIN:
1. In this join all the records from the first table or left table will be selected
first.
2. If there are any matching records from second, third tables, then the data
will be displayed.
3. Suppose if there are no matching records, the data will be displayed as
blank from second and third tables.
SYNTAX:
Select T1~F1
T1~F2
T2~F1
T2~F2
T3~F1
ZCUST_DATA ZCUST_BANKDATA
Joined on ZCUST_DATA~CNO
ZCUST_BANKDATA~CNO
SELECT mara~matnr
mara~mtart
mara~mbrsh
mara~meins
makt~spras
makt~maktx
INTO TABLE i_mara_makt
FROM mara AS mara INNER JOIN makt AS makt
ON mara~matnr = makt~matnr
WHERE mara~mtart = 'FERT'
AND makt~spras = 'EN' .
The output is :
SYNTAX:
Select F1 F2 F3…..
Select F1 F2 F3…..
From <DB.Table2>
Endif.
Finally the first ITAB should be checked for any records using below
statement.
Save->Act->Test.
Save->Act->Test.
PARAMETERS:
SYNTAX:
default ‘X’,
SELECT-OPTIONS:
This statement is used to create two input fields so that the user
can enter a range of values.
All these options are available when you click on multiple selection or
Syntax:
No- Extension.
NOTE:
Whenever we use select-options we should use ‘IN’ instead of
i. The operators are: BT, NB, EQ, NE, LT, LE, GT, and GE.
ii. By default BT is stored..
LOW: Stores lower value from the range entered on selection screen.
HIGH: Stores higher value from the range entered on selection screen.
Ex on selection-screen commands:
Selection-screen begin of block b1 with frame title text-001.
Selection-screen uline.
Selection-screen skip.
Parameters: p_matnr type mara-matnr.
1.Include Programs
2.Function Modules
3.Subroutines
4.Classes
5.Macros These are
Include Programs:
These are sub programs which are used for reusability purpose.
These programs cannot be executed independently.
Selection-screen end of block b1. Select * from mara Into table i_mara
ENDLOOP .