ALV.ppt优质

ALV.ppt_第1页
ALV.ppt_第2页
ALV.ppt_第3页
03/01/2519:27ABAPListViewer03/01/2519:27•Thecommonfeaturesofreportarecolumnalignment,sorting,filtering,subtotals,totalsetc.Toimplementthese,alotofcodingandlogicistobeput.ToavoidthatwecanuseaconceptcalledABAPListViewer(ALV).•UsingALV,wecanhavethreetypesofreports:1.SimpleReport2.BlockReport3.HierarchicalSequentialReportINTRODUCTION03/01/2519:27Therearesomefunctionmoduleswhichwillenabletoproducetheabovereportswithoutmucheffort.Allthedefinitionsofinternaltables,structuresandconstantsaredeclaredinatype-poolcalledSLIS.03/01/2519:27SIMPLEREPORT1.SimpleReportTheimportantfunctionmodulesare:Reuse_alv_list_display输出列表(画线形式)Reuse_alv_fieldcatalog_merge转换成输出结构Reuse_alv_events_getReuse_alv_commentary_writeReuse_alv_grid_display输出网格03/01/2519:27SIMPLEREPORTCONTD….A.REUSE_ALV_LIST_DISPLAY:Thisisthefunctionmodulewhichprintsthedata.Theimportantparametersare:1.Export:a.I_callback_program:reportidb.I_callback_pf_status_set:routinewhereausercansethisownpfstatusorchangethefunctionalityoftheexistingpfstatus.c.I_callback_user_command:routinewherethefunctioncodesarehandled.03/01/2519:27SIMPLEREPORTCONTD...d.I_structurename:nameofthedictionarytablee.Is_Layout:structuretosetthelayoutofthereportf.It_fieldcat:internaltablewiththelistofallfieldsandtheirattributeswhicharetobeprinted(thistablecanbepopulatedautomaticallybythefunctionmoduleREUSE_ALV_FIELDCATALOG_MERGE)g.It_events:internaltablewithalistofallpossibleeventsofALVandtheircorrespondingroutinenames.2.Tables:a.t_outtab:internaltablewiththedatatobeoutput03/01/2519:27SIMPLEREPORTCONTD...B.REUSE_ALV_FIELDCATALOG_MERGE:ThisfunctionmoduleisusedtopopulateafieldcatalogwhichisessentialtodisplaythedatainALV.Iftheoutputdataisfromasingledictionarytableandallthecolumnsareselected,thenweneednotexclusivelycreatethefieldcatalog.Itsenoughtomentionthetablenameasaparameter(I_structure_name)intheREUSE_ALV_LIST_DISPLAY.Butinothercasesweneedtocreateit.03/01/2519:27SIMPLEREPORTCONTD...Theimportantparametersare:1.Export:a.I_program_name:reportidb.I_internal_tabname:theinternaloutputtablec.I_inclname:includeorthereportnamewhereallthedynamicformsarehandled.2.Changingct_fieldcat:aninternaltablewiththetypeSLIS_T_FIELDCAT_ALVwhichisdeclaredinthetypepoolSLIS.03/01/2519:27SIMPLEREPORTCONTD...C.REUSE_ALV_EVENTS_GET:Returnstableofpossibleeventsforaalisttype1.Import:Et_Events:TheeventtableisreturnedwithallpossibleCALLBACKeventsforthespecifiedlisttype(column‘NAME’).ForeventstobeprocessedbytheCallback,their‘FORM’fieldmustbefilled.Ifthefieldisinitialized,theeventisignored.Theentrycanbereadfromtheeventtable,thefield‘FORM’filledandtheentrymodifiedusingconstantsfromthetypepoolSLIS.03/01/2519:27SIMPLEREPORTCONTD...2.Export:I_list_type:0=simplelist1=hierarchical-sequentiallist2=simpleblocklist3=hierarchical-sequentialblocklist03/01/2519:27SIMPLEREPORTCONTD...D.REUSE_ALV_COMMENTARY_WRITE:ThisisusedintheTop-of-pageeventtoprinttheheadingsandothercommentsforthelist.1.It_list_commentary:Internaltablewiththeheadingsofthetypeslis_t_listheader.Thisinternaltablehasthreefields:Typ:‘H’-header,‘S’-selection,‘A’-actionKey:onlywhentypis‘S’.Info:thetexttobeprinted03/01/2519:27SIMPLEREPORTCONTD...E.REUSE_ALV_GRID_DISPLAY:Anewfunctionin4.6version,todisplaytheresultsingridratherthanasalist.Parameters:sameasreuse_alv_list_display03/01/2519:27Theexampleofas...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

尊敬的博途智库用户:

欢迎您使用博途智库的服务。在您准备下载文档时,请您仔细阅读以下注意事项,以确保您的下载行为合法、合规,并避免可能产生的纠纷和损失。

一、版权信息确认

在下载文档前,请务必确认文档中的版权信息。博途智库尊重原作者的版权,所有文档均注明版权归属。如果您需要下载涉及版权的文档,请确保您已获得原作者的授权或许可,或者该文档属于可自由使用的范畴。

二、文档内容审查

在下载文档前,请您自行审查文档内容,确保其符合您的需求和使用场景。博途智库不对文档内容的准确性、完整性或适用性做任何形式的保证。因文档内容引发的任何问题或纠纷,博途智库不承担任何责任。

三、文档下载与使用

  1. 下载文档时,请确保您的设备安全、稳定,避免因网络问题或设备故障导致下载失败或文档损坏。
  2. 下载后的文档,请您妥善保管,不得擅自修改、复制、传播或用于商业用途。如需对文档进行分享或传播,请确保您已获得原作者的明确授权。
  3. 在使用文档时,请遵守国家法律法规和道德规范,不得利用文档从事违法、违规或侵犯他人权益的活动。

四、付费文档说明

对于博途智库中的付费文档,您需要按照页面提示完成支付流程后方可下载。请您确保在支付过程中选择正确的支付方式,并核对支付金额。对于因支付问题导致的下载失败或损失,博途智库将尽力协助您解决,但具体责任需根据支付平台的规则进行判定。

五、纠纷处理

如您在使用博途智库下载文档过程中遇到任何问题或纠纷,请及时与博途智库客服联系,我们将竭诚为您提供帮助和解决方案。同时,也请您保留好相关证据,以便在必要时进行维权。

最后,感谢您对博途智库的支持与信任。我们将继续努力为您提供优质、便捷的文档下载服务。祝您使用愉快!

博途智库团队

第一管理+ 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

确认删除?
知识变现
客服电话
客服微信
  • 客服微信
客服QQ
  • 客服QQ点击这里给我发消息
发送邮件
回到顶部