Ansicht
Dokumentation

ALV_PRINT01 - Create RFC Destination in AS Java

ALV_PRINT01 - Create RFC Destination in AS Java

Addresses (Business Address Services)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

The Web Dynpro ABAP ALV creates a PDF version of the table, optimized for printing. To be able to create a print version from the WD ABAP ALV, the print service must be made available werden on a Java application server, with Usage Type Installation.

NOTE: For more information, see SAP Note 1413938.

If you have no AS Java, you can deactivate print version display, centrally. See: Maintain Web Dynpro ABAP-Specific Settings.

To generate the PDF version, you need a connection between the AS ABAP on which your Web-Dynpro applications run, and the AS Java. Maintain the destinations in both systems:

  1. Create RFC destination in AS Java
    To be able to use the RFC connection to AS Java, in the ABAP system, the destination must exist in the AS Java. Proceed as follows, depending on the AS Java release:
  • Up to SAP NetWeaver 7.00, 7.01 or 7.02 (including SPs):
    See the section below: Create RFC destination in AS Java (in Visual Administrator)

  • From 7.2 (including SPs)
    See the section below: Create RFC destination in AS Java (in SAP NetWeaver Administrator)

  1. Create RFC Destination in AS ABAP (transaction SM59)
    You have instantiated an RFC server in the AS Java, in which you can now register as RFC client in AS ABAP, in step 1. Do this by creating an RFC connection.
  2. Set up Web service destination for the Adobe Document Services
    Adobe Document Services (ADS) requires an additional connection between the AS Java and the AS JAVA on which ADS runs.

Create RFC destination in AS Java (in Visual Administrator)

To create an RFC destination in the in AS Java:

  1. Open the Visual Administrator. Choose:
  • under Windows, the directory <drive>:\usr\sap\<SID>\JC<INSTANCE>\ j2ee\admin

  • under Unix the directory /usr/sap/<SID>/JC<INSTANCE>/j2ee/admin.
    Double-click on the file go.bat.

  1. In the Visual Administrator logon screen, choose a connection, and choose Connect.
  2. Enter the password for the connection. You are now connected to the Visual Administrator.
  3. In the directory, choose <SID>/server<#>/services/Jco RFC provider.
  4. Update an RFC destination:
  • Program ID: <JAVA_HOSTNAME>_ALV_<ABAP_SID>
    Enter a unique program ID. The program ID should contain the name of the ABAP and Java servers, and be used only to create the print version.

  • Gateway host: <GATEWAY_HOST>
    Enter the AS ABAP gateway on which your Web-Dynpro applications run.

  • Gateway service: sapgw<SYSTEM_NUMBER>

  • Number of processes (1..20): 20

  • Application server host: AS ABAP

  • System number: <SYSTEM_NUMBER>

  • Client: <CLIENT>

  • Language: EN

  • User: <USER>
    (user in application system with authorization S_RFC)

  • Password: <PASSWORD>

  1. Copy the RFC destination to the available RFC destinations with Set.
  2. Start the RFC Server using Start.

Create RFC destination in AS Java (in SAP NetWeaver Administrator)

To create an JCo RFC destination in the in AS Java:

  1. Call the SAP NetWeaver Administrator with http://<Server>:<Port>/nwa.
    <Server> is the AS Java in which the SAP NetWeaver Administrator is installed, and <Port> is the HTTP port of AS Java.
  2. Choose Configuration Management -> Infrastructure -> JCo RFC Provider.
    You go to the JCo RFC destination maintenance.
  3. Choose Create.
  4. Enter the server configuration data in step 1:
  • Program ID: <JAVA_HOSTNAME>_ALV_<ABAP_SID>
    Enter a unique program ID. The program ID should contain the name of the ABAP and Java servers, and be used only to create the print version.

  • Gateway host: <GATEWAY_HOST>
    Enter the AS ABAP gateway on which your Web-Dynpro applications run.

  • Gateway service: sapgw<SYSTEM_NUMBER>

  • Number of servers (1..20): 20

  1. Enter the repository configuration data in step 2:
  • Application server host: AS ABAP

  • System number: <SYSTEM_NUMBER>

  • Client: <CLIENT>

  • User: <USER> (user in application system with authorization S_RFC)

  • Password: <PASSWORD>

  • Language: EN

  1. Enter the security setting data in step 3.
    You can use Secure Network Connection (SNC), and enter its data.
  2. Enter other options in step 4.
    You can specify the instance for the servers, and whether RFC traces are to be recorded.
  3. Choose Complete, to confirm your entries.
    The destination now appears in the initial screen in the table, with the status Running.






General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 6852 Date: 20240524 Time: 003556     sap01-206 ( 58 ms )