Quantcast
Channel: SCN : Document List - SAP NetWeaver Technology Platform
Viewing all 346 articles
Browse latest View live

SAP router services script on linux.

$
0
0

With the script below you will be able to use command :

  • "service saprouter start" to start saprouter on linux.
  • "
  • service saprouter stop" to stop saprouter on linux.
  • "service saprouter status
  • " to have status and pid of saprouter on linux.

 

/etc/init.d/saprouter

#!/bin/sh
#
### BEGIN INIT INFO
# Provides: saprouter
# Default-Start:
# Default-Stop:
# Should-Start:
# Required-Start: $network
# Required-Stop:
# Short-Description: Start and stop the SAP router relay server
# Description: saprouter provides relay server for SAP.
### END INIT INFO
#
# The fields below are left around for legacy tools (will remove later).
# chkconfig: - 65 35
# description: saprouter provides a relay for Dynamic Host Control Protocol.
# processname: saprouter
# # pidfile: /var/run/saprouter.pid

. /etc/rc.d/init.d/functions

RETVAL=0

basedir=/usr/saprouter
prog=saprouter
user=saprouter
exec="${basedir}/exe/${prog}"
lockfile="/var/lock/subsys/${prog}"
pidfile="/var/run/${prog}.pid"
logfile="${basedir}/LOG/${prog}.log"
tracefile="${basedir}/TRC/${prog}.trc"
config="${basedir}/ACL/${prog}.tab"

SAPROUTERARGS=" -r -R ${config} -G ${logfile} -T ${tracefile} -J 1048576 -Y 12 -C 1000 -W 9000000 "
export PATH=${PATH}:${basedir}/exe
if [ -z "${LD_LIBRARY_PATH}" ];
then
  export LD_LIBRARY_PATH=${basedir}/exe
else
  export LD_LIBRARY_PATH=${basedir}/exe:${LD_LIBRARY_PATH}
fi

 

configtest() {
    [ -x "${exec}" ] || exit 5
    [ -f "${config}" ] || exit 6
    [ -d "${logdir}" ] && exit 6
    [ -d "${tracedir}" ] && exit 6
    return 0
}

rh_status(){
    status "${exec}"
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

start() {
    [ `id -u` -eq 0 ] || exit 4
    configtest
    rh_status_q && return 0

    echo -n $"Starting $prog: "
    daemon --user "${user}" "${exec}" $SAPROUTERARGS 2>/dev/null >/dev/null &
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    args_soft="-p"
    args_hard="-s"
    [ `id -u` -eq 0 ] || exit 4

    rh_status_q
    RETVAL=$?
    if [ $RETVAL -gt 0 ] ;
    then
        echo "Saprouter is already stop"
        return 0
    fi

    echo -n $"Shutting down softly $prog: "
    su - "${user}" -c "${exec} ${args_soft}"
    sleep 2
    rh_status_q
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ] ;
    then
        echo "Saprouter is still started. We will try a hard shutdown"
        su - "${user}" -c "${exec} ${args_hard}"
        sleep 2
        rh_status_q
        RETVAL=$?
        echo
        if [ $RETVAL -eq 0 ] ;
        then
            echo "Saprouter is still started. We will try OS kill."
            killproc "${prog}"
            RETVAL=$?
            if [ $RETVAL -eq 0 ] ;
            then
                echo "Saprouter is still started. Soft, hard and OS killing failed!!!"
                return 2
            else
                echo "Saprouter is down with OS killing."
                RETVAL=0
            fi
        else
            echo "Saprouter is down with hard shutdown."
            RETVAL=0
        fi
    else
        echo "Saprouter is down"
        RETVAL=0
    fi

    [ $RETVAL -eq 0 ] && rm -f $lockfile
    return $RETVAL
}


usage() {
    echo $"Usage: $0 {start|stop|restart|force-reload|condrestart|try-restart|configtest|status}"
}


if [ $# -gt 1 ]; then
    exit 2
fi

case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart|force-reload)
        stop ; start
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        stop ; start
        ;;
    reload)
        usage
        # unimplemented feature
        exit 3
        ;;
    configtest)
        configtest
        ;;
    status)
        rh_status
        ;;
    *)
        usage
        exit 2
        ;;
esac

exit $?

 

 

usefull command :

to increase trace : saprouter -t -V 2

to see list on client saprouter -l :

 

Mon Aug 26 13:59:04 2013
SAP Network Interface Router, Version 40.4


Mon Aug 26 13:59:05 2013
peer SAProuter with NI version 40 ...
send info-request to running SAProuter ...

SAP Network Interface Router running on port 3299 (PID = 4838)
Started on: Mon Aug 26 11:58:00 2013


ID  CLIENT                         | PARTNER                        service
-----------------------------------+---------------------------------------
8   localhost                      | (no partner)
76  10.126.104.193                 | 10.134.235.67                  sapdp00
170 10.126.104.193                 | 10.134.235.67                  sapdp00
62  10.126.104.193                 | 10.134.235.79                  3281
130 sapserv3                       | 10.134.235.79                  3281
81  10.126.104.193                 | 10.126.115.14                  3200

Total no. of clients: 11
Working directory   : /usr/saprouter
Routtab             : /usr/saprouter/ACL/saprouter.tab


To remove spaces/null's from Binary Data (of an internal table/variable) using ABAP

$
0
0

Hi all,
According to my current project requirement we needed to retrieve the specific Data of an attachment(mainly for .txt type of file) of PO:Purchase Order(which can only be retrieved in an

internal table in binary format) using function module 'BBP_PD_PO_GETDETAIL' and send it in base64 format using 'SCMS_BASE64_ENCODE_STR' Conversion method.
All were working fine but the data we were getting in the attachment was not as per standards.
we were getting a lots of "null"s at the end of our Data.(PFA-Attachment1 )
Large number of "null" characters were getting added at the end of the attachment contents when we opened the newly generated attachment as a text file from

target side/destination side.
The internal table in which we were getting this attachment data in binary format has the row contents (The only field 'LINE')as type of RAW and of length

1022.
Thus this length of 1022 was the issue because after assigning the attachment data it considers the remaining characters as "null" if the assigned data is not

large enough.
It can be undestood in more detail using following example.

e.g. :

 

The attachment that is the textfile of a Purchase Order contains the string data as :
"Test Proxy completed"//(The only Data needs to be sent as a contents of a text file )

Instead the textfile which was generated at destination contained data :

 

Test Proxy completed.nullnullnullnullnullnullnullnullnullnullnullnullnull
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
....(continued)."

(PFA-Attachment1 )

---------------------------------------------------------------------------------------------------------
Actual Issue was:

      The actual issue was those nulls were getting added while retrieving this data in binary format itself(got it with the help of Debugging)
when we were calling that "BBP_PD_PO_GETDETAIL" method and retrieving the attachment data in Binary format in an internal table.
The size of normal string is much greater than the actual data provided hence it considers remaining spaces as "null"
("0" in binary/hexadecimal format).

----------------------------------------------------------------------------------------------------------

So after few RND I came up with the solution for this issue which can be stated as follow:

Consider that we have retrieved binary Data into an internal table :
lt_contents.(Last field of lt_attachment table which is the outcome of 'BBP_PD_PO_GETDETAI' function module)
**********************************************************************************************************

DATA: lv_file TYPE string,
      lv_file_con1 TYPE xstring,
      lv_file_con2 TYPE xstring,
      lv_file_space type xstring,
      lv_file_con TYPE xstring.

LOOP AT lt_contents INTO lw_content.      // Get the RAW/Binary Data into a local work area for further usage.

lv_file_con1 = lw_content-line.
CONCATENATE  lv_file_con2 lv_file_con1 INTO lv_file_con2 IN BYTE MODE. //collecting the attachment contents in a variable from an internal table.

ENDLOOP.

lv_file_con = lv_file.
CLEAR lv_file.
lv_file_space = '0'.       // Hexadecimal symbol for space that is 0 which is to be eliminated.

shift lv_file_con2 right deleting trailing lv_file_space in byte mode.  // removing RHS spaces/'0's/null's.

**After RIGHT SHIFT  the spaces are get added at LHS of Data which can be eliminated using left shift.

shift lv_file_con2 left deleting leading lv_file_space in byte mode.  // all spacess/0's/"null"s are get eliminated in this step

 

CALL FUNCTION 'SCMS_BASE64_ENCODE_STR'      // converting Data into base64 format
  EXPORTING
  input    = lv_file_con2
**      unescape = 'X'
  IMPORTING
  output   = lv_file.        // This lv_file will content the required data (without any "null" characters)hexadecimal form.

 

**-------------------------------------------------------------------------------------------------------------

 

Thats it from my side.
If you expert guyz can suggest any changes I need to be made or can come up with a better solution
then you are most welcome.

 

Thanks and Regards,

 

Vikas Kailas Khanase
(+91) 9324758106

SAP NetWeaver 7.4 Presentation Slides

$
0
0

SAP NetWeaver Agenda Topics - SAP NetWeaver today - Recent innovations in SAP NetWeaver 7.31 support packages - SAP NetWeaver 7.4 Optimized for SAP HANA - Innovative user interface technologies - Bridging on premise and on demand solutions - SAP HANA Cloud - Cross SAP NetWeaver scenarios

View this Presentation

SAP NetWeaver 7.4 Open Source Usage

SAP NetWeaver 7.4 Third Party Usage

Installation and Configuration of SAP HA ASCS/ERS Instances on the Oracle Database Appliance

SAP NetWeaver 7.4 - Optimized for SAP HANA, Cloud and Mobile - Available now!

$
0
0

SAP NetWeaver 7.4 is the compatible follow up release of SAP NetWeaver 7.3x. It runs on all database platforms supported by SAP NetWeaver but was optimized for SAP HANA.

 

Get an overview of SAP NetWeaver 7.4 capabilities in the newest article:SAPinsider: Innovate Without Disruption

Check SAP NetWeaver 7.4 Presentation Slides | SCN

 

Check out the latest updates on SAP NetWeaver 7.4 SP3 (deployment options and upgrade paths): SAP NetWeaver 7.4 Deployment Options

 

Please browse the table below to get detailed information on specific spaces and topics on SCN related to SAP NetWeaver 7.4. You will find a detailed description of selected end-to-end scenarios at the end of the page.

 

 

Knowledge AreasRelated Links
Development Platforms

ABAP Development on SAP HANA

ABAP for SAP HANA

New!ABAP Language News for Release 7.40

SAP HANA CloudSAP HANA Cloud Platform
SAP HANA Cloud IntegrationSAP HANA Cloud Integration
SAP Mobile Platform (SMP)SAP Mobile Platform Developer Center
Development Tools

 

Eclipse Development Tools

SAP Development Tools Update Site: https://tools.hana.ondemand.com/

 

ABAP Development Tools: ABAP in Eclipse

ABAP Platform Developer Center

HANA Cloud Development Tools: SAP HANA Cloud Platform Developer Center

Gateway Development Tools: SAP NetWeaver Gateway Developer Center

Gateway Productivity Accelerator (Developer Edition) Launched

Mobile Development Tools: SAP Mobile Platform Developer Center

SAP HANA Studio Development Tools: SAP HANA Developer Center

User Interface Development Tools

SAP UI5 Development Tools: UI Development Toolkit for HTML5 Developer Center

Floor Plan Manager: Floorplan Manager for Web Dynpro ABAP

Visual Business: SAP Visual Business

NetWeaver Business Client (NWBC): SAP NetWeaver Business Client

NetWeaver Hubs
Application Server ABAPSAP NetWeaver AS ABAP 7.4 - Overview and Product Highlights
PortalSAP NetWeaver Portal
Business Warehouse (BW)

SAP NetWeaver BW Powered by SAP HANA

SAP NetWeaver Business Warehouse 7.4

Process Orchestration

Process Orchestration

Process Integration (PI) & SOA Middleware

Introduction to SAP NetWeaver Process Orchestration

Identity Managment & Single-Sign-On (IdM & SSO)

SAP NetWeaver Identity Management (SAP IdM)

SAP NetWeaver Single Sign-On

Landscape Virtualization Management (LVM)Virtualization and Cloud Infrastructure
Cloud Appliance Library (CAL)

SAP Cloud Appliance Library

Easy deployment of pre-configured SAP Solutions with SAP Cloud Appliance Library

New & Emerging Topics
SAP Networking LunchRead the blog about the upcoming topic Eat like never before: SAP Networking Lunch
Business ContinuityBusiness Continuity
Platform Matrix

http://service.sap.com/platforms

Help for NetWeaver 7.4http://help.sap.com/nw74

 

 

 

ABAP Development on SAP HANA

With SAP NetWeaver Business Warehouse and SAP Business Suite, two major standard SAP applications can run on SAP HANA as primary database.

This allows to benefit from the speed and innovations of the SAP In Memory technology in the context of the proven SAP NetWeaver infrastructure.

 

SAP NetWeaver AS ABAP 7.4 offers a set of tools, development options, and examples for customers and partners for accelerating and extending their ABAP based solutions on SAP HANA. This includes opportunities to push data intensive calculations to the database (e.g. using views and database procedures) and combining transactional and analytical aspects for the end-user in real-time.


The integrated development environment  in Eclipse based on the SAP HANA Studio and the ABAP Development Tools for SAP NetWeaver support ABAP developers in End-to-End application development from the database access to the user interface.

 

Combining these capabilities with innovations in ABAP 7.4 that are independent of SAP HANA (such as new capabilities in the development and server infrastructure) creates new opportunities for custom development with SAP NetWeaver AS ABAP.

 

Explore the ABAP Development on SAP HANA step by step using ABAP for SAP HANA Reference Scenario Open Items Analytics which is an integral part of the SAP NetWeaver AS ABAP 7.4

 

To test-drive SAP NetWeaver Application Server ABAP 7.4 on SAP HANA, learn more about its new capabilities and the programming language enhancements you can get and run your owntrial instance provided as virtual applianceby the SAP Cloud Appliance Library.

 

More information: ABAP for SAP HANA

 

SAP NetWeaver Innovations: Cross-NetWeaver Scenarios

SAP NetWeaver 7.4 is the compatible follow up release of SAP NetWeaver 7.3x. It runs on all established database platforms but was heavily optimized for SAP HANA.

 

SAP HANA artifacts such as HANA views and stored procedures can now be defined in the dictionary and consumed in ABAP programs. The Suite on HANA products are the main stakeholders. On the Java side, the NetWeaver hubs such as Portal, BPM and PI are enabled to run directly on HANA step by step based on the needs of our customers and their according adoption plans.

 

SAP UI5 and SAP NetWeaver Gateway are now integral parts of the SAP NetWeaver 7.4 platform making it easy to build innovative apps on top of the NetWeaver 7.4 platform (including Suite on HANA).

 

SAP HANA Cloud is SAP’s Java Platform as a Service offering. Customers and Partners can develop their applications on top of a runtime environment which is completely managed inside the SAP Cloud data center. SAP HANA Cloud is completely based on open source components. Applications for SAP HANA Cloud run in their VM container cleanly separated from each other. The underlying lean Java stack follows OSGI principles requesting services and system resources on an as needed basis. SAP HANA Cloud brings in a rich set of services for identity management, persistence, collaboration and integration. SAP HANA Cloud offers schema access to SAP HANA and Sybase ASE. A major use case is the development of innovative mobile applications that use the Mobile as a Service layer for onboarding and application management. The Gateway as a Service component facilitates service definition and consumption of services typically offered by on premise solutions such as SAP NetWeaver 7.4 and the Business Suite. SAP HANA Cloud acts as a bridge and integration hub spanning SAP and non-SAP on demand and on premise solutions.

 

In addition to Java other languages such as Javascript (in particular node.js) are in preparation to be provisioned by SAP HANA Cloud in the near future.

 

In order to optimally combine NetWeaver on premise and on demand offerings NetWeaver delivers end to end scenarios in 2013.

Please be aware that on-demand offerings are not contained in the on-premise delivery scope of SAP NetWeaver 7.4 and need to be licensed separately.

 

 

Check the SAP NetWeaver Roadmap (as published in SAP SERVICE MARKETPLACE).

 

 

scn_strategy.png

Scenarios in Detail

Market trends such as In Memory, Cloud and Mobile heavily impact the SAP NetWeaver end-to-end portfolio in 2013. Instead of following each trend individually NetWeaver end-to-end Scenarios in 2013 assume that these trends are combined in reality requiring a thorough and consistent approach to get the most out of their innovation potential.

 

 

Take a look at the Scenario Overview Document

  • Developer Scenarios - The developer scenarios emphasize the importance of an end-to-end developer experience when working with NetWeaver technology platform no matter whether you develop in the on premise or on demand context.
  • Business Continuity - Reducing business downtime, independently whether planned or unplanned, becomes more and more a crucial task for all customers.
  • One Identity and Access Management - The One Identity and Access Management scenario describes a straight-forward approach to set up harmonized user management and single sign-on for heterogeneous system landscapes using SAP NetWeaver Identity Management and SAP NetWeaver Single Sign-On.
  • Virtualization - Cloud provisioning of SAP NetWeaver based on-Premise solutions
  • Mobile - The core of the mobile scenario is centered around SAP HANA Cloud. As an alternative to traditional on-premise installations of the SAP Mobile Platform (SMP) all infrastructure components required to develop and run a mobile app are also available in the cloud as a service
  • Integration - SAP HANA Cloud Integration offers a set of process integration capabilities for SAP as well as non-SAP on-premise and on-demand applications.
  • The HANA Scenario- The HANA scenario basically is intended to leverage the speed and capabilities of SAP HANA both in on premise and on demand use cases. 

 

SAP NetWeaver 7.4 - General Availability Care Program

For SAP NetWeaver 7.4, you are invited to participate in the general availability care program.
SAP will reach out to customers to collect feedback from customer projects.

Key Data

  • SAP NetWeaver 7.4 Release to Customer: May, 10th 2013
  • (Planned) completion date for general availability care program: End-August 2013

More information: SAP NetWeaver 7.4 - General Availability care program

 

Summary

SAP responds to the needs of its customers to reduce the cost of development and operation and to bring innovation into existing landscapes without disrupting business processes and further minimizing business downtime. SAP has invested significantly in the cloud market, in in-memory technology, and in innovative mobile technology and applications. SAP NetWeaver 7.4 and SAP HANA Cloud form an application infrastructure and technology platform that provides powerful support for these investments. It enables customers to optimize applications for SAP HANA and, using tools based on the popular Eclipse development environment, quickly and easily build lightweight applications that not only run on the cloud, but integrate with SAP Business Suite back-end systems, bringing innovation across your landscape to your mobile users.

Gateway Setup for Enterprise Procurement Model

$
0
0

The tutorial shows how to get a running EPM Gateway service in a cloud environment or an on premise system. It shows also how to setup the EPM part of a Gateway service. Goal is to set up this service that it can be used from outside on the OData interface of Netweaver. This tutorial also shows setting up required user authorities by using EPM role.

View this Document


The NetWeaver Enterprise Procurement Model - An Introduction

$
0
0

This document provides an introduction to the Enterprise Procurement Model, its intended usage, features and structure. It also provides an overview of stakeholders who already use the Enterprise Procurement Model and its technical availability.

View this Document

What is User Exits and Customer Exits?

$
0
0


Difference between user exits & customer exits:

User exit - A user exit is a three character code that instructs the system to access a program during system processing.

SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.

UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number

Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.     *-- Mani

The following document is about exits in SAP :-

The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. 

SAP creates user exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.

Types of Exits
There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons.

Menu Exits
Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.

SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.

Screen Exits
Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.

Function Module Exits
Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. 

When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated. 

Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs. 

These calls have the following syntax: 

CALL CUSTOMER-FUNCTION ‘001’.

Field Exits
Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field.  Example: The data element BBBNR identifies a company’s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. 

The field exit concept lets you create a special function module that contains this logic. 

You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. 

You can use "RSMODPRF" program to create field exits.

An example of a user exits :-

MODULE user_exit_0001 INPUT 
CASE okcode.
WHEN 'BACK OR EXIT'.
CASE sy-dynnr.
  WHEN '100'.
  SET SCREEN 0.
  LEAVE SCREEN.
  WHEN '200'.
******************************************************************************
**** Note that you can write any code that satisfy your needs. ****
**** But in this case, this was wrote as a sample code for reference sake. ****
**** And you can test it. ****
******************************************************************************
  SET SCREEN 100.
  LEAVE SCREEN.
  ENDCASE.
ENDCASE. 

SAP NetWeaver 7.4 - General Availability care program

$
0
0
For SAP NetWeaver 7.4, you are invited to participate in the general availability care program.
SAP will reach out to customers to collect feedback from customer projects.
 

 

The SAP General Availability program for SAP NetWeaver 7.4 has been finished on August 31, 2013!

Key Data
  • SAP NetWeaver 7.4 Release to Customer: May, 10th 2013
  • (Planned) completion date for general availability care program: End-August 2013
  

How to request participation

  1. In order to participate in the general availability care program for SAP NetWeaver 7.4, please contact us via mailto:GACNW74@sap.comto express your interest.
  2. Your request will be processed right away by the Back Office team.
  3. They will send you a short request form asking you for some basic technical and contact information.
  4. Completing this form is the only prerequisite for your participation.
  5. There are no further costs or duties!
  
What are your benefits
  • Monitoring of your customer messages
  • Free access to Early Knowledge material
 
The contact you have named will receive an e-mail concerning acceptance for the general availability care program for SAP NetWeaver 7.4, which contains further information regarding the monitoring procedure. If there are any issues or questions related to the information within the submitted form, the Back Office will reach out to this same contact via e-mail.
 
So please get on board!
 
Meanwhile check out details of the new SAP NetWeaver 7.4 at SAP NetWeaver 7.4 - Optimized for SAP HANA, Cloud and Mobile - Available now!.

SAP MMC Snap-In

$
0
0
The SAP Snap-In for Microsoft Management Console (MMC) provides a graphical user interface to administer SAP systems from Windows PCs. By default it is installed with any SAP application server on Windows. The default configuration allows you to administer any locally installed SAP application server. However SAP MMC can manage any local or remote application server on Windows as of release 45B and as of release 6.40 application servers running on any OS platforms. SAP MMC versions are fully backward compatible. Therefore installing the latest version is recommended and enables the latest features and fixes. Starting with release 7.10 SAP MMC is shipped as a fully self contained standalone standard Microsoft installer package (MSI). This makes it very easy to install it on any Windows PC.
As of release 6.40 the SAPControl webservice of sapstartsrv is used to manage application servers running on any OS platform. For releases  < 6.40, SAP MMC utilizes the ISAPControl DCOM interface of sapstartsrv to administer application server running on Windows. In addition the command line tool sapcontrol can be used to administer application server via the SAPControl webservice. Do you know the SAP Management Console (SAP MC)? and the SAP Management Perspective of SAP NetWeaver Developer Studio are alternative graphical Java / Eclipse based user interfaces, providing similar features as SAP MMC.

Download Latest SAP MMC Snap-In Released Build

You have to log in to SAP Service Marketplace to access the download pages.
On SAP Service Marketplace you find the latest released versions of the SAP MMC Snap-In for the following platforms:

 

SAP internal: SAP employees can download the latest development version via this page.

SAP MMC - Related Tools

SAP MMC automatically integrates with many SAP and third party tools to provide additional functionality like SAP logon, remote login or Database Administration. By installing these tools on your Windows PC you can add additional functionality to SAP MMC:


Related Information

Guidelines for Java Development in SAP NetWeaver

$
0
0

Introduction :Guidelines for Java Development in SAP NetWeaver

 

Java is an industry-standard application platform that includes the Java programming language, a Java development environment (there are many available), and a Java application server. SAP supports Java, and provides a Java development environment called the SAP NetWeaver Developer Studio, as well as a Java application server that includes SAP’s own Java Virtual Machine (SAP JVM).

Like ABAP, the Java language continues to evolve. Java developers should use the versions of Java and Java EE supported in the latest version of SAP NetWeaver.

 

SAP recommends that Java developers use the version of Java and Java EE supported in the latest version of SAP NetWeaver.To find out which version of Java is supported in any given product, see the product availability matrix (PAM) at http://service.sap.com/pam (Service Marketplace user ID required).

 

Additional guidelines for Java developers depend on whether your application is developed on SAP NetWeaver and runs on NetWeaver, or is migrated to run on NetWeaver, or runs on a different application server entirely.

 

Developers who code on SAP NetWeaver preferred to use SAP NetWeaver Developer Studio.

 

           diagram 1.PNG

 

 

SAP NetWeaver Developer Studio is based on Eclipse. It offers features especially suited to deploying code in an SAP environment. For example, to run an application on SAP NetWeaver, the EAR file should have an SAP manifest. SAP NetWeaver Developer Studio adds this manifest automatically.

 

Additionally, features to aid with enterprise team development are built into the components of the NetWeaver Development Infrastructure (NWDI), including:

 

- The Design Time Repository (DTR), a source code versioning system based on the WebDAV and Delta V open standards

- The Component Build System (CBS), a build server

- The Change Transport System (CTS), a software logistics tool

 

SAP recommends using SAP NetWeaver Developer Studio if you develop for and run on SAP NetWeaver AS Java.In addition to offering an SAP-aligned Java development environment, the SAP NetWeaver Developer Studio, SAP develops and maintains its own Java virtual machine, the SAP Java Virtual Machine (SAP JVM).

Unlike other JVMs, the SAP JVM allows developers to switch to debug mode on the fly without restarting the server, a convenience when programming.

The SAP JVM also includes extensive profiling and memory analysis capabilities to easily identify areas of high memory consumption and memory leaks. SAP developed the Memory Analyzer, which has been open sourced and is available athttp://www.eclipse.org/mat/.

 

 

Reference: SAP Guidelines for Best-Built Applications that Integrate with SAP Business Suite

 

The goal of the blog is to help make users aware of the Guidelines for Java Development in SAP NetWeaver. Recommendations are based on my personal experience in SAP Implementation. The user can follow the suggestions provided by the blog which should be supplemented with additional information. The suggestion provided by the blog may vary as per the project requirement.


SAP Help, at http://help.sap.com, provides official documentation from SAP. It is structured help that is indexed and includes diagrams to illustrate key points. This site is open to the public; no login information is required.

Using Purchase Orders in the NW Enterprise Procurement Model

$
0
0

The programming model of the NetWeaver Enterprise Procurement Model (EPM) follows the Business Object (BO) paradigm. A BO encapsulates the business logic of a business entity, such us a Purchase Order. In this document, we show how you to handle EPM Business Objects like this from a programmatic point of view. After reading this document and looking at the sample code, you will be ready to create your own EPM BO-based code.

View this Document

Server Selection, Server Load Balancing and SSL connection using the SAP Web Dispatcher

$
0
0

1. Purpose:

This document is intended to introduce Web Dispatcher and give detailed information on the associated advantages, implementation scenarios and SSL options.

In general, below are the few questions those arise from the customer when they are looking towards protection / load balancing of an SAP system.

  • What is SAP Web dispatcher?
  • What are the functions of SAP Web dispatcher?
  • Is it technically possible to have a single Web Dispatcher instance to support multiple backend systems?
  • How to use the SAP Web Dispatcher to distribute workload across the different instances of an SAP system?
  • How to configure the SAP Web Dispatcher to Support SSL?

 

2.  What is Web dispatcher?

Just assume that your company offers its customers browser-based access to data from SAP systems. Technically, the Web applications in ABAP and Java are implemented on the SAP NetWeaver AS. Since a very large number of your customers use this service, your SAP system, which is connected to the Internet, has multiple instances. In this scenario how will you implement load distribution across the different instances of this SAP system? Answer is very simple: Web dispatcher.

The SAP Web Dispatcher is an application-level gateway for HTTP requests to an SAP Web Application Server. The SAP Web Dispatcher is used as a software Web switch between the Internet and an SAP System. The SAP Web Dispatcher consists of one or more Web Application Servers. As a result, you have only one point of access for HTTP(S) requests in your system. In addition, the SAP Web Dispatcher balances the load so that the request is always sent to the server with the highest capacity.         

Please note that apart from web dispatcher, web requests can also be distributed through message server or ICM. However, these have only limited functionality and some disadvantages and is therefore not recommended by SAP.

SAP web dispatcher is the SAP recommended process/method of distributing web requests as it has some advantages and additional functionality

 

 

 

 

3.  What are the functions of SAP Web dispatcher?

 

  • Distribution of requests to both ABAP and Java application instances
  • Denial of unwanted requests (i.e. Request filtering)
  • Buffering of web requests
  • Ensures that customers can access the SAP system via one address
  • Provides security as it runs in DMZ (Demilitarized zone)
  • Handles distribution of both http and https requests.

 

4.  Architecture of the SAP Web Dispatcher:

The SAP Web dispatcher is located between the Web client (browser) and your SAP system that is running the Web application.

1.gif

 

 

 

SAP web dispatcher forwards the incoming requests (HTTP, HTTPS) in turn to the SAP Web AS of the SAP system. The number of requests that are sent to a Web AS ABAP depends on its capacity, which depends on the number of configured dialog work processes. The capacity of a Web AS Java depends on the number ofServer Processes. If the application is stateful, the SAP Web dispatcher ensures that with the next request, the user is forwarded to the server that is processing his or her application. To do this, it uses the session cookie with HTTP connections, and the client IP address with end-to-end SSL.

Furthermore, the SAP Web dispatcher decides whether the incoming request should be forwarded to an ABAP or Java server.

5.  Server Selection and Load Balancing Using the SAP Web Dispatcher:

 

 

 

5.1.      Server Selection:

The SAP Web Dispatcher forwards each incoming HTTP(S) request to an appropriate SAP NW Application Server for processing, as illustrated in the following graphic.

 

2.gif

 

 

 

Process Flow:

3.png

 

 

  • The SAP Web Dispatcher first checks whether the request is an ABAP or J2EE request. This distinction is based on the analysis of the URL prefix. For the URL  http://portal.mindtree.com/A/B/C/Default.html, the prefix to be analyzed is the character string /A/B/C/. If this prefix is known in the ICF, this is an ABAP request. If the URL contains only one forward slash (/) after the host name, special handling is required: The value of the profile parameter is/HTTP/default_root_hdl determines the destination.
  • In the case of an ABAP request, the SAP Web Dispatcher first uses a cookie to identify whether the request concerns a stateful application. If this exists, the decision is simple. The request is sent to the application server that is processing this session.For a stateless application, the internal group !DIAG is selected, which consists of all ABAP application servers. This is used only if a logon group (maintained with transaction SMLG) is inherited or specified explicitly in the ICF service.
  • AS Java also recognizes the concept of logon groups. If a specific logon group has not been configured for the prefix of the Java request called, the SAP Web Dispatcher uses the internal group !J2EE. In the case of a stateful application, this is indicated through the session information in the URL or a load-balancing cookie. For compatibility reasons, the session cookie jsessionid can also still be used here.
  • The SAP Web Dispatcher obtains information about the logon groups and URL mapping from an ABAP application server via HTTP or HTTPS. For this to happen, the services /sap/public/icman and /sap/public/icf_info/* must be activated in the ICF.

 

5.2.      Load Balancing:

 

One of the basic functionality of web dispatcher is that, it can help to balance the load between the application servers. Web Dispatcher does not establish connectivity directly with the application servers, rather it will establish the connectivity to Message Server to ensure the load is balanced across application servers.

The SAP Web Dispatcher obtains information about the application servers of the SAP system from the message server via HTTP(S). You can use the SAP Web Dispatcher in pure ABAP systems as well as in combined ABAP + Java systems and pure Java systems. In this way, the installation option determines the message server with which the SAP Web Dispatcher communicates.

 

4.png

6.  Configuring the SAP Web Dispatcher to Support SSL:

 

If you are using a stand-alone SAP Web Dispatcher in front of the SAP Web AS, then use the procedures below to configure the SAP Web Dispatcher to support SSL. The SAP Web Dispatcher can either pass the SSL connection to the server in the backend, or it can terminate the SSL connection. See the graphics below.

 

6.1.      Passing the SSL Connection:

  http://help.sap.com/saphelp_nw04/helpdata/en/39/09a63d7af20450e10000000a114084/TEMPLATE_image002.gif

 

6.2.      Terminating the SSL Connection:

 

  http://help.sap.com/saphelp_nw04/helpdata/en/39/09a63d7af20450e10000000a114084/TEMPLATE_image004.gif

 

6.3.      Procedure:

6.3.1. Configuring the SAP Web Dispatcher to Pass the SSL Connection to the Backend Server:

 

If the SAP Web Dispatcher is to pass the SSL connection to the server in the backend, then, in addition to the standard parameters, set the following profile parameter in the SAP Web Dispatcher’s profile:

 

icm/server_port_<xx>=PROT=ROUTER,PORT=<port>,TIMEOUT=<timeout_in_seconds>

 

6.3.2. Configuring the SAP Web Dispatcher to Terminate the SSL Connection

 

If the SAP Web Dispatcher is to terminate the SSL connection, then it must possess a security environment. To set up this security environment, perform the following:

A. Install the SAP Cryptographic Library on the SAP Web Dispatcher.

  • Download the SAP Cryptographic software from the market place, UNCAR the files using SAPCAR.
  • Extract the contents of the SAP Cryptographic Library installation package.
  • Copy the library file and the configuration tool sapgenpse.exe to a local directory, for example, the directory where the SAP Web Dispatcher is located. For this documentation, we will use the directory C:\Program Files\SAP\SAPWebDisp.
  • Check the file permissions for the SAP Cryptographic Library. If, for example, you copied the library to its location using ftp on UNIX, then the file permissions may not be set correctly. Make sure that the user that runs the SAP Web Dispatcher is able to execute the library's functions.
  • Create a sub-directory called sec and copy the ticket file to this directory. This is also the directory where the SAP Web Dispatcher’s PSEs and credentials are to be located.

  • Location of the SAP Cryptographic Library

C:\Program Files\SAP\SAPWebDisp\sapcrypto.dll

  • Location of the Configuration Tool sapgenpse

C:\Program Files\SAP\SAPWebDisp\sapgenpse.exe

  • Location of the License Ticket

C:\Program Files\SAP\SAPWebDisp\sec\ticket

B. Set the profile parameters.

Make the below entries in the instance profile:

      -------------------------------------------------------------------------------

SAPSYSTEMNAME           = XYZ

# SAPSYSTEM must be set so that the shared memory areas

# can be created.

# The number must be different from the other SAP instances

# on the host.

SAPSYSTEM = 26

# Set DIR_INSTANCE so that the SAP Cryptographic Library can

# find the sec sub-directory.

DIR_INSTANCE = C:\Program Files\SAP\SAPWebDisp

# Message Server Description

rdisp/mshost = xyzmain

ms/http_port = 8000

ms/https_port = 443

# Description of the Access Points

icm/server_port_0 = PROT=HTTP, PORT=1081, TIMEOUT=900

icm/server_port_1 = PROT=HTTPS, PORT=443, TIMEOUT=900

icm/HTTPS/verify_client = 0

# Parameters for the SAP Cryptographic Library

ssl/ssl_lib = C:\Program Files\SAP\SAPWebDisp\sapcrypto.dll

ssl/server_pse = C:\Program Files\SAP\SAPWebDisp\sec\SAPSSLS.pse

# Parameters for Using SSL to the backend server

wdisp/ssl_encrypt = 2

wdisp/ssl_auth = 2

wdisp/ssl_cred = SAPSSLC.pse

wdisp/ssl_certhost = www.test.com

---------------------------------------------------------------------------------

C. Create the SAP Web Dispatcher’s PSE(s) and certificate request(s).

  1. Creating the SAP Web Dispatcher’s PSEs Using the Trust ManagerTo create each PSE (SSL server PSE and SSL client PSE), using the trust manager:

  • Start the trust manager (transaction STRUST).
  • Using the context menu for the File node, choose Create (RSA).

The Create PSE dialog appears.

  • Enter the Distinguished Name parts in the corresponding fields according to your CA’s naming convention.
  • Save the PSE to local file (for example, the Web Dispatcher’s SECUDIR directory). Use the file name that you specified in the profile parameters ssl/server_pse and wdisp/ssl_cred for the SSL server PSE and the SSL client PSE respectively.

 

   2.   Creating the SAP Web Dispatcher’s PSEs and Certificate Requests Using SAPGENPSE

As an alternative, you can use the configuration tool sapgenpse to create the SAP Web Dispatcher’s PSEs.

  • Before you can use sapgenpse to create the SSL server PSE, the environment variable SECUDIR must be set to the directory where the license ticket is located. If the environment variable is not yet set, then set it using the command line as shown below.

set SECUDIR=<SECUDIR_directory>

 

  • Use the tool’s command get_pse as shown below to create the SAP Web Dispatcher’s PSE.

sapgenpse get_pse <additional_options> -p <PSE_Name> –r <cert_req_file_name> -x <PIN> <Distinguished_Name>

 

Where:

-p: Path and file name for the PSE.If the complete path is not included, then the PSE file is created in the SECUDIR directory.

-r: File name for the certificate request

-x: PIN that protects the PSE

D. Send the certificate request(s) to a CA to be signed.

For each certificate request that you created, send the contents of the certificate request to your CA. The CA will validate the information contained in the certificate request (according to its own policy) and return a response that contains the signed public-key certificate.

E. Import the certificate request response(s) into the PSE.

  • Importing the Certificate Request Response Using the Trust Manager

If you used the trust manager to create the SAP Web Dispatcher’s PSE, then you can easily use it again to import the certificate request response. For each of the PSEs that you created, perform the following:

  • If the certificate request dialog is still open, then close it.
  • If the SAP Web Dispatcher’s PSE is not loaded in the PSE maintenance section, then load it by selecting the File node with a double-click and selecting the PSE from the file system.
  • In the PSE maintenance section, choose  Import Cert. Response. The dialog for the certificate response appears.
  • Insert the contents of the certificate request response into the dialog’s text box either using Copy&Paste or by loading the file from the file system.The signed public-key certificate is imported into the SAP Web Dispatcher’s PSE, which is displayed in the PSE maintenance section. You can view the certificate by selecting it with a double-click. The certificate information is then shown in the certificate maintenance section.
  • Create a PIN for the PSE.

  • Importing the Certificate Request Response Using SAPGENPSE

As an alternative, you can use the configuration tool sapgenpse to import the certificate request response into the PSEs. Use the tool’s command import_own_cert as shown below.

sapgenpse import_own_cert <Additional_options> -p <PSE_file>  -c <Cert_file> [-r <RootCA_cert_file>]  -x <PIN>

Where

-p: Path and file name of the PSE.

-c: Path and file name of the certificate request respons

-r: File containing the CA’s root certificate

-x: PIN that protects the PSE

F. Create credentials for the SAP Web Dispatcher.

Use the following command line to open each PSE and create credentials.

sapgenpse seclogin <additional options> -p <PSE_Name> -x <PIN> -O [<Windows_Domain>\]<user_ID>

Where:

-p: Path and file name for the PSE.

-x: PIN that protects the PSE

-O: User for which the credentials are created. (The user that runs the SAP Web Dispatcher process.)

G. Restart the SAP Web Dispatcher.

H. Test the connection.

 

  • Start a BSP using an HTTPS connection to your SAP Web Dispatcher and the corresponding SSL port.
  • If your Web browser cannot completely verify the SAP Web Dispatcher's public-key certificate, then you will receive a dialog that states the reason why. For example, if your Web browser does not possess the issuing CA's root certificate as a trusted root certificate, then you are informed and can choose to trust the server at this time.
  • If you trust the server's certificate (either automatically or manually), then the next step is to authenticate yourself.If your authentication was successful, the BSP appears.

 

6.4.Pros and cons of End-to-End SSL / SSL-Termination:     

     SSL is required in case of any need to protect the business data such as user credentials (e.g. passwords) and data security. It      basically encrypts entire communication between browser and server.

6.4.1.  Web Dispatcher in End-To-End SSL mode:

Pro :

  • Client authentication with X.509 certificates
  • End-to-End data security
  • Load balancer is "untrusted" component

Contra :

  • Persistence based on client IP address only
  • Load balancing problems :
  • Proxies
  • End of Session
  • IP Address based persistence usually OK in internet
  • No logon groups
  • No distinction between J2EE and ABAP applications

 

6.4.2.  Web Dispatcher in SSL Termination mode :

Pro :

  • Persistence based on application session ID
  • Logon groups
  • Detection of application type (ABAP/J2EE), select correct server
  • Request parsing and URL filtering
  • SSL re-encryption is possible

 

     Contra :

 

  • Harder to configure
  • Web Dispatcher becomes "trusted component" (secure channel to WebAS needed)
  • Make sure Web Dispatcher does not become performance bottleneck as it needs higher CPU capacity

 

7. Key points:

We have various scenarios that can be used while implementing Web Dispatcher, the scenario to be chosen comes down to      one's requirement of security, performance, cost, effort, etc., Some of the interesting facts about web dispatcher are listed      below.

 

  • Web Dispatcher is a software load balancer and application layer gateway for SAP Web AS
  • Web Dispatcher is not a reverse proxy, not meant to be.
  • As of Netweaver 7.2, it is possible to have single web dispatcher to cater to multiple backend systems, NW 7.2 based Web Dispatcher is backward compatible and supports up to 6.10
  • Both End-to-End SSL and SSL Termination are available, SSL options to be chosen based on the requirement and by carefully analyzing the hardware and cost involved in setting up the chosen SSL option
  • It is recommended to perform the sizing exercise with the realistic inputs
  • No additional cost involved for license, Web Dispatcher is delivered at free of cost (part of Web AS)

SAP NetWeaver and Oracle Exadata Database Machine

$
0
0

A technical guide for installation, migration and configuration of the Oracle Exadata Database Machine with SAP NetWeaver.

View this Document

How to Design a SAP NetWeaver - based System Landscape (NW7.0)

$
0
0

The purpose of this paper is to introduce the SAP NetWeaver – Based System Landscapes. This paper is based upon SAP NetWeaver Release 7.0 (2004s). Target audiences for this paper will be people with some technical inclination, who want to get a better understanding of SAP NetWeaver landscape design, and what it can do for our customers. This paper relies on an understanding of SAP systems based upon release 4.6C and below. It is intended to give the reader a basic awareness of the differences, new features and issues introduced by the technology of SAP NetWeaver 7.0.

View Document

How to find DefaultSecurityRole in Netweaver Adminstrator - Application Server Java 7.3

$
0
0

Purpose

 

This document provides steps to find DefaultSecurityRole in Netweaver Adminstrator(NWA) in AS Java 7.3.

 

Steps to follow

 

  1. Login to Netweaver Administrator(NWA).
  2. Go to  Configuration >> Identity Management.
  3. In the search criteria field select Role and search for "Everyone".

NWA1.PNG

  4. Select "Everyone", then click  the tab "Assigned Actions".

  5. Search for DefaultSecurityRole.

 

NWA2.PNG

Using Adobe Document Services in the SAP NetWeaver Enterprise Procurement Model (EPM)

$
0
0

EPM applies the Adobe Document Services (ADS) technology in several scenarios which showcase the integration of the Adobe infrastructure with SAP NetWeaver. This document provides a description of the prerequisites and configuration steps that are required to use ADS technology in EPM as well as a description of the proposed scenarios and the configuration steps specific to the scenarios.

View this Document

Integrating SAP Interactive Forms by Adobe with NetWeaver – EPM Stock Worker Demo Scenario

$
0
0

This is the first of a series of informal articles which describe SAP Interactive Forms by Adobe (IFbA) in several scenarios which showcase typical use cases for Adobe Forms in the SAP Business Suite running on NetWeaver. This document describes the prerequisites and configuration steps for using the Adobe Forms technology in EPM as well as the proposed scenarios and the configuration steps required for the scenarios the integration of Adobe Interactive Forms in NetWeaver.

View this Document

Viewing all 346 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>