Examples for Offset Variables

You want to use a query to carry out a comparison of two years.
Year Comparison
You want to compare the costs of a year of your choice with the costs of the previous year.
       1.      In the Query Designer, create a new structure and add a new Selection for each year that you require.
       2.      Only use one key figure (for example revenue) in this example query. Add this key figure to the filter or add it to the selection.
       3.      Use a characteristic value variable for the characteristic Calendar Year (0CALYEAR):
Select the characteristic value variables for Calendar Year and, from the context menu (right mouse click), choose New Variables. The Variables Wizard appears.
If you always want to reference to the current year automatically, use the SAP Exit variable 0CALYEAR (or as appropriate for another time characteristic).
       4.      Move the defined characteristic value variable into the selection.
       5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
                            a.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                            b.      Enter –1 as the offset and choose OK.
       6.      Choose OK.
       7.      Enter a description.
Example
Example: Use the name of the key figure, for example, revenue, for the name and use a text variable for the name of the calendar year. See Using Text Variables.
When creating a new text variable, enter Replacement Path as the processing type, and choose calendar year 0CALYEAR as the characteristic with display as key.
       8.      Create a second selection with the same characteristic value variable and do not set an offset here.
Also use a text variable in the description in this case.
       9.      Move the required characteristic into the rows.
   10.      Save the query.
After execution, the query should appear as follows:
Variable screen entry: 2002 (or no entry when using the SAP Exit Variable).
Year Comparison
A characteristic
Revenue 2001
Revenue 2002
Value 1
100.000
 90.000
Value 2
200.000
180.000
Value 3
300.000
400.000
Comparison with Cumulative Previous Year Period
For example: You want to compare the periods 1-8 of a particular year with the same periods for the previous year.
...
       1.      Create a new structure in the Query Designer and add a new Selection.
       2.      Move a key figure, for example, Revenue, into the selection.
       3.      Use a characteristic value variable for the characteristic Fiscal Year/Period (0FISCPER):
Select the characteristic value variables for Fiscal Year/Period and from the context menu, choose New Variable. The Variables Wizard appears.
Use the SAP Exit variable Current Fiscal Year/Period (0FPER) if you always want to reference to the current year.  If you set the variable as entry-ready in the Variable Editor, after executing the query, the variable screen then appears with which you can change the default values were necessary.
       4.      Move the characteristic value variable, such as OFPER, into the selection.
       5.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
       6.      Under Selection, choose Value Area and choose the tab page Variables.
       7.      Add the characteristic value variable, for example 0FPER, to the selection once again for the second value of the interval.
       8.      Select the characteristic value variable and from the context menu, choose Enter Variable Offsets.
                            a.      As an offset, enter -3 as the from value and 0 as the to value. Choose OK.
                            b.      Choose OK.
       9.      Enter a description, such as Revenue for current year.
   10.      Choose OK.
   11.      Select the selection and from the context menu, choose Copy and then Paste.
   12.      Now select the second selection and from the context menu, choose Edit.
   13.      Select the characteristic value variable and from the context menu (right mouse click), choose Restrict.
   14.      Select the characteristic value variable again and from the context menu (the right hand button), choose Enter Variable Offsets.
                            a.      As an offset, enter -15 as the from value and -12 as the to value. Choose OK.
                            b.      Choose OK.
   15.      Enter a description, for example Revenue for previous year.
Also use a text variable in the description in this case.
   16.      Choose OK.
   17.      Move the required characteristic into the rows.
   18.      Save the query.
After execution, the query should appear as follows:
Variable screen entry: 01. 2002 to 08. 2002
Comparison with Cumulative Previous Year Period
A characteristic
Revenue 01. – 08. 2001
Revenue 01. – 08. 2002
Value 1
100.000
 90.000
Value 2
200.000
180.000
Value 3
300.000
400.000
...
...
...
Note
Two text variables replaced with characteristic values were used for the descriptions here. One is filled with the from-value for the column with an offset of 0 and a length of 3, the other filled with the to-value with an offset of 0 and a length of 7. You can find additional information under Example for Variable Replacement.
Comparison of Cumulated Values for Two Years
You may want to compare the cumulated values up to the current period of the current year with those of the previous year.
For this example, use the variable 0FPER ( current fiscal year period) and the variable 0P_FPER ( your chosen fiscal year period). You use these two variables to set the interval limits.
...
       1.      In the Query Designer, create a structure with two selections:
¡        1. selection: Cumulative Amount for current year
¡        2. selection: Cumulative amount for previous year
       2.      With the first selection (cumulative amount for current year) , move the time characteristic 0FISCPER into the selection and select it.
       3.      Choose Restrict from the context menu (right mouse click) .
       4.      Choose Value Area between as the selection and go to the tab page Variables.
       5.      Double click to choose the variable 0P_FPER as the from value and variable 0FPER as the to value. The result is an interval from the chosen period to the current period.
       6.      Define the second selection (cumulative amount for previous year) and proceed as for the first selection.
¡        Add the variable 0P_FPER as the from value and variable 0FPER as the to value here.
¡        Set an offset of –12 for both the from and the to values:
Select the interval and from the context menu (right click), choose Enter Variable Offsets. Enter –12 for each.
The result is an interval that has been moved 12 periods ahead.
       7.      Add the key figures and additional characteristics for the query.
After executing the query, you get a variable screen for the variable 0P_FPER. You need to enter the start period in the current fiscal year.
Note
You can also suppress this entry by deactivating the indicator Entry-ready in the Variable Editor for the variable 0P_FPER and entering a default value (for example, 001.2001 for 2001). You only have to change this value once per year.
You have now defined a query that compares the cumulative values for two years.
Background documentation
The variables with SAP Exit delivered by SAP have the following behaviors:
Variable 0FPER ( current fiscal year period): Displays the values of the current fiscal year period.
Variable 0P_FPER ( any fiscal year period): Displays the values of any fiscal year period. You can set the fiscal year period in the variable screen when executing the query in any way you require.
Variable 0FYTCFP ( fiscal year up to current fiscal year period): Displays the values of the first period up to the current period of the current fiscal year.
Variable 0FYTLFP ( fiscal year up to previous fiscal year period): Displays the values of the first period up to the previous period (current period –1).
You need to use the variables 0FPER and 0P_FPER in the above example for the comparison of cumulative values for two years.  When using the variables 0FYTCFP and 0FYTLFP, only values for one month are displayed for year transitions with an offset of –12.
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: Azure Kinect是一个深度摄像头和传感器系统,可以用于进行人体骨架追踪、人脸识别、手势识别等应用。同时,Unity是一种游戏引擎,可以用于创建各种虚拟现实和增强现实应用。Azure Kinect Examples for Unity 1.16提供了一系列使用Azure Kinect和Unity的示例代码和项目,以帮助开发人员快速上手使用这两个工具进行开发。 这些示例涵盖了不同的应用场景,可以帮助开发人员理解如何使用Azure Kinect和Unity来实现各种功能。例如,其中一些示例演示了如何使用Azure Kinect进行骨架追踪,将人体的骨骼信息实时渲染到Unity中。这对于开发虚拟现实游戏或身体交互应用非常有用。 此外,Azure Kinect Examples for Unity 1.16还提供了一些示例,展示了如何使用Azure Kinect进行人脸识别和表情识别。开发人员可以学习如何利用Azure Kinect的传感器捕捉人脸信息,并通过Unity实时分析和渲染这些信息。 还有其他一些示例演示了如何使用Azure Kinect进行手势识别,并在Unity中实时响应手势。这些示例可以用于开发手势控制的交互应用或游戏。 总之,Azure Kinect Examples for Unity 1.16提供了丰富的示例代码和项目,帮助开发人员学习和使用Azure Kinect和Unity实现各种应用。通过这些示例,开发人员可以快速掌握Azure Kinect和Unity的使用方法,并在其基础上进行二次开发和创新。 ### 回答2: Azure Kinect是由微软开发的一种深度相机,可用于进行精确的人体姿势跟踪和物体识别。Unity是一种流行的游戏开发引擎,提供强大的3D渲染和开发工具。Azure Kinect for Unity 1.16是为了将Azure Kinect与Unity引擎集成而开发的插件。 Azure Kinect for Unity 1.16提供了许多示例,以帮助开发者了解如何在Unity中使用Azure Kinect。以下是一些示例的介绍: 1. 相机控制:这个示例演示了如何使用Azure Kinect的相机进行场景导航和观察控制。开发者可以根据相机的位置和姿势调整Unity场景的视角。 2. 人体跟踪:这个示例展示了如何使用Azure Kinect进行人体骨骼追踪。开发者可以通过人体骨骼数据来实现交互式动作,例如人体控制的角色动画,或基于姿势的游戏玩法。 3. 物体识别:这个示例展示了如何使用Azure Kinect进行物体识别。开发者可以将Azure Kinect对物体的检测和识别功能与Unity的虚拟现实场景结合起来,实现增强现实应用或虚拟物体交互。 4. 点云重建:这个示例演示了如何利用Azure Kinect获取场景的深度和彩色信息,并在Unity中将其重建为点云模型。这为开发者提供了处理真实场景数据的能力,例如建筑测量、虚拟景观设计等。 总之,Azure Kinect for Unity 1.16提供了丰富的示例,帮助开发者利用Azure Kinect的强大功能构建创新的虚拟现实和增强现实应用。无论是人体跟踪、物体识别、相机控制还是点云重建,开发者可以根据自己的需求选择并应用这些示例来实现独特的功能和体验。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值