Entering content frameFunction documentation Available-to-Promise on the Internet Locate the document in its SAP Library structure

Use

An essential activity in many business processes within Logistics is the checking of available resources before making critical decisions or commitments. For customer-oriented companies, it is vital that reliable information on the availability of resources can be access at all times. This is especially important in the sales department as before the salesperson can provide the customer with reliable dates, s/he requires immediate access to information on the availability of a product.

The availability check in the R/3 System provides decision support for a large number of logistics operations at all organizational levels, that is, at plant level, storage location level and at batch level. The check can be adjusted to suit the specific requirements of each company. This guarantees the necessary flexibility for dealing with the customer and within the company itself. For more information on the availability check refer to the R/3 Knowledge Product Availability Check.

The Internet Application Component Available to Promise has been created as an example scenario in the SD environment. The Available to Promise screen shows the results of the material availability check in a clear and simple overview.

Type of Internet Application Component

For customer-oriented companies, easily accessible information on material availability that can be read at a glance provides an important basis for making decisions in an increasingly competitive market environment. Therefore, many companies (especially in the high tech and consumer goods branches of industry) are keen to take advantage of the new opportunities provided by the Internet. They want the necessary support for their business processes, for example:

If you work in Production Planning, in Sales and Distribution or if you are a customer and you use the Internet Application Component Available to Promise, you have the following advantages:

Prerequisites

Authorizations/Security

No special authorizations are required for this Internet Application Component.

Internet Users

To trigger the Internet Application Component in the Internet, you must log on using your SAP user name and your password. If you are a customer, you also require a customer master record and a password of your choice in the R/3 System.

Using transaction SU05, you can create, change and delete passwords for Internet users. To specifically identify users, enter the object type KNA1 as well as the number of the SAP user master record or the customer number.

Standard Settings and Default Values

Browser

The browser used must be Java-enabled (for example, Netscape Navigator >3.0, Microsoft Internet Explorer > 3.0). The browser must also be set so that Java programs can run.

Product Selection Using the Java Applet

You select a product for which you want to see Available to Promise using a Java applet. A Java applet is a small program that is loaded and executed on your PC along with the HTML page.

When started, the Java applet loads the contents of the product catalog from two files saved in the Web server. Using the product hierarchy tree and a text search, you can select a product in the applet and copy it to the input field for the availability check.

Using the text search functions in the applet, you can search for material numbers and descriptions. You can also carry out a generic search using ‘*’. If you enter "test", for example, a search will be made for precisely this string. Entering "test*" triggers a search for everything that starts with with "test". Entering "*test" triggers a search for everything that contains the string "test". The search does not differentiate between lower and upper case characters.

In problem cases, for example, if a file cannot be read or contains inconsistent data, the applet terminates and an error message is displayed in the status line of the browser. In the Netscape Navigator, this message also appears in the Java Console that can be displayed via the menu.

Default Values for Input

Using the Java applet, you can preset certain parameters for accessing information from the R/3 System. The contents of the applet are provided by the report PCATALOG which accesses the data in the product catalog which it saves as two files. Copy these files to the Web server.

This procedure requires the maintenance of a product catalog in the R/3 System. Here, make sure that materials are not assigned more than once. Furthermore, use the base unit of measure. (See also the SAP documentation on the product catalog.)

Activities involved in including your own product catalog

  1. Create a product catalog in the R/3 System’s product catalog maintenance screen.
  2. Use the report PCATALOG to create the input files for the Java applet.
  3. Place the input files for the Java applet on the Web server.
  4. Adjust the applet parameters on the HTML page to the new files.

Default Values for the Checking Rule

Information on material availability in the R/3 System is given according to the scope of the check which is determined by the material’s checking group and the checking rule A of the sales department. See also the documentation on the function module, BAPI_MATERIAL_AVAILABILITY for tips on transferring special checking rules.

Features

Modification Options

You can change the layout of this Internet Application Component.

Note

Every change to the R/3 development objects used in the Internet Application Component is taken as a modification.

Do not in any circumstances change the development objects of the standard system.

Service Name

The service name of this Internet Application Component is CKAV. You can find all the relevant data under this service name in the SAP@Web Studio.

Modification Options

The Java applet can be controlled using the following parameters:

Parameter

Description

Example

Products (Essential parameter)

Path and file name for the product file. You must specify an absolute path (starting with ‘/’) that is valuated from the root directory of the Web server.

/sap/its/startpages/ckav/data/

materials.txt

Hierarchy (Essential parameter)

Path and file name for the file with the product hierarchy. You must specify an absolute path (starting with ‘/’) that is valuated from the root directory of the Web server.

/sap/its/startpages/ckav/data/

hierarchy.txt

BgColor (Optional)

Background color of the HTML page that contains the applet. By specifying this parameter, the background of the tab (the area to the right of the two index cards) is displayed in the transferred colors.
The color is specified as a hexadecimal number with 6 numbers. The format is the same as a color specification in the HTML. However, note that you cannot enter a leading ‘#’.

C0C0C0

 

The parameters are specified in the applet tag in the HTML page. With the above example data, the applet tag is as follows:

 

<APPLET name=catalogApplet archive="catalog.zip" codebase=/sap/its/startpages/ckav/classes

code=catalogApplet.class width=320 height=295 mayscript>

<PARAM name=cabbase value="catalog.cab">

<PARAM name=products value=/sap/its/startpages/ckav/data/materials.txt>

<PARAM name=hierarchy value=/sap/its/startpages/ckav/data/hierarchy.txt>

<PARAM name=bgColor value=C0C0C0>

</APPLET>

R/3 Development Objects

In the R/3 System, the data exchange via the Internet is carried out using transactions and function modules. The following developments are required for creating and passing on service messages:

Development class:

MDW1

Transaction:

CKAV

Function group for the screens:

W61V

Function modules:

BAPI_MATERIAL_AVAILABILITY

 

Data Output via the Internet Transaction Server

Data output is performed using the Internet Transaction Server (ITS). The data is merged with the output forms and made available on the Internet/intranet in HTML format.

The output forms are in the subdirectory CKAV of the directory TEMPLATES. The following forms are used:

SAPMAVCK_500.HTML

SAPMAVCK_600.HTML

SAPMAVCK_1100.HTML

SAPMAVCK_1200.HTML

SAPMAVCK_1300.HTML

CKAV_D.HTRC

CKAV_E.HTRC

CKAV_J.HTRC

The numbers in the names of the forms correspond to the R/3 screen numbers.

 

 

 

 

Leaving content frame