Thứ Ba, 5 tháng 12, 2017

RSBCS_REORG - Reorganization of Business Communication Services data

Nếu bạn có sử dụng SAP Component BC-SRV-COM Business Communication Services (SAPoffice, SAPconnect, GOS, Email...) thì theo thời gian bạn cũng sẽ phải cần 1 tool nào đó để làm cái việc housekeeping, giúp bạn control được size của các tables liên quan.

SAP nói về vấn đề này nhiều, tuy nhiên phụ thuộc phiên bản của ứng dụng và thông tin khá rời rạc, chủ yếu làm theo SAP Note sau và những cái có liên quan được nêu ra:

1641830 - Reorganization of Business Communication Services data (RSBCS_REORG)

Trong đó, nội dung chủ yếu là:


  1. Send request not yet released. Use the report RSBCS_SREQ_RELEASE (see SAP Note 1238740) to release these send requests
  2. Link to Application. You can use the report RSBCS_SREQ_UNLINK (see SAP Note 1276402) to delete these links
  3. Expiration date not yet reached. Use the report RSBCS_SREQ_EXPIRE (see SAP Note 1478279) to set these send requests to be expired
  4. Send request is in SAPconnect queue. Use the report RSBCS_DELETE_QUEUE (see SAP Note 1244680) to delete these send requests from the SAPconnect queue
  5. Document is in a folder. Depending on which folder these documents are in your must run the appropriate report. If a document is in a Users folder then run report RSSO_DELETE_PRIVATE (see SAP Note 922671). If the documents are in a Shared folder then run RSSOTRCL. If the documents are in the Hidden folder then run RSSODFRE (see SAP Note 567975)
Please be aware that RSBCS_REORG also deletes Inbound Send requests from trasnaction SOIN also.

Làm theo các bước trên, các tables bị xóa dữ liệu, tuy nhiên vẫn còn 1 số dữ liệu không xóa được, chưa hiểu tại sao??!!
Các message của SAP show ra thì tường minh, nhưng trong trường hợp cụ thể sau thì không xóa được các dữ liệu này, đặc biệt trong tcode SOIN
Mất nhiều thời gian cho vấn đề này rồi, sẽ tiếp tục tìm hiểu thêm vấn đề này sau..


Tất cả các vấn đề trên có gói gọn trong tcode SOSA, nhưng không thấy SAP Note nào đề cập tcode này



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