Skip to content

Instantly share code, notes, and snippets.

@miguelcperez
Created April 19, 2019 05:00
Show Gist options
  • Save miguelcperez/1a361ea99455471d3b8f6e0c1f8e468c to your computer and use it in GitHub Desktop.
Save miguelcperez/1a361ea99455471d3b8f6e0c1f8e468c to your computer and use it in GitHub Desktop.
send multidependence values sapui5
/*flavor.Bottler.ExchangeRateCountrySaleNWSP = sap.ui.getCore().byId('input_CTCS1' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.PTCUnitLocal = sap.ui.getCore().byId('input_UPTC' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.PTCUnitUSD = sap.ui.getCore().byId('input_UPTC' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.PTRBoxLocal = sap.ui.getCore().byId('input_BPTR' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.PTRBoxUSD = sap.ui.getCore().byId('input_BPTR' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.NWSPLocal = sap.ui.getCore().byId('input_BNWSP' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.NWSPUSD = sap.ui.getCore().byId('input_BNWSP' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.ExchangeRateCountryProduction = sap.ui.getCore().byId('input_CTCP' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// no concentred
flavor.Bottler.Intensive = sap.ui.getCore().byId('input_Conc' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.IntensiveUSD = sap.ui.getCore().byId('input_Conc' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 othermatherial
flavor.Bottler.OtherMaterials = sap.ui.getCore().byId('input_OtMa' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.OtherMaterialsUSD = sap.ui.getCore().byId('input_OtMa' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 transformationcost
flavor.Bottler.TransformationCost = sap.ui.getCore().byId('input_TrCo' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.TransformationCostUSD = sap.ui.getCore().byId('input_TrCo' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 TotalProductCost
flavor.Bottler.TotalProductCost = sap.ui.getCore().byId('input_PrTC' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.TotalProductCostUSD = sap.ui.getCore().byId('input_PrTC' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.ExchangeRateCountrySaleLogis = sap.ui.getCore().byId('input_CTCS2' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 LogisticalImportCost
flavor.Bottler.LogisticalImportCost = sap.ui.getCore().byId('input_ImLC' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.LogisticalImportCostUSD = sap.ui.getCore().byId('input_ImLC' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 Duty
flavor.Bottler.Duty = sap.ui.getCore().byId('input_Duty' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.DutyUSD = sap.ui.getCore().byId('input_Duty' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 OtherDistributionCosts
flavor.Bottler.OtherDistributionCosts = sap.ui.getCore().byId('input_OCD' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.OtherDistributionCostsUSD = sap.ui.getCore().byId('input_OCD' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 TotalLogisticCost
flavor.Bottler.TotalLogisticCost = sap.ui.getCore().byId('input_TLC' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.TotalLogisticCostUSD = sap.ui.getCore().byId('input_TLC' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.ExchangeRateCountrySaleOther = sap.ui.getCore().byId('input_CTCS3' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 CDExports
flavor.Bottler.CDExports = sap.ui.getCore().byId('input_CDEx' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.CDExportsUSD = sap.ui.getCore().byId('input_CDEx' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 Depreciation
flavor.Bottler.Depreciation = sap.ui.getCore().byId('input_Depr' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.DepreciationUSD = sap.ui.getCore().byId('input_Depr' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
// 1 TotalOtherCosts
flavor.Bottler.TotalOtherCosts = sap.ui.getCore().byId('input_OCT' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.TotalOtherCostsUSD = sap.ui.getCore().byId('input_OCT' + country.CountryCode + '_' + flavor.FlavorCode + '_calc').getValue();
flavor.Bottler.Operator = sap.ui.getCore().byId('input_MaOp' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.Franchise = sap.ui.getCore().byId('input_MaFr' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.Plant = sap.ui.getCore().byId('input_MaPl' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.ShoppingHub = sap.ui.getCore().byId('input_MaHS' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.FromPlantToBeliv = sap.ui.getCore().byId('input_TPFPTB' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.FromPlantToOperation = sap.ui.getCore().byId('input_TPFPTO' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.FromBelivToOperation = sap.ui.getCore().byId('input_TPFBTO' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
flavor.Bottler.MarginSystem = sap.ui.getCore().byId('input_TPFBTO' + country.CountryCode + '_' + flavor.FlavorCode).getValue();
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment