Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

ABAP Reports on Web UI

$
0
0
ABAP Reports Links on Web UI
Introduction
One of the most common requirements especially when the client is using SAP CRM is the ability to execute ABAP Reports on the Web UI screen.
The purpose of the document is to brief on the step-by-step approach to achieve the above requirement.
The Custom Reports can be made available on the Web UI screen:
  • Through a Direct Link
  • Creating a new Work center
1.0 Logical System Mapping:

This the first step in achieving our requirement.
Before using the Transaction Launcher, SAP ITS (Internet Transaction Server) has to be configured with or without local ITS. The scope of the current document is only setting up SAP ITS using Local ITS.
  1. Go to TCode: CRMS_IC_CROSS_SYS
  2. Enter Mapping & Logical System Name
    • Logical System Name - System in which the GUI transactions have to be executed on Web UI
    • Please check if the authorization to change the entries in Production is existing. Else,
      • the entries has to be made for Production System and transported
      • Configure Transaction Launcher in Quality & Production environment (not recommended)
  3. Set 'Local ITS' checkbox
pic1.jpg
Create BOR Object (SE80)
  1. Copy Standard BOR Object TSTC
pic2.jpg
   2. For the newly created BOR
    • Under Method EXECUTE: Set 'Synchronous'
              pic3.jpg
       3. Change to status of the object to 'Implemented' (EDIT)
       4. Generate the object
    pic8.jpg
    Transaction Launcher

     

         1. Start the Transaction Launcher wizard using the below path

        

    SAP IMG > Customer Relationship Management>UI Framework>Technical Role definition>Transaction Launcher>Configure Transaction Launcher

        

         2. Give a name to the Transaction Launcher ID
                   pic5.jpg
         3. Give a Description & CLASS Name
      • The new Class will be created

                   pic6.jpg

         4. Select the values

      • Transaction type : BOR
      • Logical System
      • BOR Object Type: BOR object copied from TSTC
      • Method Name: EXECUTE

     

                   pic7.jpg

     

    Direct Link on the Screen

     

    Go to Navigation Bar: 

    Create the Links for the Navigation: (TCODE: CRMC_UI_NBLINKS) 

    Define Logical Links:

     Type: Launch Transaction

     Target ID: EXECLTX 

    Parameter: Transaction Launcher ID

     Parameter Class: CL_CRM_UI_LTX_NAVBAR_PARAM

     Title: Title of the Link  Description

     

    2.0.2. Create Direct Link Group  Create new Direct Link Group 2.0.3. Assign the Logical Link to the Direct Link Group 2.0.4. Assign the new Direct Link Group to the Navigation Bar Profile                           

    2.0.5. Define Business Role:             

    Select the Business Role and double click on 'Adjust Direct Link Group' 

    Select the Direct Link Group created in the previous step and double click on 'Adjust Direct Links'

     Set the 'Visible' checkbox and Save.

    The link will be visible on the Navigation Part in the Web UI Screen.      

        2.1. New Work Center To create a new custom work center, a new Z* Component has to be created and modified.

    2.1.1. Create a new BSP Component 

    Create a new Z* Component (TCODE: BSP_WD_CMPWB) or copy from a standard component. 

    Refer Standard Components WCC_AI_CM or WCC_SLS_CYC

    2.1.2. Create an Overview Page

    2.1.3. Go to Runtime repository Editor 

    Add View under the Window 

    Select the Overview Page created in the previous step 

    Create an Inbound Plug 'DEFAULT' 

    Right click on Component Interface & Add Interface View:

     Select the MainWindow (Inbound plug created & View added in the previous step) as the Interface View

     Add Component Usage and give a name (e.g. Reports) 

    Add Interface View to the Component usage created

    Used Component: CRMCMP_GS_WC

    Interface View: IFVGroupLinks

     Right-Click on ViewSets and add View Set 

    Select the Overview Page 

    Right-click on the viewset and add the View Area

     Right-click on the View Area and select the Component Usage added in the previous step (Reports.IFVGroupLInks).

     

    2.1.4. WD_USAGE_INITIALIZE: 

    Enhance / Modify the code in the Component Controller method WD_USAGE_INITIALIZE:

    2.1.5. Configuration of the Overview Page: 

    Go to the Configuration tab of the Overview Page created: 

    Select the Component & move it to the required columns & give a appropriate name:

     

    2.1.6. Header Description: 

    To get the Header on the Web UI screen after navigating to the Work Center created: 

    Enhance the following method: 

    Populate the value into the variable 'DESCRIPTION':

    2.1.7. Work Area Component Repository 

    Go to the following path & add the new Component created 

    Go to 'New Entries' & Add the new Component and the Window Name 

    Select the new entry & click on 'Inbound Plug Definition' 

    Enter a name for Target ID & the Inbound Plug 'DEFAULT' created under the Interface view in the Component

     

    2.1.8. Go to the Navigation Bar Profile (TCODE: CRMC_UI_NBLINKS) 

    Create a new Logical Link: 

    LogLink ID: 

    Type: Work center 

    Target ID: Created in the previous steps 

    Define Work center Link Groups: 

    Select the Work Center link group & click on 'Assign Links to Work Center Link Group' 

    The Links created (using Transaction Launcher) for each Reports will be available under this Work Center Group 

    Assign the Logical Links (of type Launch Transaction) defined in the previous steps 

    Define Work Center 

    Assign the Work Center Link Groups to the Work Center:

    2.1.9. Assign the Work Center to the Navigation Bar Profile as required:

    2.1.10. Adjust the Links for the Business Role: 

    Select the Business Role * Click on 'Adjust Work Centers': 

    Ensure that the work center created is not 'Inactive': 

    Go to 'Adjust Work Center group Links' and ensure that the 'Visible' is checked: 

    If the requirement includes to provide a menu list on the Work center, check 'Menu':

     

    2.1.11. CRM Home Page 

    Go to the CRM Home Page & select the Business Role to which the links have been assigned: 

    New Work Center 'Reports' will be available with the 'Menu' option 

    Go to 'Reports' work center: 

    The links to the ABAP Reports will be available:


    Viewing all articles
    Browse latest Browse all 935

    Trending Articles



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