Wednesday, 20 August 2014

How to schedule Basis standard jobs

This article answers the following queries :


  • How to schedule Basis standard jobs ?
  • What is the need of scheduling basis standard jobs ?
  • What are the Standard jobs that should run in an SAP system & their significance?
--------------------------------------------------------------------------------------------

How to schedule Basis standard jobs ?

Goto transaction SM36 and click on "standard jobs" pushbutton. This inturn displays standard jobs screen. Here select all the jobs and click on "default scheduling" push button to schedule all of them as per their default schedule.




Incase you would like to change the default schedule for each job, it can also be done by selecting each job and defining its start date/time and periodicity in the same screen.

What is the need of scheduling basis standard jobs ?

Standard jobs are the jobs that should run regularly in the SAP system. These jobs will perform housekeeping like deleting old spool requests (thus avoiding spool overflow), deleting old background jobs/logs/updates/batch input sessions/ABAP short dumps, collecting operating system/database level statistics (used for workload reporting)  etc

What are the Standard jobs that should run in an SAP system & their significance ?

SAP_CCMS_MONI_BATCH_DP : Internally this job runs
RSAL_BATCH_TOOL_DISPATCHING report. This job dispatches monitoring architecture methods

SAP_COLLECTOR_FOR_JOBSTATISTIC : Internally this job runs RSBPCOLL report. This job generates run time statistics for background jobs

SAP_COLLECTOR_FOR_PERFMONITOR : Internally this job runs RSCOLL00 report. This job collects data for the performance monitor

SAP_COLLECTOR_FOR_NONE_R3_STAT : Internally this job runs RSN3_STAT_COLLECTOR report. This job will collect non-abap statistic data (Distributed Statistic Records - DSR)


 SAP_REORG_ABAP_DUMPS : Internally this job runs RSSNAPDL report. This job cleans up old abap short dumps


SAP_REORG_BATCH_INPUT : Internally this job runs RSBDCREO report. This job cleans up old batch input sessions


SAP_REORG_JOBS : Internally this job runs RSBTCDEL report. This job cleans up old background jobs


SAP_REORG_JOBSTATIC :  Internally this job runs RSBPSTDE report. This job cleans up old data from the run time statistics of the jobs


SAP_REORG_ORPHANED_JOBLOGS : Internally this job runs RSTS0024 report. This job cleans up orphaned job logs. The logs that cannot be deleted by RSBTCDEL report (i.e SAP_REORG_JOBS), remains as orphans which will be deleted by this job.


SAP_REORG_SPOOL : This job internally runs RSPO0041 report. This job deletes old spool data


SAP_REORG_XMILOG : This job internally runs RSXMILOGREORG. This job deletes XMI logs


SAP_SOAP_RUNTIME_MANAGEMENT : This job internally runs RSWSMANAGEMENT report. This job does the SOAP runtime monitoring


SAP_REORG_UPDATERECORDS : This job internally runs RSM13002 report and this deletes old update records

Monday, 18 August 2014

What is NetWeaver

NetWeaver is SAP’s integrated technology platform ,and is not a product in itself.In fact, new version of basis is called the Netweaver.


The core capabilities of SAP NetWeaver are the integration of people, information, and process

People integration

It simply means that it enables you to bring people together and help them work more efficiently.
 Examples:-
  • Portal: - provides industry leading portal technology that delivers unified, personalized, and role-based user access
  • Collaboration: - Collaboration promotes cooperation in enterprises using virtual team rooms (Collaboration Rooms), real-time communication (chat and application sharing) and the use of third-party groupware and synchronous collaboration tools (for example, Microsoft Exchange, Lotus Notes, and WebEx)
  • Multi-Channel Access :- With Multi-Channel Access, you can connect to enterprise systems through web-based, voice, mobile, messaging, or radio-frequency technology.

Information integration

  It means you can bring together information from a variety of locations and have it make sense in the context of what your folks do everyday!
 Examples:-
  • Business Intelligence:-  It provides you with reliable tools for creating individual and interactive reports and applications.
  • BI Content & BI Content Extensions :- Enables quicker implementation using pre-configured role  and task oriented information models in SAP Business Intelligence.
  • Knowledge Management:- Allows common access to unstructured information and documents in a distributed storage landscape like Search,Classification,Subscription,Versioning,etc..
  • Search and Classification (TREX) :- Provides SAP applications with numerous services for searching, classifying, and text-mining in large collections of documents (unstructured data) as well as for searching in and aggregating business objects (structured data).

Process integration

  It means coordinating the flow of work across departments, divisions, and between companies. Usage type process integration includes all functions previously covered by SAP NetWeaver Exchange Infrastructure that you use to realize cross-system business processes. This SAP NetWeaver usage type enables different versions of SAP and non-SAP systems from different vendors running on different platforms (for example, Java ABAP, and so on) to communicate with each other. SAP NetWeaver is based on an open architecture, primarily uses open standards (in particular those from the XML and Java environments), and provides services that are essential in a heterogeneous and complex system landscape. These include a runtime infrastructure for exchanging messages, configuration options for managing business processes and the flow of messages, as well as options for mapping messages before they reach the receiver.

Application Platform

 SAP Web Application Server provides a complete development infrastructure on which you can develop, distribute, and execute platform-independent, robust, and scalable Web services and business applications. SAP Web Application Server supports ABAP, Java, and Web services.

Thursday, 14 August 2014

How to delete transactional RFCs ?

This article answers following queries:


  • How to delete transaction rfc’s in SAP?
  • Explain the process of deleting struck or old transactional rfcs in SAP
  • How to delete trfc’s in SAP?
-----------------------------------------------------------------------------------------------------

Sometimes, you may face transactional rfc issues in SM58 (like connection error/SQL errors/Application error/System error etc). In those cases, you want to delete those problematic rfc entries. So, please proceed as follows for deleting those entries.


Login to SAP system ABAP stack and navigate to SM58 transaction as shown below. Select the display period and username as per your requirement and execute by clicking on highlighted icon below.



For example, there are 2 transactional rfc errors (similar to below screen) 


If you want to delete them permanently from the above list, you have to proceed as shown below.

Navigate to Log file -> Reorganize as shown below


It will result in below screen. 


Please provide the relevant dates/destination/username and select status as applicable to your scenario and execute the same by clicking on highlighted icon.


Based on the above criteria, whatever rfc’s that is matching will be deleted and a confirmation message similar to below will be displayed on the status bar.

Types of RFC communication

This article answers the following queries:

Ø  What are the different RFC communication types in SAP?
Ø  What is the difference between Synchronous and Asynchronous RFC types?
Ø  What is the RFC communication type in which all requests are processed in order they are received?
Ø  What is the difference between Transactional RFC and Queued RFC?
Ø  What is/are the RFC types in which remote system is not required to be available at the moment the RFC client program start the call?
Ø  In what scenarios, Queued RFC type can be used?
-------------------------------------------------------------------------------------------
There are mainly 4 types of RFC communication in SAP. They are
v  Synchronous RFC
v  Asynchronous RFC
v  Transactional RFC
v  Queued RFC

Synchronous RFC (sRFC) :  In this type of RFC communication, the calling program waits until the requested processing step on the remote system has ended and then continues to work locally.
In other words, both the systems involved must be available at the time the call is made.

Asynchronous RFC (aRFC) : In this type of RFC communication, the calling program gives the request to the remote system and immediately continues to work locally. The requested processing step is executed on the remote system in isolation.
If the remote system cannot be reached at the time of the call, the asynchronous calls of the RFC client are lost

Transactional RFC (tRFC) : This type of RFC communication is similar to asynchronous RFC but by allocating a transaction id(TID)  it guarantees  that if a request is sent several times because of network problems  it is processed only once. Unlike asynchronous RFC,  in Transactional RFC the remote system does not have to be available at the moment the RFC client program start the call. The data is held in the source system until the target system is available.
The report program RSARFCSE is called in the background at regular intervals and tries to place the unsuccessful requests, identified by their transaction id again.

Queued RFC (qRFC) : This RFC communication is an extension to the transactional RFC. In this method, all the requests are queued up(inbound queue and outbound queue) and are processed in a sequence only if it is certain that all preceding calls are processed correctly. This method guarantees that all the requests are processed in the sequence in which they are received.
This type of RFCs will be used in SCM (APO) systems for CIF queues etc where requests have to be processed in an order.



Related Links :

How to create an RFC Connection in SAP ?

How to create an RFC destination ?


Go to SM59 transaction :



Click on create icon in the above screen, which leads to below screen


Specify RFC Destination name and description and connection Type in the above screen




Please note respective connection type to be selected from dropdown based on the connection required. Usually 3 is for ABAP system. (Pls find screenshot below)




In the below screen, please select load balancing radio button based on your system setup (i.e if there is load balancing configured for your system, specify it as yes otherwise no)

Please provide Target host details like hostname or ipaddress and system number as below:




As shown below, Proceed to Logon & security tab and provide following details :

Select trusted system as no, in case you would like to connect to a system with a user id and password.

 If you don’t want to get authenticated by credentials specify the system as trusted system which won’t prompt to enter user id/pwd credentials in the below screen.

Please provide Language details like EN (for English), Client details, User id and password for the system you would like to create a connection.




Please leave default values in other tabs (i.e MDMP & Unicode, Special options, Administration) and then click on Save to complete the RFC creation.


How to Test RFC connection ?





If it functioning well it should show output similar to below screen :




If this is fine, come back to earlier screen and execute Unicode test by clicking the button. Output similar to below screen, should be displayed if connection is OK






Also you need to perform authorization test to make sure user id / password credentials provided are correct.

Please navigate as below and perform the test :




Navigate to Utilities -> Test -> Authorisation test and click  the same to execute.





If the RFC configuration is fine, screen shot similar above will appear. Otherwise an error will be displayed based on which you need to troubleshoot to fix the issue.


How to delete an RFC ?

Goto SM59 and select the RFC that is to be deleted as shown below :



And click on delete icon




Click yes to confirm deletion, which deletes the RFC.


Click on Connection test tab to check the connection for the RFC



How To Delete Spool Request In Queue That Causing ABAP Runtime Error

Sample of the errors:


1) ABAP runtime error (TCODE: ST22) 

2) List of error that caused by spool request

3) Details of the error

Solution:

1) Execute TCODE: SE38 -> Enter "RSPO0041" -> click the execute button to run the program

2) Click the execute button with all the default value

3) Wait until the delete spool process complete

4) TCODE: SM50 showing the deletion process is running

5) Once deletion complete, execute TCODE: SQ01 to ensure all the spool request been clear completely

6) Sample of spool request before deletion

7) All the previous spool request been remove

Wednesday, 13 August 2014

What is Dynamic and Static profile parameter in SAP

Basically there are 2 types of parameters :


  • Static
  • Dynamic
Static are the parameters those won't take effect immediately the value is set. Restart of an sap system is required for them to take effect.

Dynamic are the parameters those will take effect immediately in the run time. Restart of an sap system is not required for them to take effect.