SAP ลักษณะ BW และตัวเลขสำคัญ
⚡ สรุปอย่างชาญฉลาด
Characteristics and key figures in SAP BW define the structure of every query, where characteristics describe business dimensions and key figures hold the measurable values that formulas, calculated key figures, and restricted key figures refine for reporting.
What Are Characteristics and Key Figures in SAP บีดับบลิว?
In SAP BW, a query is built from characteristics and key figures. ลักษณะ describe the business dimensions of the data, such as customer, product, or fiscal period. ตัวเลขที่สำคัญ hold the measurable values, such as revenue, quantity, or cost.
The settings below control how characteristics and key figures are displayed and calculated, and how formulas, calculated key figures, and restricted key figures refine the results.
การตั้งค่าลักษณะ – ชื่อที่แสดง
โดยค่าเริ่มต้น เมื่อเพิ่มคุณลักษณะลงในแบบสอบถาม ระบบจะแสดงคำอธิบายที่ระบุไว้ใน SAP BW. It is possible to replace this with customized text as follows:
- คลิกที่คุณสมบัติ
- Select the General tab.
- ป้อน Descriptไอออน
การตั้งค่าลักษณะ – คุณสมบัติการแสดงผล
- เลือกแท็บ Display ของหน้าต่างคุณสมบัติของคุณสมบัติที่เลือก
- The “Display as” option is used to display either only the Key, only the Text, or both Key and Text.
- If a characteristic has two or more of Short / Medium / Long Text populated, “Text View” is used to display the corresponding text.
- It is possible to sort data ascending or descending either by the characteristic or any of its attributes.
- The “Result Rows” option is used to show or hide the sub-total for the underlying characteristic.
การตั้งค่าลักษณะ – แสดงบันทึก
The display option is used to define what data is viewed by the user during data selection (in filters) and after report execution.
- เลือกแท็บขั้นสูงของหน้าต่างคุณสมบัติของคุณสมบัติที่เลือก
- ประเภทการเข้าถึงสำหรับค่าผลลัพธ์ เลือกค่าใดค่าหนึ่งเหล่านี้
- “Posted values” shows only records that have some transactions associated with them.
- “Master Data” displays all master data records irrespective of whether a transaction exists for them. It is ineffective if used with zero suppression.
- การเลือกค่าตัวกรอง เลือกค่าใดค่าหนึ่งเหล่านี้
- Only Posted Values for Navigation: the system displays only posted values from the current navigational state.
- Only Values in InfoProvider: the system displays only values contained in the InfoProvider.
- Values in Master Data Table: faster, but may result in zero records matching the selection criteria.
การตั้งค่ารูปหลัก – ชื่อที่แสดง
ตามค่าเริ่มต้น เมื่อมีการเพิ่มรูปหลักลงในแบบสอบถาม จะแสดงคำอธิบายที่ระบุไว้ SAP BW. It is possible to replace this with customized text as follows:
- คลิกที่คุณสมบัติ
- Select the General tab.
- ป้อน Descriptไอออน
การตั้งค่ารูปหลัก – คุณสมบัติการแสดงผล
- เลือกแท็บ Display ของหน้าต่างคุณสมบัติของ Key Figure ที่เลือก
- ซ่อน:
- The options “Always Show” and “Always Hide” are self-explanatory.
- “Hide (Can be Shown)” keeps a key figure hidden in the default output, but the user can later display it using filters.
- Number of Decimal places can be used to restrict the decimals displayed in the report.
- Scaling factor is used to show data in thousands, hundreds, and so on.
- The sign of key figures can be reversed if required. For example, Sales Quantity is a negative movement from the inventory perspective but positive from the sales perspective.
การตั้งค่ารูปหลัก – การแปลงสกุลเงินหรือหน่วย
BW does not allow cumulating amounts in different units, for example one rupee to one dollar or one kilogram to one yard. When data exists in multiple currencies or units, all records must be converted to a single currency or unit using Currency Translation or Unit Conversion. The translation can be dynamic (using a selection screen variable) or static (with the target currency or unit hardcoded). The advantage of doing this in SAP BW คือการนำเข้าปัจจัยการแปลงที่มีอยู่โดยตรง SAP ERP.
- เลือกแท็บ Conversion
- สำหรับการแปลงสกุลเงิน สามารถใช้ตัวเลือกนี้ได้
- สำหรับการแปลงหน่วย สามารถใช้ตัวเลือกนี้ได้
การตั้งค่ารูปหลัก – การรวมกลุ่ม
ตัวออกแบบแบบสอบถาม gives the flexibility of calculating aggregates such as average, summation, and minimum. Similar calculations can also be performed on row-level data.
- เลือกแท็บการคำนวณ
- Select from the different options available under the drop-down of “Calculate Results As”.
ตัวเลขสำคัญ – สูตรท้องถิ่น
BW allows the use of formulas on data coming from the InfoProvider to provide calculated values to the user, for example subtracค่าใช้จ่ายเริ่มต้นจาก Revenue to calculate Profit.
Steps to Create a Formula
ขั้นตอน 1)
- Right click on the structure “Key Figure”.
- Click on “New Formula”.
ขั้นตอน 2) Click on the edit button of the properties box to create or edit a local formula.
ขั้นตอน 3) ตัวดำเนินการทั่วไปบางตัวที่ใช้ใน BW ได้แก่:
- การบวก, ย่อยtraction, Multiplication, and Division.
- NODIM displays key figures without their corresponding unit.
- NOERR displays zero instead of an error message, for example zero instead of a division-by-zero error.
- %GT shows the value of a key figure as a percentage of the total value.
- In the “Detail View” box, enter the formula.
- ใช้ตัวดำเนินการจาก “Operaกล่อง “ทอร์ส”
ตัวเลขหลัก – ตัวเลขหลักจากการคำนวณ
If the same calculation is required for multiple reports, it can be mapped to the InfoProvider instead of being created individually in each query. Such a key figure is called a “Calculated Key Figure” or CKF.
Once defined, it can be dragged into a query like any other key figure. The biggest advantage of this approach is that it enables global definitions of common calculated KPIs.
ขั้นตอนในการสร้างตัวเลขหลักจากการคำนวณ:
- Navigate to the InfoProvider section.
- Right click on the Key Figures folder.
- เลือกตัวเลือก “ตัวเลขหลักที่คำนวณใหม่”
ตัวเลขหลัก – ตัวเลขหลักที่ถูกจำกัด
Restricted Key Figures (RKF) can be used to selectively apply filters to a specific KPI in the report, but not to the entire report, for example splitting sales into columns such as YTD (Year To Date) Sales and PYTD (Previous Year To Date) Sales.
ขั้นตอน 1)
- Navigate to the InfoProvider section.
- Right click on the Key Figures folder.
- เลือกตัวเลือก “รูปกุญแจที่ถูกจำกัดใหม่”
ขั้นตอน 2) Click on the edit button of the properties box to create or edit an RKF.
ขั้นตอน 3) ในหน้าจอถัดไป ต้องป้อนตัวเลขหลักอย่างน้อยหนึ่งรายการและคุณลักษณะหนึ่งรายการเพื่อสร้าง RKF ที่มีความหมาย
- The key figure which is to be restricted.
- The characteristic may be restricted by a selection screen variable to make it a “Dynamic” RKF.
- It may also be restricted by a constant, for example year = 2008. In the screenshot, version is restricted with the constant value “1”.
เช่นเดียวกับ CKF RKF ยังเป็นสากลสำหรับ InfoProvider และสามารถนำมาใช้ซ้ำในการสืบค้นหลายรายการโดยใช้ InfoProvider เดียวกัน















