common construct oms bw-updated
DESCRIPTION
Business Program DocumentationTRANSCRIPT
![Page 1: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/1.jpg)
BW Folder Structure Data Provider Description Technical Name RestateInfoProvider INFOCUBETREE
SOAR Transactional InfoArea ZIA_SOAR_TRANSACTSOAR Order InfoArea ZIA_SOAR_ORDER
Sales Order InfoProvider ZIP_ORD ORD xSales Order ODS ZODS_ORD ORD xOpen Order InfoProvider ZIP_OPORD OODBack Order InfoProvider ZIP_BKORD BODSales Allocation InfoProvider ZIP_SLALC ALC
SOAR Delivery InfoArea ZIA_SOAR_DELIVERYSOAR Delivery ODS ZODS_DLV DLV xSOAR Delivery InfoProvider ZIP_DLV DLV x
SOAR Billing InfoArea ZIA_SOAR_BILLINGSales Invoice ODS ZODS_INV INV xSales Invoice InfoProvider ZIP_INV INV x
SOAR Sales InfoArea ZIA_SOAR_SALESSOAR Sales Average ODS ZODS_AVG AVG xSOAR Sales Average InfoProvider ZIP_AVG AVG xSOAR Sales History ODS ZODS_SHT SHS xSOAR Sales History InfoProvider ZIP_SHT SHS xSOAR Sales Budget ODS ZODS_BDGT SBS xSOAR Sales Budget InfoProvider ZIP_BDGT SBS x
SOAR CO-PA InfoArea ZIA_SOAR_COPASOAR Profitability Analysis ODS ZODS_CPA COP xSOAR Profitability Analysis InfoProvider ZIP_COPA COP x
SOAR A/R InfoArea ZIA_SOAR_ARSOAR FI-AR ODS ZODS_AR FAR xSOAR FI-AR InfoProvider ZIP_AR FAR x
SOAR Inventory InfoArea ZIA_SOAR_INVSOAR Daily Inventory InfoProvider ZIP_INVDD DINSOAR Weekly Inventory InfoProvider ZIP_INVWK WINSOAR Monthly Inventory InfoProvider ZIP_INVMM MIN
SOAR Procurement InfoArea ZIA_SOAR_PROCURESOAR Purchase Order ODS 0PUR_O01 POD, POH xSOAR Purchase Order InfoProvider 0PUR_C07 x
SOAR Forecast InfoArea ZIA_SOAR_FORECASTAPO Forecast History Cube ZIP_APHAPO Forecast Cube ZIP_APOForecast Trending Cube - 1 ZIP_FT1 FSL, FFC, FPOForecast Trending Cube - 2 ZIP_FT2Forecast Trending Cube - 3 ZIP_FT3Forecast Trending Cube - 4 ZIP_FT4Forecast & Commitments ODS ZODS_FCMTOpportunity Tracking ODS ZODS_OPPT OPPOpportunity Tracking InfoProvider ZIP_OPPT OPP
SOAR SNP InfoArea ZIA_SOAR_SNPSOAR Commitment Planning InfoProvider ZIP_CP CMPSOAR Commitment Planning History InfoProvider ZIP_CPH CMHSOAR SNP Netting InfoProvider ZIP_NTG NTGSOAR SNP Netting History InfoProvider ZIP_NTGH NTHSOAR Daily Prompt InfoProvider ZIP_PMPT PPTSOAR Monthly Receipts ZIP_RCPTS MRSSOAR PODOSR InfoProvider ZIP_PODSR PSRSOAR SQR ODS ZODS_SQRS SQR
SOAR KPI/GPS InfoArea ZIA_SOAR_KPISOAR Forecast Accuracy Cube - Weekly ZIP_ACCW ACCSOAR DOS/In-Stock KPI Cube ZIP_DOSIS DOS
Function Record Type
![Page 2: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/2.jpg)
SOAR Forecast Volatility Cube - Weekly ZIP_VOLW FVCSOAR POS InfoArea ZIA_SOAR_POS
SOAR POS InfoProvider ZIP_POS POSSOAR POS ODS ZODS_SPOS
SOAR Multiprovider InfoArea ZIA_SOAR_MULTIForecast, APO, APO History, Sales Order ZMC_FAPSODaily Inv, APO, APO History ZMC_FSTINForecast and Sales Order ZMC_MINFCForecast, APO, APO History, Sales Order, POS, AVG ZMC_SFAPOForecast and Point of Sale ZMC_SFPOSNet Sales, Commitments, and Netting ZMC_SFRTNCPFR Multi-Cube ZMC_SCPFR
SOAR Virtual/Remote InfoArea ZIA_SOAR_VIRTUALSOAR Planning Area - APA_SCP ZRC_XXXXX
SOAR Master Data InfoArea ZIA_SOAR_MASTERSOAR InfoObject Reporting InfoArea ZIA_SOAR_INFOOBJECT
Customer Pricing Z_CSTPRC CPRCustomer Pricing (Texts) Z_CSTPRC___T
SOAR Demo InfoArea ZIA_SOAR_DEMO
![Page 3: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/3.jpg)
Setup Dimension NamesCustomerMaterialOrganizationSales Force Hierarchy (Restated)As Posted HierarchiesStatus Codes & IndicatorsDoc/TimeDocument Number Document number only, line item dimension!Line Item Number Line Item number only, line item dimension!Document DetailTimeData PacketUnit
DB Storage Parameters:
Daily dump and reload Use average record count to set DB parameters from 4 to 6All others Category 9, 9
Partitioning:
Daily dump and reload Not neededAll Others Base on Fiscper or Calmonth 12 partitions per year + 2 < and >
Determine data starting point in production and extend for six years72 partitions + 2 < > = 74 partitions
Compression(SAP):
Daily dump and reload If cube has many sources of information(request id, etc), then set for SAP CompressionPartitioned cubes No need, must already be SAP Compressed.
![Page 4: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/4.jpg)
Navigation Attributes
Navigation Attributes Description0CUST_COMPC__0PMNTTRMS Payment Terms0CUST_COMPC__Z_BUSAB Accounting Clerk0CUST_SALES__0CUST_GROUP Customer group0CUST_SALES__0CUST_GRP1 Customer group 10CUST_SALES__0CUST_GRP2 Customer group 20CUST_SALES__0CUST_GRP3 Customer group 30CUST_SALES__0CUST_GRP4 Customer group 40CUST_SALES__0CUST_GRP5 Customer group 50CUST_SALES__0PLANT Plant0CUST_SALES__0PMNTTRMS Terms of payment0CUST_SALES__0PRICE_GRP Customer Price Group0CUST_SALES__0SALES_DIST Sales district0CUST_SALES__0SALES_GRP Sales group0CUST_SALES__0SALES_OFF Sales office0CUSTOMER__0ACCNT_GRP Account Group0CUSTOMER__0COUNTRY Country0CUSTOMER__0INDUSTRY Industry sector0CUSTOMER__0REGION Region0CUSTOMER__XXXXXXX SNP Location0SHIP_TO__0COUNTRY Country of Ship-to0SHIP_TO__0INDUSTRY Industry sector for goods recipient0MAT_PLANT__Z_MTVFP Availability Check0MAT_PLANT__0DISMM MRP Characteristic0MAT_PLANT__0MRP_CONTRL MRP Controller0MAT_PLANT__Z_DISGR MRP Group0MAT_SALES__0MATL_GRP_1 Material group 10MAT_SALES__0MATL_GRP_2 Material group 20MAT_SALES__0MATL_GRP_3 Material group 30MAT_SALES__0MATL_GRP_4 Material group 40MAT_SALES__0MATL_GRP_5 Material group 50MAT_SALES__0PROV_GROUP Commission group0MAT_SALES__0REBATE_GRP Volume rebate group
![Page 5: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/5.jpg)
0MAT_SALES__Z_KONDM Material Price Group0MAT_SALES__Z_MTPOS Item Category Group0MATERIAL__0DIVISION Division0MATERIAL__0EXTMATLGRP Ext. matl group0MATERIAL__0IND_SECTOR Industry sector0MATERIAL__0MATL_GROUP Material group0MATERIAL__0MATL_TYPE Material type0MATERIAL__Z_4TPC 4 Digit Tokyo Product Category0MATERIAL__Z_6TPC 6-Digit Tokyo Product Category0MATERIAL__Z_TCOMPC Tokyo Comp Code0MATERIAL__Z_APOINDC APO Indicator0MATERIAL__Z_BISMT Group Model - from Old Material #0MATERIAL__Z_BUS_GRP Business Group0MATERIAL__Z_MJR_CAT Major Category0MATERIAL__Z_PRF_CTR Profit Center0MATERIAL__Z_SNPINDC SNP Indicator0MATERIAL__Z_SUB_CAT Sub CategoryZ_AM_SFH__Z_BUS_UNT AP Business UnitZ_AM_SFH__Z_R_S_MGR AP Regional Sales ManagerZ_AM_SFH__Z_SLS_GRP AP Sales GroupZ_AM_SFH__Z_VP_ZONE AP VP ZoneZ_BYGH__Z_BUYGRP BYGH - Buying GroupZ_COH__Z_DVSN COH - DivisionZ_COH__Z_PAR_CO COH - Parent CompanyZ_COH__Z_SUB_DIV COH - Sub DivisionZ_CRTH__Z_PARENT Contract HierarchyZ_PLNH__Z_PLNGCST PLNH - Planning Partner NodeZ_ROH__Z_RETAILR ROH - Retail Outlet Shipto NodeZ_RSLH__Z_PARENT Reseller HierachryZ_RST_CST__Z_AM_SFH Account ManagerZ_RST_CST__Z_BUS_UNT Business UnitZ_RST_CST__Z_R_S_MGR Regional Sales ManagerZ_RST_CST__Z_SLS_GRP Sales GroupZ_RST_CST__Z_INSDREP Sony Inside RepZ_RST_CST__Z_OUTSREP Sony Outside RepZ_RST_CST__Z_SLS_REP Sales Representative
![Page 6: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/6.jpg)
Z_RST_CST__Z_VP_ZONE VP ZoneZ_TOP__Z_C21BTGS Forecast Billto GroupZ_TOP__Z_C21FLGS Customer Forecast ClassZ_TOP__Z_C21TYPS Customer Forecast TypeZ_TOP__Z_DELIND Deletion Indicator
NOTE: These are the basics, some cubesmay have more or less
![Page 7: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/7.jpg)
InfoProvider
Fields InfoObject Type Description Dimension Default ValueC_CTR_AREA 0C_CTR_AREA Characteristic Credit Control Area Organization 1010'CO_AREA 0CO_AREA Characteristic Controlling Area Organization SON1'COMP_CODE 0COMP_CODE Characteristic Company Code OrganizationCUST_COMPC 0CUST_COMPC Characteristic Customer number compounded with company code CustomerCUST_GROUP 0CUST_GROUP Characteristic As Posted Customer group CustomerCUST_GRP1 0CUST_GRP1 Characteristic As Posted Customer group 1 CustomerCUST_GRP2 0CUST_GRP2 Characteristic As Posted Customer group 2 CustomerCUST_GRP3 0CUST_GRP3 Characteristic As Posted Customer group 3 CustomerCUST_GRP4 0CUST_GRP4 Characteristic As Posted Customer group 4 CustomerCUST_GRP5 0CUST_GRP5 Characteristic As Posted Customer group 5 CustomerCUST_SALES 0CUST_SALES Characteristic Customer number(sales view) CustomerCUSTOMER 0CUSTOMER Characteristic Customer Number CustomerDISTR_CHAN 0DISTR_CHAN Characteristic Distribution Channel OrganizationDIVISION 0DIVISION Characteristic Division OrganizationDOC_DATE 0DOC_DATE Characteristic Document date Document DetailMAT_PLANT 0MAT_PLANT Characteristic Plant Material MaterialMAT_SALES 0MAT_SALES Characteristic Material Number Compounded to Sales MaterialMATERIAL 0MATERIAL Characteristic Material MaterialMATL_GROUP 0MATL_GROUP Characteristic As Posted Material group MaterialMATL_GRP_1 0MATL_GRP_1 Characteristic As Posted Material group 1 MaterialMATL_GRP_2 0MATL_GRP_2 Characteristic As Posted Material group 2 MaterialMATL_GRP_3 0MATL_GRP_3 Characteristic As Posted Material group 3 MaterialMATL_GRP_4 0MATL_GRP_4 Characteristic As Posted Material group 4 MaterialMATL_GRP_5 0MATL_GRP_5 Characteristic As Posted Material group 5 MaterialPLANT 0PLANT Characteristic Plant MaterialPROFIT_CTR 0PROFIT_CTR Characteristic Profit Center Organization PROV_GROUP 0PROV_GROUP Characteristic Commission group Sales Force Hierarchy SALESORG 0SALESORG Characteristic Sales Organization OrganizationSHIP_TO 0SHIP_TO Characteristic Ship-to party CustomerSOLD_TO 0SOLD_TO Characteristic Soldto Party Customer/BIC/Z_4TPC Z_4TPC Characteristic 4 Digit Tokyo Produc Material/BIC/Z_6TPC Z_6TPC Characteristic 6 Digit Tokyo Produc Material/BIC/Z_APOINDC Z_APOINDC Characteristic APO Relevant Indicator/BIC/Z_BUS_GRP Z_BUS_GRP Characteristic Business Group Organization/BIC/Z_BUS_UNT Z_BUS_UNT Characteristic Business Unit Sales Force Hierarchy/BIC/Z_CALHALF Z_CALHALF Characteristic Cal Year/Half Doc/Time/BIC/Z_DOC_YR Z_DOC_YR Characteristic Document Year Doc/Time/BIC/Z_DOCMNTH Z_DOCMNTH Characteristic Document Month/Year Doc/Time/BIC/Z_ENDUSER Z_ENDUSER Characteristic End User Sales Force Hierarchy/BIC/Z_FACTMO Z_FACTMO Characteristic Factory Month Doc/Time/BIC/Z_FACTWK Z_FACTWK Characteristic Factory Week Doc/Time/BIC/Z_FISCQTR Z_FISCQTR Characteristic Fiscal Year/Quarter Doc/Time/BIC/Z_FISHALF Z_FISHALF Characteristic Fiscal Year/Half Doc/Time/BIC/Z_FUNTYPE Z_FUNTYPE Characteristic Old Z_DOCTYPE Status Codes and Indicators/BIC/Z_KONDA Z_KONDA Characteristic As Posted Customer Price Group Customer/BIC/Z_KONDM Z_KONDM Characteristic As Material Price Group Material/BIC/Z_MJR_CAT Z_MJR_CAT Characteristic Major Category. Material/BIC/Z_MSTAE Z_MSTAE Characteristic Cross-Plant Material Material/BIC/Z_PKGIND Z_PKGIND Characteristic Package Indicator Status Codes and Indicators
![Page 8: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/8.jpg)
/BIC/Z_COMMGRP Z_COMMGRP Characteristic As Posted Commission Group As Posted Sales Force Hierarchy/BIC/Z_PRF_CTR Z_PRF_CTR Characteristic As Posted Profit Center Organization/BIC/Z_BYGH Z_BYGH Characteristic Buying Group Hierarchy Sales Force Hierarchy/BIC/Z_COH Z_COH Characteristic Customer Ownership Hierarchy Sales Force Hierarchy
/BIC/Z_CRTH Z_CRTH Characteristic Contract Hierarchy Sales Force Hierarchy/BIC/Z_ROH Z_ROH Characteristic Retail Outlet Hierarchy Sales Force Hierarchy/BIC/Z_PLNH Z_PLNH Characteristic Planning Hierarchy Sales Force Hierarchy
/BIC/Z_RSLH Z_RSLH Characteristic Reseller Hierachry Sales Force Hierarchy/BIC/Z_RST_CST Z_RST_CST Characteristic Restated Account Mgr (Customer) Customer/BIC/Z_AM_SFH Z_AM_SFH Characteristic AP Account Manager Sales Force Hierarchy/BIC/Z_R_S_MGR Z_R_S_MGR Characteristic Reg Sls Mgr Sales Force Hierarchy/BIC/Z_SLS_GRP Z_SLS_GRP Characteristic Sales Group Sales Force Hierarchy/BIC/Z_VP_ZONE Z_VP_ZONE Characteristic VP Zone Sales Force Hierarchy/BIC/Z_INSDREP Z_INSDREP Characteristic As Posted Sony Inside Rep As Posted Sales Force Hierarchy/BIC/Z_OUTSREP Z_OUTSREP Characteristic As Posted Sony Outside Rep As Posted Sales Force Hierarchy/BIC/Z_SNPINDC Z_SNPINDC Characteristic SNP Relevant Indicator/BIC/Z_SUB_CAT Z_SUB_CAT Characteristic Sub Category Material/BIC/Z_TCOMPC Z_TCOMPC Characteristic Tokyo Company Code Organization/BIC/Z_TOP Z_TOP Characteristic Top 20 Customer Indicator Customer/BIC/Z_WEEKNO Z_WEEKNO Characteristic Calendar Week Doc/Time
CALDAY 0CALDAY Time Characteristic Calendar dayCALMONTH 0CALMONTH Time Characteristic Calendar Year/MonthCALMONTH2 0CALMONTH2 Time Characteristic Calendar monthCALQUART1 0CALQUART1 Time Characteristic QuarterCALQUARTER 0CALQUARTER Time Characteristic Calendar Year/QuarterCALWEEK 0CALWEEK Time Characteristic Calendar Year / WeekCALYEAR 0CALYEAR Time Characteristic Calendar yearFISCPER 0FISCPER Time Characteristic Fiscal year / periodFISCPER3 0FISCPER3 Time Characteristic Posting periodFISCVARNT 0FISCVARNT Time Characteristic Fiscal year variantFISCYEAR 0FISCYEAR Time Characteristic Fiscal yearHALFYEAR1 0HALFYEAR1 Time Characteristic Halfyear
BASE_UOM 0BASE_UOM Units Base Unit of MeasureDOC_CURRCY 0DOC_CURRCY Units SD document currencySALES_UNIT 0SALES_UNIT Units Sales Unit
![Page 9: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/9.jpg)
ODS
Fields Info Object Key Type DescriptionDOCNUMBER/PONUMBER/LINE ITEM NUMBER ??????????? x Characteristic Identifying numberC_CTR_AREA 0C_CTR_AREA Characteristic Credit Control AreaCO_AREA 0CO_AREA x Characteristic Controlling AreaCOMP_CODE 0COMP_CODE Characteristic Company CodeCUST_COMPC 0CUST_COMPC Characteristic Customer number compounded with company codeCUST_GROUP 0CUST_GROUP Characteristic As Posted Customer groupCUST_GRP1 0CUST_GRP1 Characteristic As Posted Customer group 1CUST_GRP2 0CUST_GRP2 Characteristic As Posted Customer group 2CUST_GRP3 0CUST_GRP3 Characteristic As Posted Customer group 3CUST_GRP4 0CUST_GRP4 Characteristic As Posted Customer group 4CUST_GRP5 0CUST_GRP5 Characteristic As Posted Customer group 5CUST_SALES 0CUST_SALES Characteristic Customer number(sales view)CUSTOMER 0CUSTOMER x Characteristic Customer NumberDISTR_CHAN 0DIST_CHAN x Characteristic Distribution ChannelDIVISION 0DIVISION x Characteristic DivisionDOC_DATE 0DOC_DATE x Characteristic Document dateMAT_PLANT 0MAT_PLANT Characteristic Plant MaterialMAT_SALES 0MAT_SALES Characteristic Material Number Compounded to Sales MATERIAL 0MATERIAL x Characteristic MaterialMATL_GROUP 0MATL_GROUP Characteristic As Posted Material groupMATL_GRP_1 0MATL_GRP_1 Characteristic As Posted Material group 1MATL_GRP_2 0MATL_GRP_2 Characteristic As Posted Material group 2MATL_GRP_3 0MATL_GRP_3 Characteristic As Posted Material group 3MATL_GRP_4 0MATL_GRP_4 Characteristic As Posted Material group 4MATL_GRP_5 0MATL_GRP_5 Characteristic As Posted Material group 5PLANT 0PLANT Characteristic Plant PROFIT_CTR 0PROFIT_CTR x Characteristic Restated Profit CenterPROV_GROUP 0PROV_GROUP x Characteristic Restated Commission group SALESORG 0SALESORG x Characteristic Sales OrganizationSHIP_TO 0SHIP_TO x Characteristic Ship-to partySOLD_TO 0SOLD_TO x Characteristic Soldto Party/BIC/Z_4TPC Z_4TPC Characteristic 4 Digit Tokyo Produc/BIC/Z_6TPC Z_6TPC Characteristic 6 Digit Tokyo Produc/BIC/Z_AM_SFH Z_AM_SFH Characteristic AP Account Manager/BIC/Z_APOINDC Z_APOINDC Characteristic APO Relevant Indicator/BIC/Z_BUS_GRP Z_BUS_GRP Characteristic Business Group/BIC/Z_BUS_UNT Z_BUS_UNT Characteristic Business Unit/BIC/Z_BYGH Z_BYGH Characteristic Buying Group Hierarchy/BIC/Z_COH Z_COH Characteristic Customer Ownership Hierarchy/BIC/Z_COMMGRP Z_COMMGRP x Characteristic As Posted Commission group
/BIC/Z_CRTH Z_CRTH Characteristic Contract Hierarchy/BIC/Z_ENDUSER Z_ENDUSER Characteristic End User/BIC/Z_FACTMO Z_FACTMO Characteristic Factory Month/BIC/Z_FACTWK Z_FACTWK Characteristic Factory Week/BIC/Z_FUNTYPE Z_FUNTYPE Characteristic Old Z_DOCTYPE
![Page 10: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/10.jpg)
/BIC/Z_INSDREP Z_INSDREP Characteristic As Posted Sony Inside Rep/BIC/Z_KONDA Z_KONDA Characteristic As Posted Customer Price Group/BIC/Z_KONDM Z_KONDM Characteristic As Material Price Group/BIC/Z_MJR_CAT Z_MJR_CAT Characteristic Major Category./BIC/Z_MSTAE Z_MSTAE Characteristic Cross-Plant Material/BIC/Z_OLDHIER Z_OLDHIER Characteristic Old TD Hierarchy/BIC/Z_OUTSREP Z_OUTSREP Characteristic As Posted Sony Outside Rep/BIC/Z_PKGIND Z_PKGIND Characteristic Package Indicator/BIC/Z_PLNH Z_PLNH Characteristic Planning Hierarchy/BIC/Z_PRF_CTR Z_PRF_CTR x Characteristic As Posted Profit Center/BIC/Z_R_S_MGR Z_R_S_MGR Characteristic Reg Sls Mgr/BIC/Z_ROH Z_ROH Characteristic Retail Outlet Hierarchy
/BIC/Z_RSLH Z_RSLH Characteristic Reseller Hierachry/BIC/Z_RST_CST Z_RST_CST Characteristic Restated Account Mgr (Customer)/BIC/Z_SLS_GRP Z_SLS_GRP Characteristic Sales Group/BIC/Z_SNPINDC Z_SNPINDC Characteristic SNP Relevant Indicator/BIC/Z_SUB_CAT Z_SUB_CAT Characteristic Sub Category/BIC/Z_TCOMPC Z_TCOMPC Characteristic Tokyo Company Code/BIC/Z_TOP Z_TOP Characteristic Top 20 Customer Indicator
/BIC/Z_VP_ZONE Z_VP_ZONE Characteristic VP Zone
CALDAY 0CALDAY x Time Characteristic Calendar dayFISCPER3 0FISCPER3 x Time Characteristic Posting periodFISCVARNT 0FISCVARNT Time Characteristic Fiscal year variant
BASE_UOM 0BASE_UOM Units Base Unit of MeasureDOC_CURRCY 0DOC_CURRCY Units SD document currencySALES_UNIT 0SALES_UNIT Units Sales Unit
Note: SAB101 Compliancy - Test 0DOC_DATE and FISCPER3(posting period). If doc date falls in month 11, but fiscper3 falls in month 12…….
![Page 11: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/11.jpg)
Comments
"0101""SON1"
![Page 12: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/12.jpg)
"2" for All except for Pkg/CTO header Item
One or the otherOne or the other"V3"
![Page 13: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/13.jpg)
Characteristics and Custom FieldsFields Description Info Object
PROV_GROUP AP Commission group 0PROV_GROUPSALESORG Sales Organization 0SALESORG Default = '1000'
DIVISION Division 0DIVISION
DISTR_CHAN Distribution Channel 0DIST_CHANDOC_DATE Document date 0DOC_DATE 0CALDAY/BIC/Z_DOCMNTH Document Month/Year Z_DOCMNTH Z_CALMTH
MATERIAL Material 0MATERIALMATL_GROUP As Posted Material group 0MATL_GROUP Leave BlankMATL_GRP_1 As Posted Material group 1 0MATL_GRP_1 Leave BlankMATL_GRP_2 As Posted Material group 2 0MATL_GRP_2 Leave BlankMATL_GRP_3 As Posted Material group 3 0MATL_GRP_3 Leave BlankMATL_GRP_4 As Posted Material group 4 0MATL_GRP_4 Leave BlankMATL_GRP_5 As Posted Material group 5 0MATL_GRP_5 Leave BlankMAT_PLANT Plant Material 0MAT_PLANT 0MATERIALMAT_SALES Material Number Compounded to Sales 0MAT_SALES 0MATERIALPLANT Plant 0PLANT Default = '9999'CUSTOMER Customer Number 0CUSTOMER XREF LOOKUP.CUST_GROUP As Posted Customer group 0CUST_GROUP Leave BlankCUST_GRP1 As Posted Customer group 1 0CUST_GRP1 Leave BlankCUST_GRP2 As Posted Customer group 2 0CUST_GRP2 Leave BlankCUST_GRP3 As Posted Customer group 3 0CUST_GRP3 Leave BlankCUST_GRP4 As Posted Customer group 4 0CUST_GRP4 Leave BlankCUST_GRP5 As Posted Customer group 5 0CUST_GRP5 Leave BlankSHIP_TO Ship-to party 0SHIP_TO XREF LOOKUP.CUST_SALES Customer number(sales view) 0CUST_SALES 0CUSTOMER - Sold toCUST_COMPC Customer number compounded with company code 0CUST_COMPC 0CUSTOMER - Sold toCOMP_CODE Company Code 0COMP_CODE Default = '1000'/BIC/Z_AM_SFH AP Account Manager Z_AM_SFH Use Abap Code/BIC/Z_BUS_UNT Business Unit Z_BUS_UNT Use Abap Code/BIC/Z_SLS_GRP Sales Group Z_SLS_GRP Use Abap Code/BIC/Z_R_S_MGR Reg Sls Mgr Z_R_S_MGR Use Abap Code
/BIC/Z_VP_ZONE VP Zone Z_VP_ZONE Use Abap Code/BIC/Z_COH Customer Ownership Hierarchy Z_COH 0CUSTOMER - Sold to
/BIC/Z_CRTH Contract Hierarchy Z_CRTH 0CUSTOMER - Sold to
/BIC/Z_RSLH Reseller Hierachry Z_RSLH 0CUSTOMER - Sold to/BIC/Z_BYGH Buying Group Hierarchy Z_BYGH 0CUSTOMER - Sold to/BIC/Z_ROH Retail Outlet Hierarchy Z_ROH 0CUSTOMER - Sold to/BIC/Z_PLNH Planning Hierarchy Z_PLNH 0CUSTOMER - Sold to
/BIC/Z_RST_CST Restated Ship-to Z_SH_REST/BIC/Z_ZZKZ2 As Posted Sony Representative Z_ZZKZ2 Leave Blank
Map Z_COMMGRP if available, else leave blank
Default = '20' CONSUMER '10' - BPC
Default = '20' CONSUMER '10' - BPC
0MATERIAL - USE MODEL + FET. IF FET = 'A', THEN MODEL, ELSE MODEL.B
If division = '10' 0SHIP_TO, if '20 0SOLDTO
![Page 14: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/14.jpg)
/BIC/Z_ZZKZ5 End User Z_ZZKZ5 Leave Blank/BIC/Z_4TPC 4 Digit Tokyo Produc Z_4TPC 0material - attribute/BIC/Z_6TPC 6 Digit Tokyo Produc Z_6TPC 0material - attribute/BIC/Z_BUS_GRP Business Group Z_BUS_GRP 0material - attribute/BIC/Z_MJR_CAT Major Category. Z_MJR_CAT 0material - attribute/BIC/Z_MSTAE Cross-Plant Material Z_MSTAE 0material - attribute/BIC/Z_PRF_CTR Profit Center Z_PRF_CTR 0material - attribute/BIC/Z_SUB_CAT Sub Category Z_SUB_CAT 0material - attribute/BIC/Z_TCOMPC Tokyo Company Code Z_TCOMPC 0material - attribute
/BIC/Z_OLDHIER Old TD Hierarchy Z_OLDHIER/BIC/Z_FNCTYPE Old Z_DOCTYPE Z_FNCTYPE Z_DOCTYPE/BIC/Z_CALHALF Cal Year/Half Z_CALHALF Direct Map/BIC/Z_FACTMO Factory Month Z_FACTMO Direct Map/BIC/Z_FACTWK Factory Week Z_FACTWK Direct Map/BIC/Z_FISCPER Fiscal Period Year Z_FISCPER Direct Map/BIC/Z_FISCQTR Fiscal Year/Quarter Z_FISQTR Direct Map/BIC/Z_FISHALF Fiscal Year/Half Z_FISHALF Direct Map/BIC/Z_WEEKNO Calendar Week Z_WEEKNO Direct Map
Time CharacteristicsCALDAY Calendar day 0CALDAY Direct MapCALMONTH Calendar Year/Month 0CALMONTH Direct MapCALMONTH2 Calendar month 0CALMONTH2 Direct MapCALQUART1 Quarter 0CALQUART1 Direct MapCALQUARTER Calendar Year/Quarter 0CALQUARTER Direct MapCALWEEK Calendar Year / Week 0CALWEEK Direct MapCALYEAR Calendar year 0CALYEAR Direct MapFISCPER Fiscal year / period 0FISCPER Direct MapFISCPER3 Posting period 0FISCPER3 Direct MapFISCVARNT Fiscal year variant 0FISCVARNT Direct MapFISCYEAR Fiscal year 0FISCYEAR Direct MapHALFYEAR1 Halfyear 0HALFYEAR1 Direct Map
UNITS BASE_UOM Base Unit of Measure 0BASE_UOMDOC_CURRCY SD document currency 0DOC_CURRCYSALES_UNIT Sales Unit 0SALES_UNIT
Concatenate Z_COMP, Z_DIVN, Z_MAJCAT, Z_SUBCAT
![Page 15: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/15.jpg)
PROGRAM UPDATE_ROUTINE.*$*$ begin of global - insert your declaration only below this line *-** TABLES: ...* DATA: TABLES: /BI0/P0MATERIAL, /BIC/PZ_PRODCD,
/BIC/MY_CSTMR. "View of MD table: STN CUSTOMER - Info ObjectDATA: I_majcat LIKE /BI0/P0MATERIAL-/BIC/Z_MAJ_CAT, I_subcat LIKE /BI0/P0MATERIAL-/BIC/Z_SUB_CAT, I_prfctr LIKE /BI0/P0MATERIAL-/BIC/Z_PFT_CTR, I_material LIKE /BI0/P0MATERIAL-MATERIAL, I_TKY4 LIKE /BI0/P0MATERIAL-/BIC/Z_4TPC, I_TKY6 LIKE /BI0/P0MATERIAL-/BIC/Z_6TPC, I_model LIKE /BIC/PZ_PRODCD-/BIC/MODEL, I_model_hold LIKE /BIC/PZ_PRODCD-/BIC/MODEL,
gc_acct_mgr like /BIC/MZ_SH_ACMG-/BIC/Z_ACT_MGR, gc_y_cstmr_rec type /BIC/MY_CSTMR, "Y_CSTMR record for error gc_0sold_to like /BIC/VYIC_SSCT-CUSTOMER. "SIR 2006 on 11/01.
FORM Get_Material_attributes.
*If fet is no part of transaction data default to “A” logic*Lookup Z_PRODCD for MODELNAME if Model not part of TD.
SELECT SINGLE /bic/modelFROM /BIC/PZ_PRODCDINTO (I_model)WHERE Z_PRODCD = COMM_STRUCTURE-/BIC/Z_PRODCD.
IF COMM_STRUCTURE-/BIC/Z_FET = ‘A’ I_model_hold = I_model. ELSE. CONCATENATE I_model “.B” INTO I_model_hold. ENDIF.
SELECT SINGLE /bic/z_maj cat, /bic/z_sub_cat, /bic/z_pft_ctr, material, /bic/z_4tpc, /bic/z_6tpc FROM /BI0/PMATERIAL INTO (I_majcat, I_subcat, I_pftctr, I_material, I_tky4, I_tky6) WHERE MATERIAL = I_model_hold IF sy-subrc <> 0. CLEAR I_majcat, I_subcat, I_prfctr, I_tky4, I_tky6. ENDIF.
/BIC/MZ_STNCUST, "View of MD table:STN Customer-ShipTo
gc_0ship_to like /BIC/VYIC_SSCT-SHIP_TO,
![Page 16: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/16.jpg)
*Even if material not found, still need to default material to model name. I_material = I_model_hold. ENDFORM.
FORM Get_customer_attributes.
********* New Logic for Account Manager Extract *********** Get Account Mgr from the table for Y_CSTMR* by defaulting Company to '04' and Division to '4000' select single * from /BIC/MY_CSTMR where /BIC/Y_STN_CO = '4' and /BIC/Y_DIV_GRP = '4000' and /BIC/Y_CSTMR = gs_comm_struc-/BIC/Y_CSTMR and OBJVERS = 'A'. if sy-subrc = 0. gc_acct_mgr = /BIC/MY_CSTMR-/BIC/Y_ACT_MGR. gc_Y_CSTMR_rec = /BIC/MY_CSTMR. "Copy the record to buffer else.* Get Account Mgr from the table for Y_CSTMR for any other STN Company &* Division - since record does not exist for '04' and '4000' in BW select * from /BIC/MY_CSTMR up to 1 rows where /BIC/Y_CSTMR = gs_comm_struc-/BIC/Y_CSTMR and OBJVERS = 'A'. gc_acct_mgr = /BIC/MY_CSTMR-/BIC/Y_ACT_MGR. gc_Y_CSTMR_rec = /BIC/MY_CSTMR. "Copy the record to buffer endselect. if sy-subrc <> 0.* Update Account Manager with 'NA' as no record found in Y_CSTMR write:/ 'No Account Manager record found in /BIC/MY_CSTMR for ', 'STN Customer', gs_comm_struc-/BIC/Y_CSTMR. gc_acct_mgr = 'NA'. clear gc_Y_CSTMR_rec. endif. "for second read of Y_CSTMR w/o Company code/Division endif. "for first read of Y_CSTMR with Company code/Division** Extract the SAP Ship-to customer for the STN Customer from Ref table select single * from /BIC/MZ_STNCUST where /BIC/Z_STNCUST = gs_comm_struc-/BIC/Y_CSTMR and objvers = 'A' and /BIC/Z_PARVW = 'WE'. if sy-subrc = 0. gc_0ship_to = /BIC/MZ_STNCUST-SOLD_TO. else. write:/ 'No SAP Ship-to in Z_STNCUST for:', gs_comm_struc-/BIC/Y_CSTMR, gc_y_cstmr_rec-/BIC/Y_PAR_CO, gc_y_cstmr_rec-/BIC/Y_DVSN, gc_y_cstmr_rec-/BIC/Y_SUB_DIV. clear gc_Y_CSTMR_rec.
* SAP Ship-to not found hence update Ship-to with STN Ship-to # gc_0ship_to = gs_comm_struc-/BIC/Y_CSTMR. endif.
![Page 17: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/17.jpg)
*---------------------------------------------------------------------********** New Logic for Sold-to (0CUSTOMER) Extract *********** Change for SIR 2006 on 11/01/2001 - To get the SAP Sold-to for the* STN Bill-to derived by getting first 7 characters from STN Ship-to* Extract the SAP Sold-to 'AG' from Z_STNCUST for STN Bill-to* If record is not found in Ref Cust table then Soldto = Shipto.
select single * from /BIC/MZ_STNCUST where /BIC/Z_STNCUST = gs_comm_struc-/BIC/Y_CSTMR(7) "STN Bill-to and objvers = 'A' and /BIC/Z_PARVW = 'AG'. "Sold-to Partner function if sy-subrc = 0. gc_0sold_to = /BIC/MZ_STNCUST-SOLD_TO. clear: gc_y_cstmr_rec. else.* SAP Sold-to not found hence update Sold-to with Ship-to # from above gc_0sold_to = gc_0ship_to. endif.
Endform.* End of Changes for the Global section
FORM Get_other_attributes.ENDFORM....*$*$ end of global - insert your declaration only before this line *-*
FORM compute_key_field TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring USING COMM_STRUCTURE LIKE /BIC/CS8ZXX_XXX RECORD_NO LIKE SY-TABIX RECORD_ALL LIKE SY-TABIX SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS CHANGING RESULT LIKE /BIC/VZIC_DOSIST-/BIC/Z_COMP RETURNCODE LIKE SY-SUBRC ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update**$*$ begin of routine - insert your code only below this line *-**fill the internal table "MONITOR", to make monitor entries*Use this perform up front to populate all global variables based*On record coming through the communication structure.*It should be re-executed for each record. PERFORM get_material_attributes. PERFORM get_customer_attributes. PERFORM get_other_attributes.*result value of the routine*Then in each characteristic of cube, if necessary, create routine to map*RESULT = Global Variable. RESULT = I_material.* if the returncode is not equal zero, the result will not be updated
![Page 18: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/18.jpg)
RETURNCODE = 0.* if abort is not equal zero, the update process will be canceled ABORT = 0.
*$*$ end of routine - insert your code only before this line *-**ENDFORM.
Basic Date Logic:* Global code used by conversion rules*$*$ begin of global - insert your declaration only below this line *-** TABLES: ...* DATA: ...DATA: I_PERIOD like T009B-POPER, cc_year like /BIC/AZODS_SS00-CALYEAR, cc_week like SCAL-WEEK, i_date like sy-datum, i_factory_wk like zswt_tkyo_facwk-z_req_ship_dt, i_factory_mnth like zswt_tkyo_facwk-z_mth_num, i_factory_year like zswt_tkyo_facwk-z_period_yr.
FORM get_date_fields USING COMM_STRUC TYPE COMM_STRUCTURE.
CONCATENATE COMM_STRUC-Z_DOCMNTH '01' INTO I_DATE.
call function 'DATE_TO_PERIOD_CONVERT' exporting I_DATE = I_DATE I_MONMIT = 00 I_PERIV = 'V3' importing e_buper = i_period e_gjahr = cc_year.
SELECT SINGLE z_req_ship_dt z_mth_num z_period_yr INTO (i_factory_wk, i_factory_mnth, i_factory_year) FROM ZSWT_TKYO_FACWK WHERE Z_PERIOD_IND = 'W' AND z_pd_end_dt GE i_date.
IF sy-subrc NE 0. i_factory_wk = ''. i_factory_mnth = ''. i_factory_year = ''. ENDIF.
call function 'DATE_GET_WEEK' EXPORTING DATE = i_date IMPORTING WEEK = cc_week.
![Page 19: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/19.jpg)
ENDFORM.
*$*$ end of global - insert your declaration only before this line *-**----------------------------------------------------------------------** FORM COMPUTE_/BIC/Z_WEEKNO*----------------------------------------------------------------------*FORM compute_key_field TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring USING COMM_STRUCTURE LIKE /BIC/CSY_STN_SLS_HSTRY_TD RECORD_NO LIKE SY-TABIX RECORD_ALL LIKE SY-TABIX SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS CHANGING RESULT LIKE /BIC/VYIC_SSCT-/BIC/Z_DOCMNTH RETURNCODE LIKE SY-SUBRC ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update**$*$ begin of routine - insert your code only below this line *-** fill the internal table "MONITOR", to make monitor entriesPERFORM GET_DATE_FIELDS USING COMM_STRUCTURE.* result value of the routine RESULT = cc_week+4(2).* if the returncode is not equal zero, the result will not be updated RETURNCODE = 0.* if abort is not equal zero, the update process will be canceled ABORT = 0.
*$*$ end of routine - insert your code only before this line *-**ENDFORM.
Z_CALHALF:IF COMM_STRUCTURE-z_docmnth+4(2) < 7. concatenate COMM_STRUCTURE-z_docmnth(4) '1' INTO RESULT. ELSE. concatenate COMM_STRUCTURE-z_docmnth(4) '2' INTO RESULT. ENDIF.
Z_FACTMO:Concatenate I_factory_year I_factory_mnth INTO RESULT.
Z_FACTWK:Concatenate I_factory_year I_factory_wk INTO RESULT.
Z_FISCPER:CONCATENATE cc_year i_period INTO RESULT.
Z_FISCQTR: if i_period < 4. concatenate cc_year '1' into RESULT. elseif i_period < 7. concatenate cc_year '2' into RESULT. elseif i_period < 10. concatenate cc_year '3' into RESULT. else.
![Page 20: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/20.jpg)
concatenate cc_year '4' into RESULT. endif.
Z_FISCHALF: if i_period < 7. concatenate cc_year '01' into RESULT. else. concatenate cc_year '02' into RESULT. endif.
![Page 21: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/21.jpg)
Kevin, Marissa, as discussed at the last meeting, we can remove only one custom date field, and the others will stay because they are currently used or will be helpful in the future:
Z_CALHALF - used in most queriesZ_FISCQTR - used in all GPS queriesZ_FISHALF - used in "quick hit" queriesZ_FACTMO - everywhereZ_FACKWK - everywhereZ_WEEKNO - not currently used, but could be useful in future.Z_FISCPER - We should remove, this has the same format as 0FISCPER and is populated with same data. There is no need.
I have update our document in SM and removed Z_FISCPER as a common field. All other date fields should be populated and currently serve a purpose, Factory month/week to represent our tokyo calendar, and the rest for drill down purposes because of the formats of the "0" date fields provided by SAP were inadequate. Z_WEEKNO is not currently being used, but it may be useful in the future and 0CALWEEK can not replace this since it is in the format year/week number. We may do week(year) over week(year -1) comparsions in future reporting.
All date fields and their reporting formats:
![Page 22: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/22.jpg)
![Page 23: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/23.jpg)
Kevin, Marissa, as discussed at the last meeting, we can remove only one custom date field, and the others will stay because they are currently used or will be helpful in the future:
Z_FISCPER - We should remove, this has the same format as 0FISCPER and is populated with same data. There is no need.
I have update our document in SM and removed Z_FISCPER as a common field. All other date fields should be populated and currently serve a purpose, Factory month/week to represent our tokyo calendar, and the rest for drill down purposes because of the formats of the "0" date fields provided by SAP were inadequate. Z_WEEKNO is not currently being used, but it may be useful in the future and 0CALWEEK can not replace this since it is in the format year/week number. We may do week(year) over week(year -1) comparsions in future reporting.
![Page 24: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/24.jpg)
![Page 25: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/25.jpg)
I have update our document in SM and removed Z_FISCPER as a common field. All other date fields should be populated and currently serve a purpose, Factory month/week to represent our tokyo calendar, and the rest for drill down purposes because of the formats of the "0" date fields provided by SAP were inadequate. Z_WEEKNO is not currently being used, but it may be useful in the future and 0CALWEEK can not replace this since it is in the format year/week number. We may do week(year) over week(year -1) comparsions in future reporting.
![Page 26: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/26.jpg)
I have update our document in SM and removed Z_FISCPER as a common field. All other date fields should be populated and currently serve a purpose, Factory month/week to represent our tokyo calendar, and the rest for drill down purposes because of the formats of the "0" date fields provided by SAP were inadequate. Z_WEEKNO is not currently being used, but it may be useful in the future and 0CALWEEK can not replace this since it is in the format year/week number. We may do week(year) over week(year -1) comparsions in future reporting.
![Page 27: Common Construct OMS BW-updated](https://reader038.vdocuments.net/reader038/viewer/2022102517/5450c3e5b1af9f4d088b4a7c/html5/thumbnails/27.jpg)
I have update our document in SM and removed Z_FISCPER as a common field. All other date fields should be populated and currently serve a purpose, Factory month/week to represent our tokyo calendar, and the rest for drill down purposes because of the formats of the "0" date fields provided by SAP were inadequate. Z_WEEKNO is not currently being used, but it may be useful in the future and 0CALWEEK can not replace this since it is in the format year/week number. We may do week(year) over week(year -1) comparsions in future reporting.