Posts

Showing posts from October, 2019

Message Prioritization

In layman terms, message prioritization = queue prioritization, & this can be achieved by setting up a filter via SXMB_ADM, registering the queues in SMQR. Following links will help you to perform this - https://archive.sap.com/kmuuid2/59e837d3-0201-0010-c096-dc1869733413/How%20To%20Prioritize%20Exchange%20Infrastructure%20Messages%20on%20the%20Integration%20Server%20(NW2004).pdf https://help.sap.com/doc/saphelp_nwpi71/7.1/en-US/7b/94553b4d53273de10000000a114084/content.htm?loaded_from_frameset=true AMOR FATI - LOVE OF FATE

IDOC Packaging

Image
IDOC PACKAGING / COLLECTION In some scnearios, we have to collect the idocs and dispatch them collectively. For ex: 1. Collect of Purchase Orders and create a file at EOD everyday 2. Create a file with a maximum of 100 Idocs/records only. So, set the package size as 100 here. This can be achieved by IDOC sender adapter. You need to define a package size in the adapter. The package size defined here will be used to create IDoc packages in PI. Some configuration needs to be done in ECC to work this - In the partner profile of the Idoc, Select the collect idocs options and also proivde the package size. Report RSEOUT00 This report can be executed or scheduled as a background job to send the IDocs. Sample Payload in SXMB_MONI Challenges - Ex. In a package of say 500 IDocs, if the field of an IDoc has wrong value which leads to mapping error in PI. The idocs may get stuck in queues. So, we need to reprocess the idoc package from E...

BAPI

WHAT IS A BAPI & BAPI WRAPPER ? BAPI is a function module which is remotely enabled & does not raise any exceptions. It is defined as business API’s for SAP objects. They play an important role in the technical integration & in the exchange of business data between SAP components & between SAP & non SAP components. A BAPI wrapper is a Remote enabled Function Module in a backend system, that has a specific signature, so that it can be used in a mobile scenario. Typically, it calls a BAPI in the backend system, so it 'wraps' a BAPI, hence the name. As long as a Remote enabled FM follows the standard signature of a BAPI wrapper, it can be called a BAPI wrapper even if it doesnt actually call one. Conceptually, a BAPI wrapper has the role of a private method of a business object (SyncBO) and resides in a backend system. Let's say you want to mobilize a Sales Order scenario. You will need a set of BAPI wrappers (GETLIST, GETDETAIL ...

IDOC Search

Searching IDOC Content WE09  Search for IDocs by Content, searches in business database WE10 Search for IDoc in Archive In WE09, in the " criteria for search in data records " -  enter the segment name, field name and the value you want to search. It will list out all the idocs with the specific criteria you mentioned. AMOR FATI - LOVE OF FATE

SAP Batch Jobs

We can only run BTCTRNS1 if you do upgrades of your system. Run the program BTCTRNS1 in SE38. This resets the status of the jobs leaving RDDIMPDP unaffected. Released jobs will have a suspended status or cancelled for upgrade. BTCTRNS1 alters the status of jobs, if they are active and if it is critical to your system you should decide when to run the program. Make sure your system is ready for this. If they do not give any impact to your system then you can run the program. RDDIMPDP job that handles transport requests is unaffected when running the program. Basically,  BTCTRNS1 is for suspending your jobs and BTCTRNS2 is for resuming the suspended jobs. AMOR FATI - LOVE OF FATE

SM12

SM12 - LOCK MONITORING The SAP System is equipped with a special  lock mechanism  that synchronizes access to data on the database.  The purpose of the lock mechanism is to prevent  two transactions  from changing the same data on the database  simultaneously .  Lock entries are usually set and deleted  automatically  when user programs access a data object & release it again.  1.  You can use  SM12  to check and delete lock entries. 2.  In  SM12 , check any lock entry  older  >  2 days . If any outdated entry found, check the corresponding user is user  online / offline  in  AL08  or  SM04  (you can get the transaction code that been use by the user). Get the user contact from  SU01  and inform about the lock else if the user is  offline , release the table from lock by  deleting  the lock. Important profile pa...

BPM Introduction

Business Process Management deals with  cross component BPM . This includes SAP workflow in SAP backend and processing of message on Integration Server. Cross Component Business Process Management provides SAP NetWeaver Process Integration with functions for stateful message processing, that is, the status of an integration process is persisted on the Integration Server.  This means that an integration process can, for example, wait infinitely until further messages are received or until a particular deadline is reached.  Moreover, it is possible to process messages further within an integration process. There are lot of other scenarios when we need to use BPM.   i.e.   Splitting of messages, Merging of messages, Multicast a message to various systems, Send an Alert, Make the asynchronous call into the synchronous,etc. SAP PI BPM is used for cross-system integration and managing a higher level business process between disparate systems....

PROXIES

Image
We can integrate SAP System with PI with 3 different adapters - IDOC RFC PROXY Proxy communication always by passes the Adapter Engine and will directly interact with the application system and Integration engine. So it will give us better performance. Proxies communicate with the XI server by means of native SOAP calls over HTTP. Easy to handle messages with ABAP programming. Proxy is good for large volumes of data. we can catch and persist the errors ( both system &  application   fault )  which was generated by Proxy setting. 2 types of proxies available - Java Proxies: -   Java proxies are used when JAVA applications needs to send or receive messages with other applications. JAVA proxies are generated from the WSDL description  of the interface  in the Integration Repository, and the result is a .jar file containing generated java classes corresponding to the integration objects.  ABAP ...

PI TO PO MIGRATION

Image
We cannot upgrade from dual stack PI to single stack PO. All integration content has to be moved/redesigned and tested Connectivity Communication Channels (Replace all ABAP adapters with JAVA adapters) IDoc -> IDoc_AAE XI -> SOAP (XI 3.0) HTTP -> HTTP_AAE WS -> WS_AAE RFC Destinations Use Destinations in NWA to create HTTP and RFC connections to backends Mapping No more use of ABAP/ABAP-XSLT: Redesign in Java! Keep on using Swing Client! NWDS/Eclipse is not comfortable enough Routing Classic Routing -> Integrated Configuration (ICO) Make sure you understand the settings for Staging & Logging! Multi-Adapter Engine Usage (ICO-ICO) Usage of iFlows & Folders in NWDS/Eclipse (optional, but recommended) BPM Redesign ccBPMs: replace BPM by Adapter Modules (e.g. Async-Sync Bridge) or Collect BPMs Create BPM processes to replace ccBPM Basis CTS+ now e.g. via ABAP Stack of SAP Solution Manager User Managemen...