来自我的同事Xu Miles
Authorization Objects are business concept, they are distinguished by business scenario.
Therefore, there might be a lot of Authorization Objects using the same Authorization Field. Such as VKORG.
In Sales Planning, there're two Authorization Objects related to Sales Area, V_VBAK_VKO and V_VBRK_VKO, they represent transaction scenario Sales Document and Billing Document repectively. If we want to extract the Sales Area master data, technically we could use any Authorization Object with Authorization Field VKORG, VTWEG, SPART.
However, considering the authorization of the business user, we need to use Authorization Object V_VBAK_VKO and V_VBRK_VKO separately when end user is planning for income sales or sales volume.
To do this, we could use additional CDS view + DCL to realize.
Example on ERG/001:
CDS: ZMX_SalesArea_DCL
DCL: ZMX_SalesArea_DCL
The logic in DCL:
@EndUserText.label: 'Auto assigned mapping role for ZMX_SalesArea_DCL'
@MappingRole: true
define role ZMX_SalesArea_DCL {
grant select on ZMX_SalesArea_DCL
where (SalesPlanPurpose = '0' and (SalesOrganization, DistributionChannel, Division) =
aspect pfcg_auth (V_VBAK_VKO,
VKORG,
VTWEG,
SPART,
actvt = '03'))
OR (SalesPlanPurpose = '1' and (SalesOrganization) =
aspect pfcg_auth (V_VBRK_VKO,
VKORG,
actvt = '03'));
}
The logic in the CDS view:
define view ZMX_SalesArea_DCL
as select from
I_SalesArea
{
key SalesOrganization,
key DistributionChannel,
key Division,
'0' as SalesPlanPurpose
}
union all select from I_SalesArea
{
key SalesOrganization,
key DistributionChannel,
key Division,
'1' as SalesPlanPurpose
};
Authorization test on QW9/910
User: MILES01
Authorization:
Test Report:
REPORT mx_test_sa_dcl.
PARAMETERS:
p_purp TYPE C LENGTH 1.
DATA:
lt_tab TYPE STANDARD TABLE OF i_salesarea_dcl.
SELECT * FROM i_salesarea_dcl INTO TABLE @lt_tab
WHERE salesplanpurpose = @p_purp.
LOOP AT lt_tab ASSIGNING FIELD-SYMBOL(<fs_row>).
WRITE:/ <fs_row>-salesorganization, <fs_row>-distributionchannel, <fs_row>-division, <fs_row>-salesplanpurpose.
ENDLOOP.
WRITE:/ 'Finished.'.
The logic flow is that firstly we use SalesPlanUUID to get SalesPlanPurpose, then with SalesPlanPurpose we could get the Sales Area master data via the corresponding Authorization Objects.
SalesPlanPurpose: 0 (Incoming sales)
SalesPlanPurpose: 1(Sales Volume)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关推荐
但是,通过SAP HANA平台的创新,SAP S / 4HANA嵌入式分析使业务用户,业务分析人员和管理人员能够对实时交易数据执行实时分析。 本文回顾了SAP S / 4HANA嵌入式分析的技术架构和关键组件。 本文回顾了SAP S / 4HANA...
1单元1:使用Activate方法学习SAP S/4HANA2课程:介绍SAP S/4HANA7课程:概述转换流程14单元2:转换到SAP S/4HANA的准备15课程:解释转换流程23课程:分析每个系统的转换流程入手点34课程:准备转换成SAP S/4HANA43课程:...
1Unit1:SAP S/4HANA Finance-Introduction and Overview 2Lesson:Positioning SAP S/4HANA Finance 10Lesson:SAP Fiori 16Unit 2:Business Processes in the SAP S/4HANA Finance Solution 17Lesson:Managing ...
1单元1:SAP S/4HANA概览2课程:介绍SAP HANA和SAP S/4HANA9课程:介绍SAP Fiori14单元2:S/4HANA中的财务会计(FI)概览15课程:概述SAP S/4HANA中的财务会计(FI)组件23单元3:总账(G/L)会计24课程:概述会计核算中的组织...
introduce the Starter, Quality, and Production Systems of the SAP S/4 HANA Cloud solution
1单元1:SAP S/4HANA的财务概览2课程:介绍SAP HANA与SAP S/4HANA的用途和功能11课程:说明会计的新体系结构16课程:介绍SAP Fiori的用途和功能21课程:概述财务向SAP S/4HANA Finance的迁移29单元2:总账会计30课程:管理...
SAP S/4 HANA SD模块官方教材 S4600_EN_Col08, 包括Sales Order, Delivery, Billing , Pricing
SAP S/4 HANA Migration
SAP S/4HANA and SAP S/4HANA Cloud Extensibility for Customers and Partners September 2018 The experience gained from various customer and partner projects has made one thing very clear: Most SAP S/4...
SAP日前發佈新一代資料倉儲應用SAP BW/4HANA,以協助企業實現即時的數位化營運。除了支援傳統的企業本地部署外,這款新的解決方案將透過Amazon Web Services(AWS)和SAP HANA Enterprise Cloud(SAP HANA企業雲)雲...
获取SAP S/4HANA概览21单元2:管理会计中的组织结构和主数据22课程:了解SAP S/4HANA中管理会计的新体系结构27课程:管理组织结构48课程:介绍SAP Fiori59课程:分析报表选项64课程:了解S/4HANA Finance中成本要素的新...
对于SAP S/4HANA On-Premise版本来说:它最适合需要全部功能和高度灵活定制、开发量较大、管理较为精细的企业。通常情况下,这些企业都是规模较大的企业,它们拥有非常完善的流程,业务也在快速发展,因此系统稳定是...
SAP S/4HANA 项目控制中的业务流程
1单元1:SAP S/4HANA概览2课程:介绍SAP HANA和SAP S/4HANA9课程:介绍SAP Fiori14单元2:核心财务会计(FI)配置16课程:管理财务会计(FI)中的组织单位22课程:检查总账(G/L)会计中的基本设置25课程:概述变式原则26课程:...
BW/4HANA 2.0官方指南,讲解非常详细SAP BW∕4HANA is a data warehouse solution with agile and flexible data modeling, SAP HANA-optimized processes and state of the art user interfaces and which is ...
SAP 将在 2027 年截止日期前逐步淘汰对 SAP ECC 的支持,迫使客户采用 SAP S/4HANA,从而进一步加快了实现改进用户体验、在 HANA 数据库的内存功能、灵活的 API 和实时分析方面获得竞争优势的旅程。 SAP 安装基础...
All new functions, features, and innovations are accessible in the SAP Fiori launchpad. Using the launchpad, you can call up all apps for which you have been granted access.
SAP course material - S4200 - Business Processes in SAP S/4HANA Manufacturing. if you need certification on S/4 HANA this is one of the training materials
Discover Phase for Customers: SAP S/4HANA Cloud Experience Trial. Transform from on-premise to cloud solution.