Thứ Sáu, 17 tháng 11, 2017

An SAP Workload Analysis Guideline ST03N-ST03G-ST06..

An SAP Workload Analysis Guideline…




Time
Guideline Value
Problem Indicated
Seeing
Dispatcher wait time
(Wait time)
<10% of response time
<50ms
General performance problem with many possible causes

Load time
(Load + Gen time)
<50ms
Program buffer too small or CPU bottleneck
C2 – Monitoring Hardware, DB, SAP Basis
Roll-in time, Roll-out time
<20ms
SAP Roll buffer or SAP extended memory too small or CPU bottleneck
C2 – Monitoring Hardware, DB, SAP Basis
C8 – Memory Management
Roll wait time
<200ms
Problem with frontend communication (together with higher GUI time), or with communication with external component
C4 – ABAP and Java Programs Performance
C6 – Interface
C7 – SAP GUI and Internet Connect
GUI time
<200ms
Problem with frontend communication (together with higher Roll wait time)
C4 –  ABAP and Java Programs Performance
C6 – Interface
C7 – SAP GUI and Internet Connect
Enqueue time
<5ms
Problem with Enqueue or Network problems
C4 –  ABAP and Java Programs Performance
Processing time
CPU time
Processing time
<2 x CPU time
CPU bottleneck or communication problems
C5 – Workload Distribution
Database time
(DB Request time)
<40% of response time minus Dispatcher wait time;
Guideline value: 200ms -600ms
Database problem, Network problem, CPU bottleneck
C3 – Workload Analysis
C4 – ABAP and Java Programs Performance
C11 – Optimizing SQL Statements
Time per DB request
<5ms
Database problem
C3 – Workload Analysis
C4 – ABAP and Java Programs Performance
C11 – Optimizing SQL Statements
Direct reads
<2ms
Database problem
C3 – Workload Analysis
C4 – ABAP and Java Programs Performance
C11 – Optimizing SQL Statements
Sequential reads
<10ms
Database problem
C3 – Workload Analysis
C4 – ABAP and Java Programs Performance
C11 – Optimizing SQL Statements
Changes and Commits
<25ms
Database problem
C3 – Workload Analysis
C4 – ABAP and Java Programs Performance
C11 – Optimizing SQL Statements

Thứ Tư, 15 tháng 11, 2017

Incorrect Instance ID in ST03 - Load from External Systems

SAP ERP 6
Sau nhiều năm vận hành, bạn có thể thay đổi Hardware, OS, DB, System copy, Servername, thêm, bớt các instances... Việc này dẫn tới 1 điều rằng lúc vào ST03N và chọn Load from External Systems, bạn có thể thấy có xuất hiện 1 số Instances ID (SystemID) cũ (hiện tại không tồn tại) và được sử dụng chủ yếu bởi 1 vài background jobs (dữ liệu này cũng sẽ xuất hiện trên EarlyWatch Report, làm tăng số liệu thống kê 1 cách vô lý)

Việc này là do kiến trúc của SAP, một số Jobs lưu các Instances này (gọi pà passport) và tự động kích hoạt chạy hết mỗi lần job run

Để Fix việc này, làm theo Note sau
https://launchpad.support.sap.com/#/notes/2081755

Trong đó chủ yếu xóa dữ liệu cần thiết ở table btcjobepp

----------------------
BTW:

Theo mặc định
1. Dữ liệu ở ST03N chỉ giữ lại trong khoảng 7-4-2 theo Ngày-Tuần-Tháng

Việc này có thể điều chỉnh ở mục ...\Reorganization\Control
Dữ liệu này lưu ở DB (MONI table)

2. Dữ liệu ở STAD (1 phần của ST03N) giữ lại trong 48h.

Việc này có thể điều chỉnh ở tham số stat/max_files
Dữ liệu này gọi là Single Record, Lưu theo file ở OS. File hết hạn sẽ bị xóa, dữ liệu thống kê sẽ mang lên lưu trong DB

Các số ở đây chỉ được tối đa là 99 nhé



Thứ Sáu, 10 tháng 11, 2017

SAP ERP Interface - How to make decision

Cty bạn sử dụng SAP ERP, và rồi chắc chắn có thêm nhiều hệ thống khác phục vụ việc quản lý, kinh doanh...Và rồi nhu cầu tích hợp, trao đổi, chia sẽ dữ liệu giữa các hệ thống này xảy ra, có thể trong giai đoạn dự án hoặc thời gian sau...SAP có nhiều cách để tích hợp. Nội dung sau giúp bạn có thêm kiến thức để quyết định lựa chọn 1 solution phù hợp nhất cho việc tích hợp này

1.
Style
Description
Type
Considerations
Send IDoc to SAP via IDoc framework
“Intermediate Document”
Asynchronous
Use SAP Connector
Standard or extended (customized) formats
XML profiles
Exchange directly through SAP framework
Submit IDoc directly to SAP IDoc importer

Atom must have direct connectivity to SAP (local install)
Receive outbound IDocs from SAP
“Intermediate Document”
Asynchronous
Use SAP Connector
Standard or extended (customized) formats
XML profiles
Exchange directly through SAP framework
Receive IDocs from SAP real time/event based

Single listener process

Atom must have direct connectivity to SAP (local install)
IDoc import/export via file
Same as above but IDocs are communicated as standalone files
Asynchronous
Use file-based connector such as Disk or FTP Connector
Scheduled SAP jobs export/import files
User Defined EDI profiles (can be difficult/tedious to configure by hand)

Atom may be local or remote depending on file location
BAPI/RFM
“Business API” or “Remote-enabled Function Module”
Synchronous
Use SAP Connector
Call SAP native API functions directly
XML profiles
Function may get or send data from SAP
Can connect to BAPIs and public RFMs

It is common to create custom functions (a.k.a. “Z functions”) to augment/wrap standard functions to meet specific integration requirements

Atom must have direct connectivity to SAP (local install)
Web Services
SAP Gateway
Synchronous
HTTP Client / OData Connector
REST, OData
SAP NW Gateway Installation and Configuration (SAP)

Content development and publishing (SAP ABAP Development)

Network considerations applicable as for other webserservices
Web Services
Web service gateway
Synchronous
For SOAP, use Web Services SOAP Connector
SOAP, REST, XML-over-HTTP
For REST or XML-over-HTTP, use HTTP Client Connector
Often just exposing BAPI/RFM as web service endpoint- Synchronous request/reply
XML profiles

Atom may be local or remote depending on web service accessibility

SOAMANAGER configuration (SAP)
Database
Direct integration to the SAP database.
N/A
This approach should not be used.

2.
SAP Interface
Sync. 
Async. 
Guaranteed Delivery
Reusable
Large Amount of Data
Scheduling 
Transactionality
Security
IDOC (inbound/outbound)
n/a
YES
YES
YES
YES
YES
YES
YES
ALE
n/a
YES
YES
YES
YES
YES
YES
YES
RFC/BAPI
YES
A
YES
YES
NO
n/a
YES
YES
Web Service with RM
YES
A
YES
YES
NO
n/a
YES
YES
Web Service w/o RM
YES
A
NO
YES
NO
n/a
NO
YES
File (FTP)
n/a
YES
NO
NO
YES
YES
NO
NO
SFTP
n/a
YES
NO
NO
YES
YES
NO
YES