Académique Documents
Professionnel Documents
Culture Documents
DesigningSelectionScreenABAPDevelopmentSCNWiki
GettingStarted Newsletters
Welcome,Guest
Login
Register
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Store
Weareimproving!TheSCNwikiwillnotbeavailablefornewcontentsubmissionstartingAugust7th6PMCETuntilAugust10th6PMCET.
PleaseplanyourSCNwikitasksaccordingly.
ABAPDevelopment / ABAPDevelopment
DesigningSelectionScreen
AddedbyKrishnaChauhan,lasteditedbySmrutiRanjanMohantyonJan01,2014
SomeofthetimesIfeltdifficulttodesignaselectionscreen,withputamarkofimpressionontheuser...
Thissmallpieceofcodecanbeofgreathelptodesignandunderstandtheselectionscreenaspertherequirement.
JustpastethecodeinSE38&checkforoutput.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
REPORTYKC_SELECTION_SCREEN_DESIGN.
TABLES:TRDIR,TSTC.
*================*
*SelectionScreen
*================*
SELECTIONSCREENSKIP.
SELECTIONSCREENBEGINOFBLOCKSELECTIONWITHFRAMETITLEA1TITLE.
SELECTIONSCREENBEGINOFLINE.
SELECTIONSCREENCOMMENT(32)A1LINE1FORFIELDP_DATEF.
PARAMETERS:P_DATEFLIKESYDATUMDEFAULTSPACEOBLIGATORY.
SELECTIONSCREENENDOFLINE.
SELECTIONSCREENBEGINOFLINE.
SELECTIONSCREENCOMMENT(32)A1LINE2FORFIELDP_DATET.
PARAMETERS:P_DATETLIKESYDATUMDEFAULTSYDATUMOBLIGATORY.
SELECTIONSCREENENDOFLINE.
SELECTIONSCREENSKIP.
SELECTIONSCREENBEGINOFBLOCKB1WITHFRAMETITLEB1TITLE.
SELECTIONSCREENBEGINOFLINE.
SELECTIONSCREENCOMMENT(30)B1LINE1FORFIELDP_SUMM.
PARAMETERS:P_SUMMRADIOBUTTONGROUPRAD1.
SELECTIONSCREENENDOFLINE.
SELECTIONSCREENBEGINOFLINE.
SELECTIONSCREENCOMMENT(30)B1LINE2FORFIELDP_DETL.
PARAMETERS:P_DETLRADIOBUTTONGROUPRAD1.
SELECTIONSCREENENDOFLINE.
SELECTIONSCREENBEGINOFBLOCKOPTIONWITHFRAMETITLEC1TITLE.
SELECTIONSCREENBEGINOFLINE.
SELECTIONSCREENCOMMENT(28)C1LINE1FORFIELDP_PROG.
PARAMETERSP_PROGRADIOBUTTONGROUPRAD2.
SELECTIONSCREENENDOFLINE.
SELECTIONSCREENBEGINOFLINE.
SELECTIONSCREENCOMMENT(28)C1LINE2FORFIELDP_TRAN.
PARAMETERSP_TRANRADIOBUTTONGROUPRAD2.
SELECTIONSCREENENDOFLINE.
SELECTIONSCREENENDOFBLOCKOPTION.
SELECTIONSCREENENDOFBLOCKB1.
SELECTIONSCREENSKIP.
SELECTIONSCREENBEGINOFBLOCKDESTWITHFRAMETITLEE1TITLE.
PARAMETERS:DESTLIKERFCDISPLAYRFCDESTDEFAULT'NONE'.
SELECTIONSCREENENDOFBLOCKDEST.
SELECTIONSCREENBEGINOFBLOCKOPTIONALWITHFRAMETITLED1TITLE.
SELECTOPTIONS:S_PROGFORTRDIRNAME."Programs
SELECTOPTIONS:S_TCODEFORTSTCTCODE."TransactionCode
SELECTIONSCREENENDOFBLOCKOPTIONAL.
http://wiki.scn.sap.com/wiki/display/ABAP/Designing+Selection+Screen
1/2
8/1/2015
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
DesigningSelectionScreenABAPDevelopmentSCNWiki
SELECTIONSCREENENDOFBLOCKSELECTION.
INITIALIZATION.
PERFORMSELECTION_SCREEN_TEXT.
*&*
*&Formselection_screen_text
*&*
*text
**
FORMSELECTION_SCREEN_TEXT.
A1TITLE='EnterDatesforAnalysis'.
A1LINE1='AnalysisStartDate?'.
A1LINE2='AnalysisEndDate?'.
B1TITLE='SummaryorDetailReport'.
B1LINE1='SummaryReport'.
B1LINE2='DetailReport'.
C1TITLE='AnalyzeProgramsorTransactions'.
C1LINE1='UsageofStandardPrograms'.
C1LINE2='UsageofStandardTransactions'.
D1TITLE=
'Optional:EnterStandardTransactionCodesandProgramsforAnalysis'.
E1TITLE='RFCDestination'.
ENDFORM."selection_screen_text
tutorial
abap
selectionscreen
3Comments
Guest
HiKrishna
Mayiknowythisselectionscreenskipisused.
Thanks
Siva
SaurabhSingh
SELECTIONSCREENSKIPgivesonenewlinebetweentwoselectionscreen.
RaviKanthBNaga
HiKrishna,
Thankyouverymuchforthedetailedinformation.
butwhenIuseperformandformforselectionscreentitleandtextsitisnotpickingup.so,whenIusedasperSAP'sHelpwiththeoption"INITIALIZAT
ION"it'sworkingfine,
Pleasecorrectyourselfinyourdocument.
http://help.sap.com/abapdocu_702/en/abapselectionscreen_block.htm#!ABAP_ADDITION_1@1@
ExamplefromSAPHELP:
SELECTIONSCREENBEGINOFBLOCKrad1
WITHFRAMETITLEtitle.
PARAMETERS:r1RADIOBUTTONGROUPgr1,
r2RADIOBUTTONGROUPgr1,
r3RADIOBUTTONGROUPgr1.
SELECTIONSCREENENDOFBLOCKrad1.
INITIALIZATION.
title='Selection'.
ContactUs
Privacy
SAPHelpPortal
TermsofUse
LegalDisclosure
Copyright
http://wiki.scn.sap.com/wiki/display/ABAP/Designing+Selection+Screen
FollowSCN
2/2