SAP Hw-T Guide fr MDG-F Enable Multi-Cpy f Accunts in Cmpany Cde Applies t Master Data Gvernance fr Financials (MDG-F) with release versin 7.0 feature pack 1 (supprt package 2) running n SAP ECC 6.0 EhP 6 SP 09, SAP ECC 6.0 EhP 7 SP 02 r higher. Fr mre infrmatin, visit the Master Data Management hmepage (http:///cmmunity/mdm/master-data-gvernance). Summary SAP Master Data Gvernance prvides ut-f-the bx slutins fr the central management f master data bjects. Dmain-specific slutins include business partner (MDG-BP), custmer (MDG-C), supplier (MDG- S) gvernance, material gvernance (MDG-M), and financials gvernance (MDG-F). This dcument explains hw t enable the new functinality fr cpying a single Accunt in Cmpany Cde t multiple target Accunts in Cmpany Cde. It describes the key cncepts and implementatin details as well as pssible enhancement ptins. Authr: Michael Theis Cmpany: SAP AG Created n: May 2014 Versin: 1.0 2014 SAP AG 1
Table f Cntents Applies t... 1 Summary... 1 Intrductin... 3 MDG fr Financials... 3 Technical Infrmatin... 3 Scenari... 3 Technical Backgrund... 4 Implementatin... 4 Step 1: Enable the Cpy Functinality... 5 Optin A: Use a Ppup t Display the Selectin List... 6 Optin B: Use an Edit Page t Display the Selectin List... 7 Result... 8 Step 2: Redefine the Preselectin f Recrds n the Selectin List... 8 Result... 8 Step 3: Redefine the Attributes t be Cpied... 9 Result... 11 Additinal Infrmatin... 12 Links 12 Hw-t Guides... 12 Versin Histry... 12 Cpyright... 13 2014 SAP AG 2
Intrductin SAP Master Data Gvernance (MDG) is used fr embedded Master Data Management (MDM), that is, centralized, ut-f-the-bx, dmain-specific creatin, mdificatin, and distributin f master data with a fcus n SAP Business Suite. Dmain-specific cntent (data mdels, user interfaces, wrkflws) is prvided as part f the standard fr several applicatin areas. It is a cmmn requirement frm custmers t adapt the MDG data mdels t their specific needs. This dcument explains hw t enable the new functinality fr cpying a single Accunt in Cmpany Cde t multiple target Accunts in Cmpany Cde. It describes the key cncepts and implementatin details as well as pssible enhancement ptins. We recmmend that yu study the fllwing hw-t guide befre wrking with the current guide: Extensibility Optins fr SAP Master Data Gvernance Financial Data MDG-F Overview MDG fr Financials MDG ffers a dmain specific slutin fr financial gvernance (MDG-F). The current MDG-F data mdel is called 0G. It cvers entity types f the accunting, cntrlling and cnslidatin cmpnents f financial master data as indicated by the examples belw: Accunting: G/L Accunt (ACCOUNT & ACCCCDET), Cmpany Cntrlling: Cst Center (CCTR), Cst Element (CELEM) and Prfit Center (PCTR) Cnslidatin: Cnslidatin Unit (CONSUNIT), Item (FSI) Technical Infrmatin This dcument refers t develpment artifacts that are prvided by SAP with MDG 7.0 feature pack 1 respectively supprt package 2. It is mandatry that this package is applied t yur MDG system. Otherwise yu cannt enable the functinality. Scenari A cmmn use case fr Accunts in Cmpany Cde (entity type ACCCCDET) is cpying an existing cmpany cde as template t multiple cmpany cdes. SAP has implemented the required functinality in MDG-F with release 7.0 in feature pack 1. The dcument explains the cnfiguratin steps yu apply t the MDG system t enable this feature. It describes hw t change the selectin f attributes yu cpy frm the template t the target cmpany cde. 2014 SAP AG 3
Technical Backgrund The feature is implemented in the user interface fr Accunts. Having read the verview dcument Extensibility Optins fr SAP Master Data Gvernance Financial Data MDG-F Overview, yu already knw hw the user interfaces f the MDG-F slutin can be enhanced. The implementatin requires knwledge in this area. Implementatin Yu chse frm the fllwing mutually exclusive ptins fr displaying the selectin list f target cmpany cdes: 1. Display in a ppup recmmended fr small lists (maximum 20 recrds) A ppup is rather inflexible with regards t resizing the list size and the amunt f recrds t be displayed. Enlarging the list requires the ppup t enlarge, t. This might result in several scrllbars due t the limited space fr ppups within the brwser. 2. Display in an edit page recmmended fr larger lists (mre than 20 recrds) An edit page is very flexible with regards t resizing the list size and the amunt f recrds t be displayed. Nevertheless, the edit page might be unexpected t the end-user since web-pages usually call ppups fr similar features. System custmizing determines the list f target cmpany cdes. The chart f accunts f the related Accunt defines the allwed cmpany cdes. (Transactin SPRO -> SAP Reference IMG -> Financial Accunting (New) -> General Ledger Accunting (New) -> Master Data -> G/L Accunts -> Preparatins -> Assign Cmpany Cde t Chart f Accunts). The target list excludes thse cmpany cdes that are already used by Accunts in Cmpany Cde since verwriting existing recrds is nt supprted. The multi-cpy int target cmpany cdes includes cpying attributes f the selected template cmpany cde. The fllwing attributes are nt cpied: Attachments and the currency (its value is derived frm the new cmpany cde). Attributes that are dependent n the new cmpany cde since the related custmizing tables use the cmpany cde as freign key. Examples f such attributes are as fllws: Alternative Accunt Number, Huse Bank and Huse Bank Accunt ID Inflatin Key, Tax Categry and Tlerance Grup The dcument describes hw t ensure the attributes t be cpied are defined accrding t yur prject needs. 2014 SAP AG 4
Step 1: Enable the Cpy Functinality The functinality is enabled by adding a new buttn n the list UIBB fr Accunts in Cmpany Cdes in the verview page fr Accunts (MDGF_0G_FI_ACCOUNT_OVP). It is recmmended t use the custmizing capabilities f FPM. Therefre, create a new r use an existing custmizing f the verview page. 1. Start the cmpnent custmizing cnfiguratr fr the verview page. 2. Lcate the list UIBB fr Accunts in Cmpany Cde n the main page f the verview page. 2014 SAP AG 5
Optin A: Use a Ppup t Display the Selectin List 1. Create a new buttn. a. Right-click the UIBB tlbar next t the New buttn and chse Add Tlbar Element frm the cntext menu. b. Chse the tlbar element Buttn in the ppup. c. Lcate the Attributes f Element: Buttn screen. Yu might have t enable the Attributes sectin using the tp menu bar. d. Maintain the attributes f the buttn as defined belw. D nt change ther attributes that are nt mentined explicitly. i. Text: Cpy ii. Image Surce: iii. FPM Event ID: ~Icn/Cpy Use the F4 Help t select MDGF_ACCCCDET_COPY 2. Save yur changes. 2014 SAP AG 6
Optin B: Use an Edit Page t Display the Selectin List 1. Create a new buttn. a. Right-click the UIBB tlbar next t the New buttn and chse Add Tlbar Element frm the cntext menu. b. Select the tlbar element Buttn in the ppup. c. Lcate the Attributes f Element: Buttn screen. Yu might have t enable the Attributes sectin using the tp menu bar. d. Maintain the attributes f the buttn as defined belw. D nt change ther attributes that are nt mentined explicitly. i. Text: Cpy ii. Image Surce: iii. FPM Event ID: iv. Target Page: ~Icn/Cpy Use the F4 Help t select MDGF_ACCCCDET_COPY MDGF_0G_FI_ACCCCDET_CCLIST_EDIT e. Save yur changes. 2014 SAP AG 7
Result Yu have enabled the multi-cpy functinality fr Accunts in Cmpany Cdes. If the buttn is nt visible fr yu r sme ther end-users, yu may have t reset the persnalizatin f the user interface. Step 2: Redefine the Preselectin f Recrds n the Selectin List The cpy buttn calls either a ppup r a new edit page. Bth display a selectin list f target cmpany cdes. The default SAP delivery des nt pre-select the recrds n the list. This is implemented in the list feeder class CL_MDGF_GUIBB_FI_ACCCCDET_CC in methd SELECT_ALL_ON_OPEN. Yu can change this behavir using the ABAP cde enhancement technlgy (step three shws sme screenshts fr the same). 1. Start the ABAP class builder using transactin SE24. 2. Navigate t class CL_MDGF_GUIBB_FI_ACCCCDET_CC and int methd SELECT_ALL_ON_OPEN. 3. Enable the implicit enhancement ptins via the tp menu bar. a. Click Edit -> Enhancement Operatins -> Shw Implicit Enhancement Optins. b. Chse the Enhance buttn. c. Lcate the new line at the end f the methd. 4. Create a custm enhancement. a. Set the cursr int line and chse the Create Enhancement Implementatin buttn. b. In ppup Chse Enhancement Mde, chse the Cde buttn since the actual enhancement requires adding sme new cding t the methd. c. In ppup Create Enhancement Implementatin, define a name and a shrt text fr yur enhancement. d. The system generates an enhancement placehlder int the surce cde. This is the place t cde yur custm selectin f the attributes. 5. The sample cde adds the Tax Categry as attribute t be cpied and remves the Planning Level frm the list. " Enable the preselectin rv_select_all = abap_true. Result Yu have redefined the preselectin f the recrds n the selectin list. 2014 SAP AG 8
Step 3: Redefine the Attributes t be Cpied SAP defines a default set f attributes that is cpied frm the template cmpany cde t the target cmpany cdes. During the cpy, yu cannt change the Chart f Accunts and the Accunt Number. The Field Status Grup is cpied since the field is always mandatry. A validatin checks if the cpied value is still valid fr the target cmpany cde. The end user must reslve validatin errrs. Attributes that are nt cpied are: Attachments Accunt Currency The value is derived during the cpy accrding t the new cmpany cde autmatically. Attributes that depend n the cmpany cde (meaning that the related custmizing tables use the cmpany cde as freign key). Where such attributes exist, the value list f the target cmpany cde might differ frm the surce cmpany cde. These attributes include the fllwing: Alternative Accunt Number Huse Bank and Huse Bank Accunt ID Inflatin Key Tax Categry Tlerance Grup The selectin f the attributes t be cpied is implemented in class CL_MDGF_GUIBB_FI_ACCCCDETS in methd FILTER_ATTR_FOR_COPY. The methd uses a changing parameter CT_ATTRIBUTES that cntains thse attributes t be cpied frm the surce cmpany cde t the target cmpany cde. The fllwing steps explain hw t redefine the SAP default delivery using the ABAP cde enhancement technlgy. 1. Start the ABAP class builder using transactin SE24. 2. Navigate t class CL_MDGF_GUIBB_FI_ACCCCDETS and int methd FILTER_ATTR_FOR_COPY. 3. Enable the implicit enhancement ptins using the tp menu bar. a. Chse Edit -> Enhancement Operatins -> Shw Implicit Enhancement Optins. 2014 SAP AG 9
b. Chse the Enhance buttn. c. Lcate the new line at the end f the methd. 4. Create a custm enhancement. a. Set the cursr int line and chse the Create Enhancement Implementatin buttn. b. In ppup Chse Enhancement Mde, chse buttn Cde. The actual enhancement adds new cding t the methd. c. In ppup Create Enhancement Implementatin, define a name and a shrt text fr yur enhancement. 2014 SAP AG 10
d. The system adds an enhancement placehlder t the surce cde. This is the place t cde yur custm selectin f the attributes. 5. The sample cde adds the Tax Categry as an attribute t be cpied and remves the Planning Level frm the list. DATA: lv_attribute TYPE name_kmp. " Add the tax categry t the list lv_attribute = if_usmdz_cns_attributes=>gc_attr_acctaxcat. INSERT lv_attribute INTO TABLE ct_attributes. " D NOT cpy the planning level lv_attribute = if_usmdz_cns_attributes=>gc_attr_accpllev. DELETE TABLE ct_attributes FROM lv_attribute. Result Yu have redefined the attributes t be cpied accrding t yur prject requirements. 2014 SAP AG 11
Additinal Infrmatin Links ABAP Enhancement Framewrk FPM Ckbk n SCN MDG 7.0 Guides n Service Market Place Extensibility Optins fr SAP Master Data Gvernance Financial Data Data Mdel Metadata Hw-t Guides Extensibility Optins fr SAP Master Data Gvernance Financial Data MDG-F Overview Versin Histry 1.0 First release f the dcument 2014 SAP AG 12
Cpyright Cpyright 2014 SAP AG. All rights reserved. N part f this publicatin may be reprduced r transmitted in any frm r fr any purpse withut the express permissin f SAP AG. The infrmatin cntained herein may be changed withut prir ntice. Sme sftware prducts marketed by SAP AG and its distributrs cntain prprietary sftware cmpnents f ther sftware vendrs. Micrsft, Windws, Excel, Outlk, and PwerPint are registered trademarks f Micrsft Crpratin. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PwerVM, Pwer Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPwer, PwerPC, BatchPipes, BladeCenter, System Strage, GPFS, HACMP, RETAIN, DB2 Cnnect, RACF, Redbks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivli and Infrmix are trademarks r registered trademarks f IBM Crpratin. Linux is the registered trademark f Linus Trvalds in the U.S. and ther cuntries. Adbe, the Adbe lg, Acrbat, PstScript, and Reader are either trademarks r registered trademarks f Adbe Systems Incrprated in the United States and/r ther cuntries. Oracle is a registered trademark f Oracle Crpratin. UNIX, X/Open, OSF/1, and Mtif are registered trademarks f the Open Grup. Citrix, ICA, Prgram Neighbrhd, MetaFrame, WinFrame, VideFrame, and MultiWin are trademarks r registered trademarks f Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks r registered trademarks f W3C, Wrld Wide Web Cnsrtium, Massachusetts Institute f Technlgy. Java is a registered trademark f Oracle Crpratin. JavaScript is a registered trademark f Oracle Crpratin, used under license fr technlgy invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and ther SAP prducts and services mentined herein as well as their respective lgs are trademarks r registered trademarks f SAP AG in Germany and ther cuntries. Business Objects and the Business Objects lg, BusinessObjects, Crystal Reprts, Crystal Decisins, Web Intelligence, Xcelsius, and ther Business Objects prducts and services mentined herein as well as their respective lgs are trademarks r registered trademarks f Business Objects S.A. in the United States and in ther cuntries. Business Objects is an SAP cmpany. All ther prduct and service names mentined are the trademarks f their respective cmpanies. Data cntained in this dcument serves infrmatinal purpses nly. Natinal prduct specificatins may vary. These materials are subject t change withut ntice. These materials are prvided by SAP AG and its affiliated cmpanies ("SAP Grup") fr infrmatinal purpses nly, withut representatin r warranty f any kind, and SAP Grup shall nt be liable fr errrs r missins with respect t the materials. The nly warranties fr SAP Grup prducts and services are thse that are set frth in the express warranty statements accmpanying such prducts and services, if any. Nthing herein shuld be cnstrued as cnstituting an additinal warranty. 2014 SAP AG 13