Tips使用fbi视图逐步创建一个fpm应用程序_第1页
Tips使用fbi视图逐步创建一个fpm应用程序_第2页
Tips使用fbi视图逐步创建一个fpm应用程序_第3页
Tips使用fbi视图逐步创建一个fpm应用程序_第4页
Tips使用fbi视图逐步创建一个fpm应用程序_第5页
已阅读5页,还剩30页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CreateaFPMapplicationwithFBIviewstepbyDemoinSystemBuildfeederclassfortheformGUIBBofinitialmethodGETREFERENCEOFms_object_keyINTOmethodDATA:ls_outportTYPEif_fpm_feeder_model=>ty_s_port.CLEAR:et_outport.GETREFERENCEOFms_object_keyINTOls_outport-object_key.ls_outport-type=if_fpm_feeder_model=>cs_port_type-selection. description=cl_wd_utilities=>get_otr_text_by_alias('/SCMTMS/UI_CMN/SELECTION').INSERTls_outportINTOTABLEGETREFERENCEOFms_object_keyINTOls_outport-object_key.ls_outport-type=if_fpm_feeder_model=>cs_port_type-collection. description=cl_wd_utilities=>get_otr_text_by_alias('/SCMTMS/UI_CMN/COLLECTION').INSERTls_outportINTOTABLEmethodDATA:ls_root_keyTYPE/bobf/s_frw_key,li_root_keyTYPE/bobf/t_frw_key.data:lo_entity_colltypeREFTO/BOFU/IF_FBI_ENTITY_COLLECTION.data:ls_object_keytype/BOFU/CL_FBI_GUIBB_BASE=>TS_OBJECT_KEY.CREATEOBJECTlo_entity_collTYPECLEAR:li_root_key.ls_root_key-key=ms_data-key.INSERTls_root_keyINTOTABLE>set_self_keys(EXPORTINGit_keys=li_root_key).lo_entity_coll->set_source_conf_keys(ms_object_key).ro_data?=lo_entity_coll.methodrv_namespace=methodDATA:ls_change_logTYPEFIELD-SYMBOLS:<fs_id>TYPEREADTABLEit_change_logINTOWITHKEYname= "#ECIFsy-subrc=ASSIGNls_change_log-new_value->*TO<fs_id>.ms_data-customer_id=<fs_id>.methoddata: TYPEREFTOdata: typedata: typedata:lt_customer_id typeSTANDARDTABLEOF/BOBF/DEMO_CUSTOMEREFTOREFTOREFTOREFTOREFTOREFTOifmo_controllerismo_controller?=/bofu/cl_fbi_controller_base=>get_instance().CASEio_event-appendms_data-customer_idtolt_customer_id.lo_srv_mgr=/bobf/cl_tra_serv_mgr_factory=>get_service_manager(/BOBF/IF_DEMO_CUSTOMER_C=>sc_bo_key). =/BOBF/IF_DEMO_CUSTOMER_C=>sc_node-root IV_TARGET_ALTKEY_KEY="Alternative = =ABAP_FALSE "DataelementfordomainBOOLE:TRUE(='X')andFALSE(='') =ABAP_FALSE "DataelementfordomainBOOLE:TRUE(='X')andFALSE(='')IV_INVALIDATE_CACHE=ABAP_true "DataelementfordomainBOOLE:TRUE(='X')andFALSE(='') =lo_change "Interfacefortransactionchangeobjects IF>has_failed_changes()ISnotINITIALorlt_key_indexisINITIAL.MESSAGEe001(YHENG_MESSAGE)INTOls_message-plaintext.ls_message-severity=if_fpm_message_manager=>gc_severity_error.APPENDls_messageTOet_messages.ev_result=if_fpm_constants=>gc_event_result-failed.loopatlt_key_indexintols_key-key=ls_key_index-ms_data-KEY=ls_key_index-appendls_keytolo_fpm?=cl_fpm_factory=>get_instance(). iv_value=mv_modeclear:ls_key-key=ms_data-key.appendls_keytolt_key.WHENOTHERS.methodDATA:lo_event TYPEREFTOcl_fpm_event, typereftoif_fpm.iflo_fpmislo_fpm?=cl_fpm=>get_instance().IFio_event->mv_event_id=cl_fpm_event=>GC_EVENT_CHANGE_CONTENT_AREA.ev_data_changed=abap_true.iflo_fpmisNOTlo_event=cl_fpm_event=>CREATE_BY_ID(cl_fpm_event=>GC_EVENT_REFRESH).lo_fpm->raise_event(lo_event).methodeo_field_catalog?=cl_abap_typedescr=>describe_by_name('/BOBF/S_DEMO_CUSTOMER_HDR_K').methodDATA:lo_event TYPEREFTOcl_fpm_event, typereftoif_fpm.ms_object_key-bo=/BOBF/IF_DEMO_CUSTOMER_C=>sc_bo_key.ms_object_key-node=/BOBF/IF_DEMO_CUSTOMER_C=>sc_node-root.iflo_fpmislo_fpm?=cl_fpm=>get_instance().IFlo_fpmis ev_value=mv_modeifmo_controllerismo_controller?=/bofu/cl_fbi_controller_base=>get_instance().mo_controller->/bofu/if_fbi_controller~set_object_key(ms_object_key).>/bofu/if_fbi_controller~build_node_buffer(EXPORTING =/BOBF/IF_DEMO_CUSTOMER_C=>sc_bo_key =/BOBF/IF_DEMO_CUSTOMER_C=>sc_node-root).NowthefeederclassisBuildviewexitclassforFBImethodDATA:lo_srvmgr TYPEREFTO/bofu/if_fbi_controller=>ts_b TYPEREFTO TYPEREFTO TYPEREFTOIFNOTmo_controllerISREADTABLE>/bofu/if_fbi_controller~mt_bo_srvmgr_mapREFERENCEINTOlo_srvmgrWITHTABLEKEYbo_key=iv_bo_key.caseWHENlo_fpm?=cl_fpm_factory=>get_instance(lo_event=cl_fpm_event=>CREATE_BY_ID(iv_event_id=cl_fpm_event=>GC_EVENT_CHANGE_CONTENT_AREA).iv_key=cl_fpm_event=>gc_event_param_trgt_cont_areaiv_value='PAGE_INITIAL').lo_fpm->RAISE_EVENT(io_event=lo_event).whenOTHERS.NowtheviewexitclassisCreateawebdynproSettheparameterforthisCreateanewapplicationConfigurationname:zdemo_fbi_app_confPressNewbutton.Clickbutton‘AssignconfigurationInputtheconfigurationname:SavethisapplicationClickthenewcomponentClick‘new’buttontocreatethiscomponentSetthewebdynprocomponentandconfigurationname,thenclickInsertthenewinitialpage,andchangethepageidandIntheinitialscreen,insertabuttonintoolbarSelectcontinuebuttonandIntheinitialscreen,insertaformcomponentUIBBinoverviewpageCreateanewnamefortheformGUIBBcomponentconfigurationConfigurationname:zdemo_initial_confClickthisClick‘new’buttonandcreatetheformGUIBBcomponentInputthefeederclassandclickeditNowitistheconfigurationofformGUIBBininitialAddAddChoosefieldofcustomerGobacktoovpcomponentInmainInsertstandardbuttonintoolbarschemaofmainTheninsertabuttonforgoSetthetextandeventIDforthisSettheeventparameter,thenitwillworkonInputtheconfigurationClickthisbuttontosetthenewClickthenewInputthefeederclassandclickeditInputnewFBIviewnameandclickOpenanewCreateanewFBIviewconfigurationComponentname:/BOFU/FBI_VIEWComponentid:ZDEMO_FBI_VIEWSettheparameterofFBIviewandClicknewCreateanothernewFBIviewfor(Theconfigurationnameshouldbetheapplicationconfiguration+Componentname:/BOFU/FBI_VIEWComponentid:Accordingthefollowingfigure,youcanfindthatthe‘_HTLB’isnotreplacedbyothersuffixwordifyouwantthetoolbarbuttoncanbehandledinfeederclass thatis,‘_HTLB’ishardcodeintheTMTheparametersettingisthesameasGobacktothewindowofconfigurationAddnewgroupandelementtoSelectSavetheGobacktotheovpcomponentClickwi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论