Tips使用fbi視圖逐步創(chuàng)建一個fpm應用程序_第1頁
Tips使用fbi視圖逐步創(chuàng)建一個fpm應用程序_第2頁
Tips使用fbi視圖逐步創(chuàng)建一個fpm應用程序_第3頁
Tips使用fbi視圖逐步創(chuàng)建一個fpm應用程序_第4頁
Tips使用fbi視圖逐步創(chuàng)建一個fpm應用程序_第5頁
已閱讀5頁,還剩30頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論