List of application role + menu role and explanation if we have several applications role with specials rules.
|
List of authorization objects mandatory for the application.
|
Material stock - ABMMIC01 (WP1_400) data flow - Be carrefull ABCOMMIC01 has key figure in summation mode.
Model S data flow
The principal thing to know here it's about the way to extract the data.
The goal is to extract and stock in APCOMS01 "Quantity Total Stock" 0TOTALSTCK from ABMMIC01. Info object 0TOTALSTCK is not physically stored in invenotry DSO. The only way to extract the key figure is to use a query as datasource (BW_QRY_ABMMIC01_0001).
In query BW_QRY_ABMMIC01_0001 we used a variable "V_CALMONTH11" based on class ZCL_BIU001_V_0CALMONTH_0031.
The class determine the month to load from current date and more or less x month(s). To know the number of months to add or removre from current date, the class read master data global filter (C_GLBFILT) on stream "STOCK_LOG":

Normally, by default the month to load in ADSO APCOMS01 is current month - 1. To load other month it's necessary to change fields "low" and / or "hight" in master data.
It's in ADSO APCOMS01 where we define by default C_SOURCE = LOGISTIC. We will use this field in filters to extract data from caclulation views to separate LOGISTIC data and WORKING CAPITAL (equal TRANSIT) data.








Load PF1 (UPIS) Data - Propagation - aDSO APCOMS02

Extraction from PF1 system table Z1K_BATCH3 (normally once a month, extraction of previous month in full mode).
Calculate the cross sytem Model S - PF1 (UPIS data) - aDSO ABCOMS03

The goal in this aDSO is to have the data considered as cross system. If a line is cross system, it means we need to take the cost unit not from the source (PF1) but from the cross system source system, so WP1 (ODS_PCP4).
In transformation before the infosource, we will extract from aDSO APCOMS02 the data where the C_BATCH2 is considered like cross system (C_FLGCROS = X), and where the module function Z_CROSS_SYSTEM_MATERIAL find a cross system material in result.
At this step, we have only data considered as cross system, we do a lookup in ods ODS_PCP4 with links:
| WP1 data (ods_pcp4) | PF1 data (APCOMS02) | |
| material | = | material cross system |
| plant | = | manufacturing plant cross system |
| costing date | = | first day calmonth UPIS |
| cost var | <> | ZIP |
If we found a correspondance in ODS_PCP4 we can continue, if not, the records will be not loaded in this aDSO.
In the second transformation (after the infosource) we will convert in EUR the cost units WP1 collected from ODS_PCP4. And then we can calculate the Integrated Margin (CP, CNP, AMO, Duty and Freight):
IM = Sotck from PF1 * cost unit from WP1.
Example File.
Calculate the cross sytem Model S - WP1 (Logistic and Transit data) - aDSO ABCOMS04

First, we need to define the records from APCOMS04 considered like cross system in function of C_BATCH2 (C_FLGCROS = X) and where the module function Z_CROSS_SYSTEM_MATERIAL return a valid result.
When we have a valid material cross system (PF1) we do a lookup in aDSO ABCOMS2 with links:
| PF1 data (ABCOMS02) | WP1 data (APCOMS04) | |
| material | = | material cross system |
| PLANT | = | manufacturing plant cross system |
| calmonth | = | Calmonth - 1 |
To take the stock and cost unit KPI from ABCOMS02 aggregated by Material, Plant and Month (if we don't find result, we don't load the record in ABCOMS04).
When it's done, we calculate the Integrated Margin KPI from PF1:
PF1_CP_IM = EUR_CONSO_VAR/ TOTQTY
PF1_CNP_IM =EUR_CONSO_FIX/TOTQTY
PF1_AMO_IM =eur_CONSO_DEP/ TOTQTY
PF1_FREIGHT_IM =EUR_DUTY / TOTQTY
PF1_DUTY_IM =EUR_TST/ TOTQTY
Then, we can take the sotck from WP1 associated (with help of material cross system and manufacturing plant associated) to calculate the IM valuation:
Sotck from WP1 * IM from PF1.
Load and calculate key figuress for Model S - WP1 (Logistic and Transit data) - ADSO ABCOMS01.
Last step is to caculate all key figures for Model S report, It's done in transformation TRSF: APCOMS04 -> ADSO ABCOMS01.
In start routine, we delete some lines according to their company code or plant. Company code and plant to exclude are defined in master data global filter (C_GLBFILT) in stream "MODEL S" and rule "PLANT" or "COMPCDE":
During the loading, the transformation will convert the unit and currencies key figures with help of conversion type UOM_MATNR2 (units) and CTK_MODELS (currencies).
The important point here is to normally, the cross system data (calculated in ABCOMS04) will be not loaded in this aDSO.

Transaction ZBW_SHIFT_MONTH (linked with program ZBW_LOAD_FLAT_FILE_MODELS):

Shifts of month will be used in calculations views CV_FMCO_CO_MS_DBFIGL13_REFMONTH and CV_FMCO_CO_MS_APCOMS01_REFMONTH.
They are used to manage some exceptions when we define the month on which we will read the data to retrieve the data Transit and Logistic.
Flat file template (xls format):

Data in production:

At least Source system, GBU, shift of month Logistic and shift of month Transit are mandatory.
Procedure to use the transaction:
Mains data sources:
Logistic data: ADSO ABMMIC01 - "Material stock".
Transit data: DBFIGL13 - "IM from FIGL: Line Items for G/L Acct (S) - Rhodia Level 2".
Integrated Margin data: ODS_PCP4 - "CCR: Integrated margin".
BW_QRY_ABMMIC01_0001 - BW - Material Stock for extract model S (Core Query)
BW_QRY_CPCOMS01_0001 - Stock margin elimination report (Core Query)
BW_QRY_CPCOMS01_0002 - Stock Margin Elimination report 2 (Core Query)
| Process Chain - Technical Name | Process Chain - Description | Starter | Comment |
|---|---|---|---|
| PC_CO_MS_0006 | MS: TD - M - Model S - Global | Event: Z_EVT_PC_CO_MS_0006 triggered in process chain PC_INT_MARGIN | Starts arround 3:30 AM during working day D+3. |
| PC_CO_MS_0008 | MS: TD - M - Cross System Material | External start only (via API or metachain) Triggered in PC_CO_MS_0006 | |
| PC_CO_MS_0002 | MS: TD - M - Solvay UPIS Stock Valuation (Propagation Layer) | External start only (via API or metachain) Triggered in PC_CO_MS_0006 | |
| PC_CO_MS_0007 | MS: TD - M - Solvay UPIS (Business Layer) | External start only (via API or metachain) Triggered in PC_CO_MS_0006 | |
| PC_CO_MS_0003 | MS: TD - M - Model S Propagation APCOMS01 | External start only (via API or metachain) | Load ADSO APCOMS01 with query BW_QRY_ABMMIC01_0001 in source. |
| PC_CO_MS_0004 | MS: TD - M - Model S Propagation - APCOMS04 | External start only (via API or metachain) Triggered in PC_CO_MS_0006 | |
| PC_CO_MS_0005 | MS: TD - M - Model S Businesss | External start only (via API or metachain) Triggered in PC_CO_MS_0006 | Trigerred when PC_CO_MS_0005 AND PC_CO_MS_0007 are finished. |
| PC_CO_MS_0001 | MS: TD - D - Shift of Months: Models S (Propagation Layer) | External start only (via API or metachain) | |
| PC_CO_MS_0009 | MS - TD - M - Solvay UPIS - Monthly | Starts at 7:00 AM , 2:00 PM and 4:00 PM (french time) during working day D+3. The starter in defined at 7:00 AM and the job is job scheduling is repeated at 2:00 PM (see more details here). One more load added to start at 4:00 PM | Independant Process Chain, not in PC_CO_MS_0006. Used to take new lines cretaed in PF1 during the morning of working day D+3. |
PC_CO_MS_0006 - MS: TD - M - Model S - Global:
The loading is done after the process chain PC_INT_MARGIN - "Integrated Margin 2" normally once a month in the 3th workday.
if possible, give some information on average process chain duration, amount of data loaded and total data volume example: daily process chain loaded in 30 min, weekly chain loaded in 1h15, with around 2k to 10k lines in DELTA mode for a total of 10M lines in cube. The purpose is to give a general overview of the volume of data managed y the application
The process chain PC_CO_MS_0006 tooks 2 hours (including one hour and a half to charge the adso APCOMS01 (extraction of stock with query from adso ABMMIC01).
She starts arround 3:30 am and finish at 5:30 am (French time)