Adobe Document Service (ADS) Configuration

Configure ADS for Form Processing (ABAP) with Solution Manager:

ADS is needed to process forms in an ABAP environment, the ABAP transaction dynpros or Web Dynpro ABAP applications. After installation on the AS Java, the ADS need to be configured in order to be available for form processing.

Technical prerequisites for using Adobe Document Service in SAP…?

License :

If you use Interactive forms in productive environment then you need license for Interactive forms (see Note 750784:SAP Interactive Forms: Licenses)

If you only use Adobe Reader to display PDF-Based Print Forms via application virtualization, you may need an Adobe license.

Configuration

Create the RFC Destination.
Requires system installed with Java Stack.
Adobe Document Services (ADS) installed on the Java Stack.
If using ABAP for PDF Processing, RFC communication must be established between ABAP and Java stacks

Developers:

Adobe LiveCycle Designer 7.1 is installed on your machine ( Desktop / Laptop)
Adobe Reader 7.* is installed
SAP GUI (see Note 864634)
620 Patch level 56 or higher
640 Patch level 12 or higher
710 any patch level

Adobe Document Service(ADS) Technical configuration:

Requires a user of type “system”, required for communication between ABAP and the ADS running on AS Java or dual stack (solution Manager) .Create the user “ADSUSER” as “system” user from transaction SU01.

From transaction PFCG, assign “SAP_BC_FPADS_ICF” role to the created “ADSUSER” user.

Execute transaction “SICF” and Navigate to “Default_host->SAP->bc->fp”,         “Default_host->SAP->bc->fpads” and Activate “fp” and “fpads” services on ABAP system.

Create RFC in ABAP system for communication between ABAP and JAVA stack  with RFC naming “ADS” under HTTP Type-G in sm59 and provide details as below:

– Target Host IP:
– Port No: 5NN00
-Path Prefix: /AdobeDocumentServices/Config?style=rpc

Note: After running the connection test you may get HTTP-404 error,we can  Ignore it…

Login to Solution manager system from OS level and goto path “Eg: G:\usr\sap\\DVEBMGS00\j2ee\admin (then run “go.bat” —> this starts the “J2EE ENGINE”

– login with “j2ee_admin”

– Expand the node under “SERVER->services->security Provider” check whether        ADSUSER, ADS_AGENT exists under “Users tab” (on right side)

– Under “SERVER->services->Destinations” and add new entry under HTTP folder on right side “FP_ICF_DATA_” and provide the login details for ADSUSER, and system details like (SID,Instance no,client) for each system where you need to setup ADS.

– if you get HTTP-404 error while saving the setting, Ignore it…

Goto SPAD in ABAP System and create new printer or use the existing “LP01” and set the

– Device type: “PDF1: PDF ISO Latin-1”
– Access Methods: “F:Printing on Front End COmputer”
– Host Printer: lp and SAVE it

Now Goto SA38 in ABAP system (dev) run the below reports: “fp_test_00” —- test the PDF output (execute this report without changing the inputs)

Troubling shooting reports to be executed in SA38:

FP_CHECK_DESTINATION_SERVICE (execute this with and without Destination service check)

FP_PDF_TEST_00 (you will get version information dialog box, if config is correct)

Steps for Renewal of SAP Router

SAP Router Renewal

1) Stop the running SAP Router by issuing the following command: “saprouter –s”
2) Delete or backup the below mentioned four files from SAP Router directory Ex: “c:\saprouter”.
                               1) local.pse,
                               2) cred_v2,
                               3) srcert and
                               4) certreq

3) Now apply for Router Certificate by Open the Link http://service.sap.com/saprouter-sncadd and “Click on Apply Now” then later “Click on Continue”
             Note: We need to generate the Local Certificate of SAP Router System and paste it here.
4) Generate the Local Certificate Request with the below command (execute it after navigating to the router directory in our case “c:\saprouter”)
         sapgenpse get_pse -v -r certreq -p local.pse “CN=, OU=, OU=, O=, C=”
         Give the PIN as 1234
        
         ->This will generate local.pse in c:\saprouter folder
         ->This will generate a file certreq in c:\saprouter folder
         ->Open the Certificate Request file certreq in Notepad and Copy all the content later Paste it in the text box of the Browser previously opened in step-3 and Click on Request Certificate.
         ->This will generate the Response CA Certificate.

5) Import the Response Certificate is done by Coping the whole encrypted content generated at SMP and paste in a new file and name it as srcert and save it in SAP router folder.
         ->Then Import the Response CA Certificate using the command “sapgenspe import_own_cert –c srcert –p local.pse”
         ->Enter the PIN as 1234 and the Response will be successfully imported.

6) We will authenticate the User who will run the SAP Router by generating the Credentials file cred_v2 in sap router directory “c:\saprouter” using the below command.
         ->sapgenpse seclogin –p local.pse
         ->Now the logged in User, Administrator can only be used to run SAPROUTER.exe for Secure Communications.
7) Check the SAP Router Certificate whether it has been imported successfully or not by issuing the below command.
         ->sapgenpse get_my_name –v –n Issuer
         ->The output should be  “Issuer : CN=SAProuter CA, OU=SAProuter, O=SAP, C=DE”

8) Start the SAP Router by issuing the following command
         ->saprouter -G log.txt -r –S 3299 -R c:\saprouter\saprouttab -K “p:CN=, OU=, OU=, O=, C=DE”
9) Finally check the Validity of SAP Router by issuing below command
         ->sapgenpse get_my_name –v –n validity

Creating Factory/Holiday Calendar

This tutorial describes step-by-step procedure of creating and adding a new holiday to holiday and factory calendar.
Note: It is not recommended to make any changes to the factory calendar in a production system.
All the calendar data should be maintained in a customizing system.
Updates are done via transports from the customizing system.
As a special case a customizing client in the productive system can be established.
Changes in the customizing client will then directly affect the productive system, as the calendar data is client-independent.

SAP Calendar:

https://i0.wp.com/wiki.sdn.sap.com/wiki/download/attachments/263554549/scal0.PNG
SAP calendar master consists of three separate sub-objects which are inter-linked to each other:
  • Public Holidays,
  • Holiday Calendar and
  • Factory Calendar.

Public holidays :

Public holidays can be defined and be combined into holiday calendars.
Public holidays describe the statutory holidays for a particular country or region within a country.

Types of Public holidays:

  • Fixed date
  • Fixed day of week from a specific date
  • Specific number of days before or after Easter (Sunday)
  • Easter Sunday
  • Moveable holiday (with individual specification of dates during each specified year).
For holidays with fixed date (such as Christmas) and moveable holidays it is possible to specify simple rules guaranteeing the holiday if it falls on certain days of the week (Thu, Fri, Sun, Sat/Sun). For instance, Christmas day public holiday may be moved to the next working day if it falls on a Saturday or Sunday.

Holiday calendar :

Holiday calendar is assigned to each factory calendar.

Factory calendar

Factory calendar contain company specific dates such as alternate working Saturdays and holidays.
T-Code  :     SCAL
IMG SPRO -> Time Management -> Work Schedules
https://i0.wp.com/wiki.sdn.sap.com/wiki/download/attachments/263554549/scal_pub0.PNG

Step 1: Create Public Holidays

  1. Select the radio button Public holidays.
  2. Click Change button  .
  3. On Change Public Holidays: Overview screen click Create button  .
  4. A pop up window appear to select the Type of Public Holiday.
https://i0.wp.com/wiki.sdn.sap.com/wiki/download/attachments/263554549/scal_pub_fix0.PNG

Type of Public Holidays

  1. with fixed date: This public holiday falls on the same date every year (e.g. Christmas Day).
    1. Enter the Public Holiday Definition.
      1. Day (e.g. 25)
      2. Month (e.g. 12)
      3. Guaranteed : specify whether the public holiday should be moved or not if it falls on a weekend.
        1. Not Guaranteed: Indicates that the public holiday should not be moved if it falls on a weekend.
        2. Thursday, Friday, Sunday, Saturday/Sunday: If the public holiday is to be “guaranteed”, i.e., should be a day off in any case, you have to specify the workday to which the public holiday should be moved.
    2. Enter the Public Holiday Attributes:
      1. Sort Criterion: use this to display logically related holidays in a block, e.g. all holidays for a country.
      2. Religious Denomination: (e.g. Christianity).
      3. Public Holiday Class: this specifies the holiday type. It can be used to determine the groups of holidays and normal days. (e.g. ‘1’ is ordinary public holiday).
      4. Give Long/Short Holiday Names.
    3. Click Create icon  .
  2. Floating Public Holiday: This public holiday is not fixed. It must be defined explicitly each year. (e.g. Vesak Full Moon Poya Day).
    1. Enter the Public Holiday into relevant boxes: Year/Month/Day (e.g. 2012, 05, 05).
    2. Enter the Public Holiday Attributes and click Insert Date icon.
https://i0.wp.com/wiki.sdn.sap.com/wiki/download/attachments/263554549/scal_pub_float.PNG

Step 2: Create Holiday Calendar

To assign public holidays in a holiday calendar, we need to maintain one or more holiday calendars to accommodate the differing holiday schedules of our company.
  1. Select the radio button “Holiday Calendar”.
  2. On Change Public Holiday Calendar: Overview screen click Create button  .
  3. Enter the Calendar ID and the Name of the calendar. A holiday calendar is identified in the system by a two-character calendar ID.
  4. Enter the validity of the calendar.

Assign Holidays

  1. Click on the Assign Holiday button to assign the holiday.
https://i0.wp.com/wiki.sdn.sap.com/wiki/download/attachments/263554549/scal_holi_cal.PNG
  1. From the Insert Public Holidays into Holiday Calendar screen, search for the respective calendar and select the holidays you want to allow.
  2. Click on the Assign publ.holiday Button.
  3. The public holiday gets added; click on save button to save the holiday calendar.
  4. Acknowledge all the messages.
https://i0.wp.com/wiki.sdn.sap.com/wiki/download/attachments/263554549/scal_pub_holidays.PNG

Step 3: Define the Factory Calendar

hcal_2013.png
  1. Select the working days and assign a holiday calendar to factory calendar.
  2. Select the radio button “Factory Calendar”.
  3. Enter the Factory Calendar ID (same as the Holiday Calendar) and the Factory Calendar Name.
  4. Enter the Holiday Calender ID.
  5. Save.

Special Rules:

Special rules are used to define a date (or periods) as a holiday or as a workday, which is not maintained in the holiday calender (which is applicable for that year only).
In the Public Holiday definition you can determine if a holiday should be moved if it falls during weekends.
You can assign this special rules accessing the “Change Factory Calendar: Details” :: Special Rules button.
scal_srule_Layer 3.png
  1. Go to Factory calendar (change) –> change calendar –> Special rules.
  2. Enter the date and specify if it is a holiday or workday, then save.
  3. The Special rules have higher priority than holiday calendar holidays or workdays.
Finally, click Year Overview and check for the dates.
fcal-2013.png

Final Step: Transport the Calendar

All changes made to the holiday or factory calendar must be transported manually.
  1. Go to SAP Calendar: Main Menu.
  2. Select one of the sub-objects and click Transport button  .

Calendar Functions

Once the SAP Calendar is configured properly, you can use this data to perform various types of calculations.
SCAL function group consists of some predefined function modules that can be use to determine whether or not a given date is a working day, holiday, etc.
Function Module Description
DATE_COMPUTE_DAY
Computes the day of the week for a given date. Day values are calculated as 1 (Monday), 2 (Tuesday), and so on.
DATE_COMPUTE_DAY_ENHANCED
Computes the day of the week just like DATE_COMPUTE_DAY; also returns the day value as text (e.g., TUESDAY, etc.).
DATE_CONVERT_TO_FACTORYDATE
Calculates the factory date value for a given date. Also provides an indicator that confirms whether or not the given date is considered a working day according to the selected factory calendar.
DATE_GET_WEEK
Determines the week of the year for the given date. For example, the date 9/13/2010 would be the 37th week of the year 2010.
FACTORYDATE_CONVERT_TO_DATE
Converts a factory date value back into a date object.
HOLIDAY_CHECK_AND_GET_INFO
Tests to determine whether or not a given date is a holiday based on the configured holiday calendar.
WEEK_GET_FIRST_DAY Calculates the first day of a given week.
As December comes to a close, The new year is just around the corner, and it’s a good time to maintain your Factory Calendar for the coming year (if you haven’t already done so); I hope this simple guide will help you.

Kernel Upgrade

– stop SAP
– move your old SAP-kernel-directory /sapmnt/SID/exe to like /sapmnt/SID/exe.backup
– copy the directory /CD/kernel_upgrade/SAPEXE_102-20000986/unzipped to /sapmnt/ER1/exe
(use cp -Rp !!!!!!!!!!!!)
– start SAP

– check if SAP is using the right kernel version (sapgui –> status –> kernel –> supp.pack.level)