Upload
ashish-mohapatra
View
47
Download
8
Embed Size (px)
DESCRIPTION
modifying pf status in abap
Citation preview
5/11/2015 HowtomodifyStandardPFStatusofALVGrid?| ABAPThinkers
http://abapthinkers.com/howtomodifystandardpfstatusofalvgrid/ 1/4
LastMonday,IwasonleaveatworkasIneedtogotothehospitalformylastsessionformyupperbacktherapy.Mywifeaccompaniedalldaywhichturnedtobeadateatthehospital.Howsweetweare.Uponmyreturntoworkyesterday,Iwasloadedwithsomanytasks.AllthedevelopmentsIhavefinishedlastweekwerebeingtestedbymycounterpart.Asexpected,bugsarefound.Soallofthemwanttofinishitasdeadlineisfastapproaching.Iwasunderpressureyesterdayaseveryonesays,Thisobjectiscritical.Weneedtodeliverontime!
Really???Anyways,Ihavedoneallthosestuffwithintheday.ButIwasexhaustedwithallthosebugsandenhancementrequested.Lessonlearned:Donttakealeavewhileprojectisgoingon.Otherwise,youwillbeunderpressureuponreturn.Hehehe
Nevermindthatcrazyday.Everyoneofusoncefeelthatpressure.Onceyouexperienceit,justsmileandstayfocus.Sotoday,IwouldliketosharewithyouthissimpletutorialonhowtomodifythestandardPFStatusofanALVReportusingtheFMALV_GRID_DISPLAY.
Tohaveanideaaboutthistopictoday,takealookwiththissamplescreenshotbelow.ThebuttondownloadisaddedintoastandardALVPFStatus.
Basically,somefunctionalconsultantsrequesttohavethiskindofdesignsinceitisbeneficialtotheusersfromfurtherprocessinglikeforinstance,inthiscase,downloadtoexcelfile.
Soletsstartthistutorialnowwiththefollowingsteps.ButbeforeIforget,Iassumedyouhavealreadycreatedyourowncustomreportprogram.Inthistutorial,Iwillnotdiscussfurtheronhowtocreateyourfirstreportprogram.Butincase,youhaventcreatedyet,youcanviewthissimpletutorialinALVReportusingALV_GRID_DISPLAY.
Steps:1.SincewhatwewouldliketoachieveistomodifythestandardPFStatus,ourfirststepistocopytheGUIStatusfromthestandardprogram.So,gototcodeSE80andenterthefollowingprogramname:SAPLKBBL.ThisistheprogramthathandlesallthestandardPFStatusrelatedtoALVdisplay.
SUBSCRIBE
SUBSCRIBE TOBLOGV IA EMA IL
Enteryouremailaddresstosubscribetothisblogandreceivenotificationsofnewpostsbyemail.
EmailAddress
TAGS
&SE16NABAPCodeABAPQueryABAPTipABAPTipsABAPTricksALVFMREUSE_ALV_GRID_DISPLAYALVGridALVOOPALVReportBeginnersTutorialContextMenuDataDictionaryDebuggerDebuggingDebuggingTipsDeleteImplicitEnhancementDequeueDialogProgrammingDow nloadDow nloadTablesStructuresEnhancementEnqueueFunctionGroupFunctionModuleFunctionModulesHilite.meHotspotHowToImplicitEnhancementIntermediateTutorialLinkClickLockObjectsNumberRangePDFPFStatuspopupscreenQuerySAPQuerySAP_EDITSNROSyntaxHighlighterTransportVariantsUserGroupVariants
CATEGORIES
ABAPCode
ABAPQuery
ABAPTips
ALV
ALVGrid
ALVOOP
Basis
Beginners
Class
DataDictionary
Debugging
DialogPrograming
Enhancement
Forms
FunctionModules
HowTo
HowtomodifyStandardPFStatusofALVGrid?byLEV IA LIANGANon11/28/2013 LEAVEA COMMENT
ALV >ALV GRID>HOWTOMODIFY STANDARDPFSTATUSOFALV GRID?
BLOG HOWTO Search
5/11/2015 HowtomodifyStandardPFStatusofALVGrid?| ABAPThinkers
http://abapthinkers.com/howtomodifystandardpfstatusofalvgrid/ 2/4
OnceyoudisplayedtheobjectsoftheprogramSAPLKBBL,scrolldownandlookfortheGUIStatusfolder(referscreenshotabove).Fromthelistofstatuses,locatethisstandardonebelow,STANDARD_FULLSCREEN.Actually,youcanselectyourowntoofromthelists.Asforthistutorial,Iselectedthestandard_fullscreenstatuswhichIcommonlyused.
2.OnceIselectedthestatusthatIprefer,rightclickyourmousetoopenthecontextmenu.Fromthemenu,selectCopy.Thispopupwindowappearsafterwards.Enterherethenameofyourcustomprogramontheparameterinyellow.Thenclickthecopybutton.
3.Gobacktoyourcustomreportprogram.OpenitinSE38.Displayallobjectlist.Asyouwillnotice,thestandardPFStatusisaddedautomaticallyintoyourcustomprogram.Lookthissamplescreenshotbelow.DontworrywillallthefunctionalityofthePFStatus.Itisthesamewiththestandardaslongasyouwillnotchangethefunctioncodes.
IDES
ImplicitEnhancement
Intermediate
LockObject
MaintenanceGenerator
Performance
RolesandAuthorizations
Sapscripts
SelectionScreen
Smartforms
Table
VersionManagement
RECENTPOSTS
PublicSAPIDESSystembyConsolutbidsadieu!!!
HowtouploadSAPRolestoupdateUsersauthorizations?
CanIrecovermydeletedABAPprograms?
HowtoexecuteSQLStatementwithoutchangingABAPCode?
HowtoescapeABAPlineinDebugMode?
RECENTCOMMENTS
levialianganonHowtoimplementaLockobjectinABAP?
soonlhsonHowtoimplementaLockobjectinABAP?
soonlhsonHowtoimplementaLockobjectinABAP?
salilbagchionHowtoimplementaLockobjectinABAP?
levialianganonHowtoimplementaLockobjectinABAP?
CONNECT@FACEBOOK
ABAPThinkers
408peoplelikeABAPThinkers.
Facebooksocialplugin
Like
META
Register
5/11/2015 HowtomodifyStandardPFStatusofALVGrid?| ABAPThinkers
http://abapthinkers.com/howtomodifystandardpfstatusofalvgrid/ 3/4
4.Openthecopiedstandardstatuslikethenormalwayyoudo.Thenfromthelistoffunctioncodes,addyourowncustomcode.Well,Inthistutorial,IaddedthefunctioncodeDownloadwhichwillappearintheALVstatus.Afteryouadded,saveandactivateit.
5.InyourABAPcode,setyourcustomizedstatusthisway:
12345678
*&**&Formpf_status*&**SetthePFStatusoftheALVGrid**FORMpf_statusUSINGrt_extabTYPEslis_t_extab.SETPFSTATUS'STANDARD_FULLSCREEN'.ENDFORM.
TheninyourFunctionModule,REUSE_ALV_GRID_DISPLAY,callthenameofyourform,PF_STATUS.Onceyouexecuteyourreport,yournewlyaddedbuttonbesidesfromthestandardbuttonswillbedisplayedintoyourALVGrid.
12345678910111213141516
CALLFUNCTION'REUSE_ALV_GRID_DISPLAY'EXPORTINGi_callback_program=syrepidi_callback_pf_status_set='PF_STATUS'i_callback_user_command='F_USER_COMMAND'is_layout=gwa_layoutit_fieldcat=gi_fieldcatalog[]it_sort=gi_sortTABLESt_outtab=gi_outputEXCEPTIONSprogram_error=1OTHERS=2.IFsysubrc=0."#ECNEEDED"donothingENDIF.
Sothatsit.AsimpleprocesstomodifythestandardPFStatusofanALVGrid.Ifyouhaveanyquestionsorsuggestions,pleaseletmeknow.Leaveyourcommentsbelow.Ifyoufindthisarticleuseful,pleaseshareittoallyourfriendsasSHARINGisCARING.
ThankyouonceagainandIinviteeveryonetoconnectwithmeonmypage@ABAPTHINKERS.Seeyounexttimefriends.
Taggedwith:ALVFMREUSE_ALV_GRID_DISPLAYALVGridALVReportPFStatus
SEARCH
Login
EntriesRSS
CommentsRSS
WordPress.org
TOP POSTS & PAGES
HowtomodifyStandardPFStatusofALVGrid?
HowtoimplementanImplicitEnhancementinSAPobjects?
HowtoexecuteSQLStatementwithoutchangingABAPCode?
HowtoaddaLinkClick(Hotspot)onALVReportusingOOP?
HowtocreateanumberrangeinSAPusingSNRO?
CanIrecovermydeletedABAPprograms?
HowtoimplementaLockobjectinABAP?
ABAPCode:ALVReportusingFMALV_GRID_DISPLAY
HowtouploadSAPRolestoupdateUser'sauthorizations?
HowtodebugpopupscreeninSAP?
ABAPCode:ALVReportusingFMALV_GRID_DISPLAY ABAPQuery,itsconceptinaNutshell
5/11/2015 HowtomodifyStandardPFStatusofALVGrid?| ABAPThinkers
http://abapthinkers.com/howtomodifystandardpfstatusofalvgrid/ 4/4
Youmustlogintopostacomment.
ABAPThinkers PAGESAboutMeContactMeCopyrightsDisclaimerPrivacyPolicy
THELATEST
PublicSAPIDESSystembyConsolutbidsadieu!!!Lastweek,wereceivedanemailfromConsolutTeamupdatingusabout[]
MORE
Thanksfordroppingby!Feelfreetojointhediscussionbyleavingcomments,andstayupdatedbysubscribingtotheRSSfeed.
2014ABAPThinkers