Skip to Content
Author's profile photo Former Member

ABAP Reports on Web UI

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
/wp-content/uploads/2014/07/pic1_499783.jpg
Create BOR Object (SE80)
  1. Copy Standard BOR Object TSTC
/wp-content/uploads/2014/07/pic2_499836.jpg
   2. For the newly created BOR
    • Under Method EXECUTE: Set ‘Synchronous’
          /wp-content/uploads/2014/07/pic3_499841.jpg
   3. Change to status of the object to ‘Implemented’ (EDIT)
   4. Generate the object
/wp-content/uploads/2014/07/pic8_499958.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
               /wp-content/uploads/2014/07/pic5_499960.jpg
     3. Give a Description & CLASS Name
    • The new Class will be created

               /wp-content/uploads/2014/07/pic6_499973.jpg

     4. Select the values

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

               /wp-content/uploads/2014/07/pic7_499974.jpg

Direct Link on the Screen

1. Go to Navigation Bar:

SAP IMG>Customer Relationship Management>UI Framework>Technical Role definition>Define Navigation Bar Profile

OR

Go Tcode: CRMC_UI_NBLINKS

2. 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

               /wp-content/uploads/2014/07/pic1_499783.jpg

3. Create Direct Link Group

  • Group Type: Reports
  • Title
  • Description

               /wp-content/uploads/2014/07/pic2_499836.jpg

4. Assign the new Logical Link to the Direct Link Group created

     

               /wp-content/uploads/2014/07/pic3_499841.jpg

5. Assign the new Direct Link Group to the Navigation Bar Profile

             /wp-content/uploads/2014/07/pic4_500809.jpg

               /wp-content/uploads/2014/07/pic5_499960.jpg

6. Use the below path to go to ‘Define Business Role’

SAP IMG>Customer Reslationship Management>UI Framework>Business Roles>Define Business Role

            

7. Select the Business Role and double click on ‘Adjust Direct Link Group’

               /wp-content/uploads/2014/07/pic6_499973.jpg

8. Select the Direct Link Group created in the previous step and double click on ‘Adjust Direct Links’

  1. Set the ‘Visible’ checkbox and Save.

                 /wp-content/uploads/2014/07/pic7_499974.jpg

                 /wp-content/uploads/2014/07/pic8_499958.jpg

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

/wp-content/uploads/2014/07/pic9_500817.jpg

Report Links in New Work Center

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

1. Create a new BSP Component

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

2. Create an Overview Page

               /wp-content/uploads/2014/07/pic1_499783.jpg

3. Go to Runtime repository Editor

  • Add View under the Window
  • Select the Overview Page created in the previous step

               /wp-content/uploads/2014/07/pic2_499836.jpg

  • Create an Inbound Plug ‘DEFAULT’

      

               /wp-content/uploads/2014/07/pic3_499841.jpg

               /wp-content/uploads/2014/07/pic4_500809.jpg

4. Right click on Component Interface & Add Interface View

               /wp-content/uploads/2014/07/pic5_499960.jpg

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

      

               /wp-content/uploads/2014/07/pic6_499973.jpg

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

               /wp-content/uploads/2014/07/pic7_499974.jpg

6. Add Interface View to the Component usage created

  • Used Component: CRMCMP_GS_WC
  • Interface View: IFVGroupLinks

               /wp-content/uploads/2014/07/pic9_500817.jpg

7. Right-Click on ViewSets and add View Set 

  • Select the Overview Page created

               /wp-content/uploads/2014/07/pic10_500863.jpg

7. Right-click on the viewset and add the View Area

               /wp-content/uploads/2014/07/pic11_500867.jpg

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

               /wp-content/uploads/2014/07/pic13_500869.jpg

9. Component Controller Method: WD_USAGE_INITIALIZE

  • Enhance / Modify the code in the Component Controller method WD_USAGE_INITIALIZE as follows:

               /wp-content/uploads/2014/07/pic14_500876.jpg

                /wp-content/uploads/2014/07/pic15_500877.jpg

10. Go to the Configuration tab of the Overview Page created

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

               /wp-content/uploads/2014/07/pic16_500878.jpg

               /wp-content/uploads/2014/07/pic17_500882.jpg

11. 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’:

                /wp-content/uploads/2014/07/pic18_500883.jpg

               /wp-content/uploads/2014/07/pic19_500884.jpg

Now we have a new component which will hold our custom Work Center. All we need now is to create the Work Center and assign the Logical links.

12. Go to the following path & add the new Component created

SAP IMG>Customer Relationship Management>UI Framework>Technical Role Definition>Define Work Area Component Repository

  • 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

               /wp-content/uploads/2014/07/pic22_500891.jpg

(Due to size constraint, I cannot upload any screenshots. Please follow the steps mentioned)

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

14. Create a new Logical Link: 

  • LogLink ID
  • Type: Work center
  • Target ID: Created in the previous steps 

15. Define Work center Link Groups

16. 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 

17. Define Work Center

18. Assign the Work Center Link Groups to the Work Center:

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

20. Go to ‘Define Business Role

21. Adjust the Links for the Business Role: 

  • Select the Business Role and Click on ‘Adjust Work Centers’
  • Ensure that the work center created is not ‘Inactive’

22. 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’:

23. 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

Picture: Pic_final (Attachment)

Thanks & Regards,

Prasanna

Assigned Tags

      13 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Matthew Billingham
      Matthew Billingham

      Please fix the formatting. Otherwise, I'll need to reject! 😯

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Matthew,

      I am actually not done with the document and I havent submitted it for approval. Not sure why it was sent to you.

      I will complete the document and let you know about the same.

      Very sorry for the inconvenience caused and Thanks so much for your time.

      Thanks & Best Regards,

      Prasanna

      Author's profile photo Matthew Billingham
      Matthew Billingham

      I think another moderator may have notified me. Moderators can see draft documents... but we can't see that they're draft!

      So, please fix it soon, so I can approve it!

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Matthew,

      I am having issues inserting pictures in the document. 🙁 The 'Insert Image' button is greyed out 😕

      Can you please let me know if there is any size limit for the document?

      Thanks!

      Prasanna

      Author's profile photo Matthew Billingham
      Matthew Billingham

      No idea. You can ask in scn support.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Dear Matthew,

      Can you please review the document and approve the same.

      Due to some technical issues, I am not able to upload any images for some of the steps though.

      Please let me know in case of any issues.

      Thanks!

      Prasanna

      Author's profile photo Matthew Billingham
      Matthew Billingham

      Not in my area anymore.

      Author's profile photo Luís Pérez Grau
      Luís Pérez Grau

      Hello Prasanna,

      Thanks for you contribution, but I'm afraid this topic has been covered lots of times:

      CRM 2007 How to --2 A( Transaction Launcher)

      Almost Everything About Transaction Launcher - Part I

      Almost Everything About Transaction Launcher - Part II

      Maybe you can twist the topic a little 😉

      Cheers!

      Luis

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Dear Luis,

      Thanks for letting me know 🙁 . I had checked the links that you have provided. The documents does not explain how to create a new Work center something that is new in my document 😉 .

      Will update the document by EoD and let you know. Thanks so much for your time

      Thanks & Warm Regards,

      Prasanna

      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Should this be rather posted in the CRM space? I'm a bit confused how is this relevant to the 'plain' ABAP...

      Author's profile photo Luís Pérez Grau
      Luís Pérez Grau

      Web UI was included in the ABAP application server from ECC ehp4 or ehp5.  Web UI vs WDA can be a very good question 🙂

      Maybe this link clarifies a little:

      CRM Web Client UI Framework is available in ERP 6.0 and NetWeaver ABAP

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Dear Jelena,

      You are right.

      I will post it in the CRM space.

      Thanks so much!

      Prasanna

      Author's profile photo Luís Pérez Grau
      Luís Pérez Grau

      Well, I guess my explanation didn't convince anyone... 🙁