SAP TECH
Towards the excellence!!!
Pages
Home
SAP-ABAP
SAP-OO ABAP
SAP-WebdynPro
SAP-HANA
SAP-Workflow
SAP-MDG
SAP-Fiori
SAP - UI5
SAP ML
SAP OData
SAP Table Relations
SAP-BOOKS
SAP PLM
SAP FPM
SAP ABAP on Cloud
Join SAP Freelancer
SAP ABAP on HANA
SAP CPI
SAP MM
SAP Jobs
Mytrip
Emergent.ai
Hosting.com
Showing posts with label
parameters and select-options in sap abap
.
Show all posts
Showing posts with label
parameters and select-options in sap abap
.
Show all posts
Thursday, 14 July 2016
Creating customized select-options
Creating custom select-options
Go to transaction code SE11.
Click on Data Type radio button.
Enter the standard SELECT-OPTIONS structure name i.e RSDSELOPT.
Click on Copy .
Pop-up will appear.
Customize select-options name and click on continue.
Assign the package name , either Local package or Package.
Check the status bar.
Click on Change button.
Pop-up will appear.
Click on "Main,in Orginal Lang" .
Structure looks like,
Choose the Component Type for LOW and HIGH as per requirements and press ENTER.
Save -> Check -> Activate.
Monday, 30 May 2016
Select-Options
Select-Options
Select-Options keyword provides users to input range of values.
It has components of standard structure RSDSSELOPT.
Components of Select-Options.
Sign :- 'I' ->Include , 'E' ->Exclude.
Option:- LE-> less than and equal to, BT->Between, GE-> Greater than and Equal, etc,
Low:- Lower Limit
High:- Higher Limit
Select-Option : <select_variable > for <work_area-fieldname>
.
select_variable
acts like an internal table with a header line.
Ex :
Steps :
Go to transaction code SE38.
Enter the program name Z or Y<program name>.
Select attribute type as Executable program.
Click on Save.
Source Code
DATA
:
IT_MAKT
TYPE
TABLE
OF
MAKT
,
WA_MAKT
TYPE
MAKT
.
SELECT-OPTIONS
:
S_MATNR
FOR
WA_MAKT
-
MATNR
.
SELECT
*
FROM
MAKT
INTO
TABLE
IT_MAKT
WHERE
MATNR
IN
S_MATNR
.
LOOP
AT
IT_MAKT
INTO
WA_MAKT
.
WRITE
:
/ WA_MAKT
-
MATNR
,
WA_MAKT
-
SPRAS
,
WA_MAKT
-
MAKTX
.
ENDLOOP
.
Save -> check ->activate.
Input
Output
Saturday, 28 May 2016
Parameters
Parameters
Used to provide the single input.
Keyword:
Parameters
.
Ex :
Steps :
Go to transaction code : SE38 (ABAP Editor ).
Enter the program name Z or Y<program name>.
Select the type executable program.
Source code
PARAMETERS
:
NAME
(
20
)
TYPE
C
.
WRITE
:
/ NAME
.
Input
Output
Older Posts
Home
Subscribe to:
Posts (Atom)