SlideShare uma empresa Scribd logo
1 de 132
Baixar para ler offline
Almost Everything about
 Transaction Launcher – Part I




Applies to:
SAP CRM WebClient UI. For more information, visit the Customer Relationship Management homepage.

Summary
While there are many documents that explain how to take advantage of Transaction Launcher functionality in
CRM, I personally have not come across one which explains how to troubleshoot it. This article is a humble
attempt. It includes configuration steps, Http Watch traces and debugging. Due to the sheer size of this
document, I have only covered three most commonly used scenarios. I will be writing Part II soon, so stay
tuned.
The three different scenarios used are:
   1. Using Transaction Launcher to launch http://www.google.com in an external window
   2. Using Transaction Launcher to launch MiddleWare transaction SMW01 within the same window on
        the same system
   3. And finally launch ECC transaction VA01 in the same window

Author:     Hasan Zubairi
Company: SAP
Created on: 12 June, 2011

Author Bio
       I have been with SAP for a little over 5 years working as a Senior Support Consultant I in Primary
       Support, AGS Business Suite and Technology. I was working with SAP Retail POS and moved to
       CRM in 2009. I mainly focus on FRW, IC and Sales components.




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     1
Almost Everything about Transaction Launcher – Part I




Table of Contents
Scenario 1 - Using Transaction Launcher to launch http://www.google.com in an external window ................. 3
   Define URL ...................................................................................................................................................... 3
   Configure Transaction Launcher ..................................................................................................................... 3
   Define Logical Link for the URL (Navigation Bar Customizing) ...................................................................... 6
   Test in WebUI ............................................................................................................................................... 10
   HTTP Watch.................................................................................................................................................. 12
   Debugging ..................................................................................................................................................... 13
Scenario II - Using Transaction Launcher to launch MiddleWare transaction SMW01 within the same window
on the same system .......................................................................................................................................... 17
   Create BOR Object Type .............................................................................................................................. 17
   Test the newly created BOR Object .............................................................................................................. 19
   Check Logical Systems and ITS URL ........................................................................................................... 22
   Configure Transaction Launcher ................................................................................................................... 23
   Define Logical Link for the URL (Navigation Bar Customizing) .................................................................... 30
   Test in WebUI ............................................................................................................................................... 34
   HTTP Watch.................................................................................................................................................. 36
   Check Configuration for New Window .......................................................................................................... 44
   Test # 2 in WebUI ......................................................................................................................................... 46
   Test in SAPGUI ............................................................................................................................................. 49
   Debugging ..................................................................................................................................................... 51
   Test using .htm File ....................................................................................................................................... 62
   Edit Configuration .......................................................................................................................................... 64
   WebUI Final Test Result ............................................................................................................................... 68
Scenario III - Launch ECC transaction VA01 in the same window ................................................................... 68
   Find the RFC-Destination (ECC System – Does not apply to multiple backend scenarios) ........................ 68
   Connect to ECC ............................................................................................................................................ 70
   Create BOR Object Type in ECC .................................................................................................................. 72
   Test the newly created BOR Object .............................................................................................................. 74
   Check Logical Systems and ITS URL ........................................................................................................... 78
   Configure Transaction Launcher ................................................................................................................... 80
   Define Logical Link for the URL (Navigation Bar Customizing) .................................................................... 87
   Test in WebClient UI ..................................................................................................................................... 91
   HTTP Watch.................................................................................................................................................. 93
   Check Configuration.................................................................................................................................... 102
   Debugging ................................................................................................................................................... 105
   Debugging in ECC ...................................................................................................................................... 111
   Back to Debugging in CRM ......................................................................................................................... 114
   Changes in Configuration ........................................................................................................................... 121
  Test in WebClient UI ................................................................................................................................... 122
Related Content .............................................................................................................................................. 131
Copyright......................................................................................................................................................... 132




SAP COMMUNITY NETWORK                                     SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                                         2
Almost Everything about Transaction Launcher – Part I




Scenario 1 - Using Transaction Launcher to launch http://www.google.com in an
external window
In this scenario we will configure Launch Transaction to launch URL http://www.google.com in a separate
window. We will then examine it using HTTP Watch and then finally debug.

Define URL
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework
Definition -> Technical Role Definition –> Transaction Launcher ->Define URLs and Parameters




Configure Transaction Launcher
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework
Definition -> Technical Role Definition –> Transaction Launcher -> Configure Transaction Launcher




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    3
Almost Everything about Transaction Launcher – Part I




   1. Enter anything as Transaction Launcher ID (Z_HZ_GOOGLE in our example)




   2. Provide a meaningful description
   3. Choose a class name, starting with X, Y or Z (it will be created automatically)
   4. Activate checkbox for “Stateful” and deactivate "Raise Veto"




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     4
Almost Everything about Transaction Launcher – Part I




   5. Transaction Type must be B (URL transaction)
   6. URL ID the URL ID we have defined in Define URL section
   7. Skip the rest of the parameters and then Complete.




   8. You can check the Class generated by the Wizard in transaction SE24




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   5
Almost Everything about Transaction Launcher – Part I




Define Logical Link for the URL (Navigation Bar Customizing)
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework ->
Technical Role Definition –> Define Navigation Bar Profile -> Define Logical links
You must create a logical link of type C (Launch Transaction) linked to our transaction launcher ID
    1. Click on New entries:



SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      6
Almost Everything about Transaction Launcher – Part I


      Logical link ID:        Z_HZ_LL_GOO
      Type:                   C Launch transaction
      Target ID:              EXECLTX
      Parameter:              Z_HZ_GOOGLE
      Parameter class:        CL_CRM_UI_LTX_NAVBAR_PARAM
      Title:                  Hasan's Google LT
      Description:            Hasan's Google Launch Tran




   2. Create a direct link group




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  7
Almost Everything about Transaction Launcher – Part I




   3. Assign Logical Link to Direct Link Group




   4. Assign Direct Link Group to our Navigation Bar Profile




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    8
Almost Everything about Transaction Launcher – Part I




   5. Ensure that the Direct Link Group is visible at Business Role level
   6. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -
      > Business Roles -> Define Business Role
   7. Select the Business Role and Double click Adjust Direct Link Groups




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 9
Almost Everything about Transaction Launcher – Part I


   8. Ensure that the new Group ID has Visable checked




   9. Click on Adjust Direct Link and ensure that Visible is checked for LogLink ID




Test in WebUI
Now let’s login to WebUI and test the newly created Launch Transaction.



SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    10
Almost Everything about Transaction Launcher – Part I


   1. Login to WebUI using the customized Business Role




   2. You can see the newly created Launch Transaction “Hasan’s Google LT” pubished under Direct Link
      Group “Hasan’s DLG for LT”




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  11
Almost Everything about Transaction Launcher – Part I




HTTP Watch
Now let’s test it using HTTP Watch (since we choose Stateful, the Google link will open in a separate
browser window)




If you remember from the configuration, we defined the Launch Transaction as GET




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     12
Almost Everything about Transaction Launcher – Part I




On the right pane you see that the URL http://www.google.com was redirected to http://www.google.ca




Debugging
Now let’s debug:
   1. Execute transaction se24 -> *abox*impl -> F4
   2. Click on the Transaction Launcher (CL_UICMP_LT_ABOXEXECUTION_IMPL)




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    13
Almost Everything about Transaction Launcher – Part I




   3. Click Display
   4. Double click IP_INBOUNDPLUG




   5. Set a breakpoint where you get the ME handler




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 14
Almost Everything about Transaction Launcher – Part I




    6. Now in WebUI execute the Launch Transaction
    7. Once the breakpoint is hit use F6 key to step through the code until you reach me->handler.
       Execute past it and then double click on it to get Implementation Class of the Launch
       Transaction




   8. Double click on ME->HANDLER in Variables



SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   15
Almost Everything about Transaction Launcher – Part I


   9. Here you’ll see the Launch Transaction Class = Z_HZ_GOOGLE_CL
      GV_ATYPE = B
      GV_URL_ID = Z_HZ_GOOGLE




   10. In transaction SE24 se24 put the class name (= Z_HZ_GOOGLE_CL ) and hit display
   11. Double click on Method BUILD_OTHER_URL_SIMPLE (since we are using Non-BSP URL) and put a
       breakpoint on gs_url-url_part1
   12. Double click on the Variables to get their values




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 16
Almost Everything about Transaction Launcher – Part I




Scenario II - Using Transaction Launcher to launch MiddleWare transaction SMW01
within the same window on the same system
In this section we will use Transaction Launcher to execute MW transaction SMW01 within the same
window. To accomplish that we have to pass transaction SMW01 to BOR object ZHZTSTC (copy of TSTC).
There is a prepared BOR object in the delivery: TSTC_UIF which will help you skip some of the following
steps, but we are not using it in this scenario. First we will make a copy of object TSTC, and then test it.
Secondly we will configure Transaction Launcher, then test, debug, use HTTP Watch and finally fix the
issues.

Create BOR Object Type
    1. Execute transaction SE80
    2. Click on Workbench -> Edit Object -> click on tab Business Engineering -> choose Business Object
       Type -> type TSTC -> click on the copy icon




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      17
Almost Everything about Transaction Launcher – Part I




   3. You would have to provide the new Object Type, Program & Object Name (starting with X, Y or Z)
   4. Click on copy icon




   5. You will be prompted for Package.
   6. For this exercise we will use Package “$TMP”
   7. Click on save icon




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  18
Almost Everything about Transaction Launcher – Part I




Test the newly created BOR Object
To test the newly created BOR Object and it’s EXECUTE method:
   1.   Execute transaction SE80
   2.   Click on Repository Information System
   3.   Expand Business Engineering
   4.   Expand Business Object Browser
   5.   Double click on Business Object Types
   6.   Type ZHZTSTC (the newly created Object) in Object Type field
   7.   Click on execute icon




   8. Double click on the object




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    19
Almost Everything about Transaction Launcher – Part I




   9. Expand Methods
   10. Click on the Edit (Pencil) icon
   11. Double click on Method ZHZ_Transaction.Execute




   12. Check Synchronous



SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 20
Almost Everything about Transaction Launcher – Part I


   13. Click on Continue icon




   14. Now you have to change the Release Status of the newly created Object
   15. Click on Edit -> Change Release Status -> Object Type -> To Implemented




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   21
Almost Everything about Transaction Launcher – Part I


    16. Click on Yes when prompted to save Object Type




Check Logical Systems and ITS URL
Since we are planning to execute the Launch Transaction in our own system, we have to verify that the
Logical System and the corresponding ITS URL is defined.
    1. Execute transaction CRMS_IC_CROSS_SYS
    2. Here you can see that an entry is already maintained for MappedLogSys OWNLOGSYS




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     22
Almost Everything about Transaction Launcher – Part I




   3. Logical System is CRECLNT001
   4. ITS Client is 001
   5. And ITS URL is
      http://iwdfvm3088.wdf.sap.corp:8000/sap/bc/gui/sap/its/webgui?~transaction=IC_LTX&~okcode=I
      CEXECUTE
                        Hint:
                        Okcode is not needed any longer.
   6. Remember the “transaction=IC_LTX” part in the above URL. We will be needing that during our
      debugging

Configure Transaction Launcher
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework
Definition -> Technical Role Definition –> Transaction Launcher -> Configure Transaction Launcher




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    23
Almost Everything about Transaction Launcher – Part I




   1. Enter anything as Transaction Launcher ID (Z_HZ_SMW01 in our example)




   2. Provide a meaningful description
   3. Choose a class name, starting with X, Y or Z (it will be created automatically)
   4. Activate checkbox for “Stateful” and deactivate "Raise Veto"




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     24
Almost Everything about Transaction Launcher – Part I




   5. Since we are planning to execute SMW01 in our own system, we select OWNLOGSYS = CRECLNT001




   6. BOR Object Type will be the one that we created earlier, ZHZTSTC




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   25
Almost Everything about Transaction Launcher – Part I




   7. You can type ZHZ* and click on F4 help
   8. Click on Information System




   9. Check Implemented and uncheck Released
   10. Click on continue




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  26
Almost Everything about Transaction Launcher – Part I




   11. Select the Object you created from the results




   12. For Method name, click on the F4 Help and select Execute




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    27
Almost Everything about Transaction Launcher – Part I




   13. So it should look like




   14.   Click on continue
   15.   Now we will define what value will be passed to the parameter
   16.   For Parameter select “ICWEBCLIENTBORKEYPARAMETER Object Key”
   17.   For Value type smw01



SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  28
Almost Everything about Transaction Launcher – Part I




   18. Click on Continue twice and then Complete




   19. Create a Customizing Request, when prompted
   20. Check the Class generated by the Wizard in transaction SE24




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   29
Almost Everything about Transaction Launcher – Part I




Define Logical Link for the URL (Navigation Bar Customizing)
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework ->
Technical Role Definition –> Define Navigation Bar Profile -> Define Logical links
You must create a logical link of type C (Launch Transaction) linked to our transaction launcher ID
    1. Click on New entries:



SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      30
Almost Everything about Transaction Launcher – Part I


       Logical link ID:        ZHZ1LLSMW0
       Type:                   C Launch transaction
       Target ID:              EXECLTX
       Parameter:              Z_HZ_SMW01
       Parameter class:        CL_CRM_UI_LTX_NAVBAR_PARAM
       Title:                  Hasan's SMW01 LT
       Description:            Hasan's SMW01 Launch Tran




   2. Save it. You might be prompted for Customizing Request




   3. Find the previously created Direct Link Group and select it




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    31
Almost Everything about Transaction Launcher – Part I




   4. Double click on Assign Links and click on New Entries




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   32
Almost Everything about Transaction Launcher – Part I




   5. Ensure that the Direct Link Group is visible at Business Role level
   6. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -
      > Business Roles -> Define Business Role
   7. Select the Business Role and double click Adjust Direct Link Groups




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 33
Almost Everything about Transaction Launcher – Part I


   8. Double click on Adjust Direct Links




Test in WebUI
Now let’s login to WebUI and test the newly created Launch Transaction.
   1. Login to WebUi using the customized Business Role




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    34
Almost Everything about Transaction Launcher – Part I


   2. You can see the newly created Launch Transaction “Hasan’s SMW01 LT” pubished under Direct Link
      Group “Hasan’s DLG for LT”




   3. Once you click on it, you will notice that it is trying to Launch Transaction in a new window, instead
      of the same one




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    35
Almost Everything about Transaction Launcher – Part I




   4. And the window closes automatically




HTTP Watch
Now let’s test it using HTTP Watch




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    36
Almost Everything about Transaction Launcher – Part I




   1. Let’s save the HTTP Watch file and open it up so that we can investigate it in detail




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    37
Almost Everything about Transaction Launcher – Part I




   2. Click on Find and type genericpostexecution.htm
   3. Uncheck everything except for URLs




   4. Click on Find Next and it will find the URL with sting genericpostexecution.htm




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   38
Almost Everything about Transaction Launcher – Part I




   5. Click on the Content tab
   6. Copy the contents




   7. Paste them in Notepad or another editor




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  39
Almost Everything about Transaction Launcher – Part I


   8. And save it as an htm file




   9. Let’s analyze the contents
   10. Remember the ITS URL
       http://iwdfvm3088.wdf.sap.corp:8000/sap/bc/gui/sap/its/webgui?~transaction=IC_LTX&~okcode=I
       CEXECUTE
       You will see that in method POST




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  40
Almost Everything about Transaction Launcher – Part I




   11. The BOR Object we created ZHZTSTC, its EXECUTE method in Logical System CRECLNT001




   12. The parameter smw01 passed to ZHZTSTC




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 41
Almost Everything about Transaction Launcher – Part I




   13. Let’s launch the newly created htm file (smw01.htm in our example)




   14. Click on Yes, when prompted for ActiveX




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   42
Almost Everything about Transaction Launcher – Part I




   15. Nothing but an empty window




   16. By testing the contents of the htm file, we have bypassed CRM, thus proving that the issue is
       related to either the BOR Object itself or the parameter passed to it, smw01 in this instance




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    43
Almost Everything about Transaction Launcher – Part I


    17. At this point we have identified two issues. First, the Launch Transaction is opening in a new
        window. And second, we are getting a blank screen.

Check Configuration for New Window
If the Launch Transaction has a Stateful property checked, then it will open in a new window
    1. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -
       > Technical Role Definition –> Transaction Launcher -> Copy/Delete Launch Transaction




    2. Search for Launch Transaction Z_HZ_SMW01




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     44
Almost Everything about Transaction Launcher – Part I




   3. Select it and click on Details




   4. Uncheck Stateful and Save
   5. Click on Continue when prompted for Customizing Request




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      45
Almost Everything about Transaction Launcher – Part I




Test # 2 in WebUI
Now let’s login to WebUI and test the Launch Transaction again.
   1. Login to WebUi using the customized Business Role




   2. You can see the newly created Launch Transaction “Hasan’s SMW01 LT” pubished under Direct Link
      Group “Hasan’s DLG for LT”




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    46
Almost Everything about Transaction Launcher – Part I




   3. Once you click on it, you will notice that it is now being launched within the same window
   4. It tries to execute it, but is unsuccessful




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   47
Almost Everything about Transaction Launcher – Part I




SAP COMMUNITY NETWORK   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                       48
Almost Everything about Transaction Launcher – Part I




Test in SAPGUI
Let’s test the BOR Object and the parameter in SAPGUI
   1. In SAPGUI execute transaction sw01 and type in ZHZTSTC for Object/Interface Type




   2. Click on Test




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   49
Almost Everything about Transaction Launcher – Part I


   3. Type smw01 for Transaction Code




   4. Execute method EXECUTE
   5. It works




SAP COMMUNITY NETWORK            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                50
Almost Everything about Transaction Launcher – Part I


Debugging
Now let’s debug:
   1. Execute transaction se24 -> *abox*impl -> F4
   2. Click on the Transaction Launcher (CL_UICMP_LT_ABOXEXECUTION_IMPL)




   3. Click Display
   4. Double click IP_INBOUNDPLUG




SAP COMMUNITY NETWORK            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                51
Almost Everything about Transaction Launcher – Part I




   5. Set a breakpoint where you get the ME handler




   6. Now in WebUI execute the Launch Transaction
   7. Once the breakpoint is hit use F6 key to step through the code until you reach me->handler.
      Execute past it and then double click on it to get Implementation Class of Launch Transaction




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   52
Almost Everything about Transaction Launcher – Part I




   8. Double click on ME->HANDLER in Variables
   9. Here you’ll see the Launch Transaction Class = Z_HZ_SMW01_CL
      GV_ATYPE = A
      GV_BORTYPE = ZHZTSTC
      GV_MAPPEDLOGSYS = OWNLOGSYS
      GV_METHOD = EXECUTE




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 53
Almost Everything about Transaction Launcher – Part I




   10. In transaction SE24 se24 put the class name (Z_HZ_SMW01_CL) and hit display
   11. Double click on method PREPARE_DATA_FLOW




   12. Here you will see ICWEBCLIENTBORKEYPARAMETER = 'smw01'




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  54
Almost Everything about Transaction Launcher – Part I




   13. So the correct parameter is passed
   14. Remember in Check Logical Systems and ITS URL section, point 6, I told you to remember the
       “transaction=IC_LTX” part in ITS URL
       http://iwdfvm3088.wdf.sap.corp:8000/sap/bc/gui/sap/its/webgui?~transaction=IC_LTX&~okcode=I
       CEXECUTE
   15. Execute transaction SE80 and access Function Group IC_LTX




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 55
Almost Everything about Transaction Launcher – Part I




   16. Double click on Subroutine USER_COMMAND_0100
   17. Set a breakpoint where you execute method of BOR Object




   18. Hit F8 in the Debugger to hit the new Breakpoint




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   56
Almost Everything about Transaction Launcher – Part I




   19. Hit F6 until you pass the line where gt_swcont gets populated




   20. Double click on GT_SWCONT
   21. Correct value is receieved




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   57
Almost Everything about Transaction Launcher – Part I




   22. Press F8 to exit Debugger
   23. If you’re quick you will see the error at the botton of the screen stating “You do not have
       authorization for transaction smw01”. But we know that we have the proper authorization




   24. Execute transaction SE24 and display class Z_HZ_SMW01_CL



SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    58
Almost Everything about Transaction Launcher – Part I


   25. Put a Breakpoint in method PREPARE_DATA_FLOW




   26. Execute the Launch Transaction from WebUI and hit F8 when the Debugger hits your first
       Breakpoint to hit the next Breakpoint
   27. Double click on ICWEBCLIENTBORKEYPARAMETER in the Source Code window




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   59
Almost Everything about Transaction Launcher – Part I


   28. Hit F5 till you pass ICWEBCLIENTBORKEYPARAMETER = 'smw01'
   29. Double click on ICWEBCLIENTBORKEYPARAMETER in the Variable window




   30. Click on the pencil icon to edit




SAP COMMUNITY NETWORK                     SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                         60
Almost Everything about Transaction Launcher – Part I


   31. Change smw01 to SMW01 (lower to UPPER case) and hit enter




   32. Hit F8 to exit debugger (you might have to do it twice since you have another breakpoint set in
       Subroutine USER_COMMAND_0100 of Function Group IC_LTX
   33. Transaction is launched without any issues.




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    61
Almost Everything about Transaction Launcher – Part I


   34. You will get error stating “You do not have authorization for transaction …” in Launch Transaction if
       the parameter(s) passed are in lower case

Test using .htm File
To verify our findings, we will do another test by changing SWCONT-VALUE in the .htm file we created
earlier
   1. Open the htm file in edit mode




   2. Change smw01 in SWCONT-VALUE to SMW01 and save it




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    62
Almost Everything about Transaction Launcher – Part I




   3. Execute the file




   4. Click on Yes when prompted to allow ActiveX




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  63
Almost Everything about Transaction Launcher – Part I




   5. And the transaction is launched without any problems




Edit Configuration
Now let’s make the configuration changes




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    64
Almost Everything about Transaction Launcher – Part I


   1. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework
      Definition -> Technical Role Definition –> Transation Launcher -> Configure Transaction Launcher




   2. Click Continue




   3. Launch Trans. ID = Z_HZ_SMW01



SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   65
Almost Everything about Transaction Launcher – Part I




    4. Click Continue
    5. Leave everything the way it is on this screen
    6. Click Continue




7. Leave everything the way it is on this screen
8. Click Continue




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     66
Almost Everything about Transaction Launcher – Part I




   9. Parameter = ICWEBCLIENTBORKEYPARAMETER Object Key
   10. Value SMW01 (all upper case)




   11. Click on Continue twice and then Complete
   12. Click on Continue when prompted for Customizing Request




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  67
Almost Everything about Transaction Launcher – Part I




WebUI Final Test Result
Execute the Launch Transaction “Hasan’s SMW01 LT” from Navigation Bar again. It should work without any
issues




Scenario III - Launch ECC transaction VA01 in the same window
In this section we will use Transaction Launcher to execute ECC transaction VA01 within the same window.
We will use an existing BOR Object in ECC. First we will TEST the BOR Object in ECC, and then we will
configure Transaction Launcher, test, debug, use HTTP Watch and finally fix issues if there are any.

Find the RFC-Destination (ECC System – Does not apply to multiple backend scenarios)
   1. In CRM execute transaction SMOEAC
   2. From the Object Type dropdown select Site
   3. Leave the Object Name blank and hit the enter key




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    68
Almost Everything about Transaction Launcher – Part I




   4. Expand R/3
   5. Double click on OLTP and the right window pane will populate




   6. Click on Site Attributes and in the popup you will see the RFC-Destination
   7. The ECC system that we will be connecting to is ALACLNT800



SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    69
Almost Everything about Transaction Launcher – Part I




Connect to ECC
   1. In CRM execute transaction SM59




   2. Expand ABAP Connections




SAP COMMUNITY NETWORK            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                70
Almost Everything about Transaction Launcher – Part I




   3. Double click on ALACLNT800 (the RFC-Destination we discovered in the previous step)
   4. Click on Remote Logon




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  71
Almost Everything about Transaction Launcher – Part I




Create BOR Object Type in ECC
   1. In the previous example we created our own copy of BOR Object TSTC in CRM. If WEBCUIF is
      installed on the ECC system, you can use an already prepared BOR Object TSTC_UIF (both in CRM
      and ECC). But since WEBCUIF is not installed on this particular ECC system, we would be creating a
      copy of TSTC.
   2. Execute transaction SE80
   3. Click on Workbench -> Edit Object -> click on tab Business Engineering -> choose Business Object
      Type -> type TSTC -> click on the copy icon




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   72
Almost Everything about Transaction Launcher – Part I




   4. You would have to provide the new Object Type, Program & Object Name (starting with X, Y or Z)
   5. Click on copy icon




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  73
Almost Everything about Transaction Launcher – Part I




   6. You will be prompted for Package.
   7. For this exercise we will use Package “$TMP”
   8. Click on save icon




Test the newly created BOR Object
To test the newly created BOR Object and it’s EXECUTE method:
   1.   Execute transaction SE80
   2.   Click on Repository Information System
   3.   Expand Business Engineering
   4.   Expand Business Object Browser
   5.   Double click on Business Object Types
   6.   Type ZHZECCTSTC (the newly created Object) in Object Type field
   7.   Click on execute icon




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    74
Almost Everything about Transaction Launcher – Part I




   8. Double click on the Object




   9. Expand Methods
   10. Click on the Edit (Pencil) icon
   11. Double click on Method ZHZ_ECC_Transaction.Execute



SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  75
Almost Everything about Transaction Launcher – Part I




   12. Check Synchronous
   13. Click on Continue icon




SAP COMMUNITY NETWORK           SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               76
Almost Everything about Transaction Launcher – Part I



   14. Now you have to change the Release Status of the newly created Object
   15. Click on Edit -> Change Release Status -> Object Type -> To Implemented




   16. Click on Yes when prompted to save Object Type




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   77
Almost Everything about Transaction Launcher – Part I


Check Logical Systems and ITS URL
Since we are planning to execute the Launch Transaction in our own system, we have to verify that the
Logical System and the corresponding ITS URL are (?) defined.
    1. Execute transaction CRMS_IC_CROSS_SYS
    2. Here we see 2 Mapped Logical Systems defined for the same Logical System
    3. We are interested in Mapped LogSys ERP_ALA800 as ITS URL:
       http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode=
       ICEXECUTE&sap-client=800
       is using IC_LTXE where as ITS URL for Mapped LogSys ERP is using crm_cic_rabox which is obsolete
       (see Related Contect section at the end of this article)




    4. Lets verify to which RFC-Destination this Logical Systems is pointing to
    5. Execute transaction BD97
    6. Here you see Logical System T90CLNT090




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     78
Almost Everything about Transaction Launcher – Part I




   7. Expand T90CLNT090
   8. You can see that T90CLNT090 is connected to ALACLNT800 for both Standard RFC destination for
      BAPI calls & Standard RFC destination for dialog calls




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  79
Almost Everything about Transaction Launcher – Part I


Configure Transaction Launcher
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework
Definition -> Technical Role Definition –> Transaction Launcher -> Configure Transaction Launcher




   1. Enter anything as Transaction Launcher ID (Z_HZ_ECC_VA01 in our example)
   2. Component Set = <empty> as we are not putting data from BOL into the LTXE parameters




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    80
Almost Everything about Transaction Launcher – Part I


   3. Provide a meaningful description
   4. Choose a class name, starting with X, Y or Z (it will be created automatically as local object)
   5. Uncheck “Stateful” and "Raise Veto"




   6. Since we are planning to execute VA01 in our own system, we select ERP_ALA800 = T90CLNT090




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     81
Almost Everything about Transaction Launcher – Part I


              HINT:
              The display of keys in dropdowns must be activated in the SAP GUI configuration. Otherwise only the
              second column will be displayed. In SAPLOGON, click upper right corner -> options (I use SAPLOGON
              710)




   7. You can type ZHZ* and click on F4 help
   8. Click on Information System




   9. Check Implemented and uncheck Released
   10. Click on continue



SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     82
Almost Everything about Transaction Launcher – Part I




   11. Select the Object you created




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      83
Almost Everything about Transaction Launcher – Part I




   12. For Method Name, click on the F4 Help and select Execute




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   84
Almost Everything about Transaction Launcher – Part I


   13. It should look like …




   14.   Click on continue
   15.   Now we will define what value will be passed to the parameter
   16.   For Parameter select “ICWEBCLIENTBORKEYPARAMETER Object Key”
   17.   For Value Type VA01 (upper case)




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  85
Almost Everything about Transaction Launcher – Part I


   18. Click on Continue twice and then Complete




   19. Create a Customizing Request, when prompted
   20. Check the Class generated by the Wizard in transaction SE24




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   86
Almost Everything about Transaction Launcher – Part I




Define Logical Link for the URL (Navigation Bar Customizing)
Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework ->
Technical Role Definition –> Define Navigation Bar Profile -> Define Logical links
You must create a logical link of type C (Launch Transaction) linked to our transaction launcher ID
    1. Click on New entries:
        Logical link ID:        ZHZLLVA01
        Type:                   C Launch transaction
        Target ID:              EXECLTX
        Parameter:              Z_HZ_ECC_VA01
        Parameter class:        CL_CRM_UI_LTX_NAVBAR_PARAM
        Title:                  Hasan's VA01 LT
        Description:            Hasan's VA01 Launch Tran




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      87
Almost Everything about Transaction Launcher – Part I




   2. You might be prompted for Customizing Request




   3. Find the originally created Direct Link Group and select it




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      88
Almost Everything about Transaction Launcher – Part I




   4. Double click on Assign Links and click on New Entries




   5. LogLink ID = ZHZLLVA01
      Position = 30
   6. Hit enter and SAVE



SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   89
Almost Everything about Transaction Launcher – Part I




   7. Ensure that the Direct Link Group is visible at Business Role level
   8. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -
      > Business Roles -> Define Business Role
   9. Select the Business Role and double click Adjust Direct Link Groups




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 90
Almost Everything about Transaction Launcher – Part I


   10. Double click on Adjust Direct Links and set the visibility indicator




   11. Click on Save
   12. You might be prompted for Customizing Request

Test in WebClient UI
Now let’s login to WebClient UI and test the newly created Launch Transaction
   1. Login to WebClient UI using the customized Business Role




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                      91
Almost Everything about Transaction Launcher – Part I




   2. You can see the newly created Launch Transaction “Hasan’s VA01 LT” pubished under Direct Link
      Group “Hasan’s DLG for LT”




   3. Upon launching the newly configured transaction, you encounter an error




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  92
Almost Everything about Transaction Launcher – Part I




   4. Take a closer look at the error:

       URL http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox call was terminated
       because the corresponding service is not available.


       Why is the Launch Transaction launching the ITS URL with crm_cic_rabox? And the message service
       is not available?

HTTP Watch
Now let’s test it again using HTTP Watch




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    93
Almost Everything about Transaction Launcher – Part I




   1. Let’s save the HTTP Watch file and open it up so that we can investigate it in detail




   2. Click on Find and type genericpostexecution.htm
   3. Uncheck everything except for URLs




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    94
Almost Everything about Transaction Launcher – Part I




   4. Click on Find Next and it will find the URL with string genericpostexecution.htm




   5. Click on the Content tab
   6. Copy the contents




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    95
Almost Everything about Transaction Launcher – Part I




   7. Paste them in Notepad or another editor
   8. And save it as an htm file




   9. Let’s analyze the contents
   10. Remember the ITS URL



SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  96
Almost Everything about Transaction Launcher – Part I


      http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okco
      de=ICEXECUTE&sap-client=800
      but instead we see URL
      http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-client=800
      in the attribute action of form tag




   11. The PROCLID starts with M (method call) followed by the BOR Object ZHZECCTSTC method
       EXECUTE in Logical System T90CLNT090




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 97
Almost Everything about Transaction Launcher – Part I




   12. The parameter SWCONT-VALUE = T90CLNT090ZHZECCTSTCVA01 (LOGSYS = T90CLNT090; BOR
       Object = ZHZECCTSTC; Parameter = VA01)




   13. At this time it is safe to assume that incorrect ITS URL is called by the Launch Transaction
   14. Before we start debugging and making configuration changes, let’s verify if the correct URL works



SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    98
Almost Everything about Transaction Launcher – Part I


   15. Change the URL to:
       http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okco
       de=ICEXECUTE&sap-client=800
       in the attribute action of form tag




   16. Let’s launch the newly created htm file




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    99
Almost Everything about Transaction Launcher – Part I



   17. Click on Yes, when prompted for ActiveX
                              HINT:
                              You can avoid this in the Internet Options – Advanced – Security – Allow Active
                              Content to run in files on My Computer. But be sure you remove this indicator as
                              soon as test are done.




   18. You might be prompted for login credentials




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 100
Almost Everything about Transaction Launcher – Part I




   19. Rendering might be bad




   20. But you can type transaction VA01 in transaction field and hit enter




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  101
Almost Everything about Transaction Launcher – Part I




    21. Now it is confirmed that the problem is with the URL

Check Configuration
If the Launch Transaction has a Stateful property checked, then it will open in a new window




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   102
Almost Everything about Transaction Launcher – Part I


   1. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -
      > Technical Role Definition –> Transaction Launcher -> Copy/Delete Launch Transaction




   2. Search for Launch Transaction Z_HZ_ECC_VA01




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               103
Almost Everything about Transaction Launcher – Part I


   3. Select it and click on Details
   4. You can see in Definition 3 is ERP_ALA800 (Mapped Logical System)




   5. To confirm it execute transaction CRMS_IC_CROSS_SYS




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                104
Almost Everything about Transaction Launcher – Part I


    6. So why is it that the URL for Mapped Logical System ERP is called?

Debugging
Let’s debug and find out.
    1. Execute transaction se24 -> *abox*impl -> F4
    2. Click on the Transaction Launcher (CL_UICMP_LT_ABOXEXECUTION_IMPL)




    3. Click Display
    4. Double click IP_INBOUNDPLUG




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  105
Almost Everything about Transaction Launcher – Part I




   5. Set a breakpoint where you get the ME handler




   6. Now in WebClient UI execute the Launch Transaction




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               106
Almost Everything about Transaction Launcher – Part I




   7. Once the breakpoint is hit use F6 key to step through the code until you reach me->handler.
      Execute past it and then double click on it to get Implementation Class of Launch Transaction




   8. Double click on ME->HANDLER in Variables




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 107
Almost Everything about Transaction Launcher – Part I


   9. Here you’ll see the Launch Transaction Class = Z_HZ_ECC_VA01_C
      GV_ATYPE = A
      GV_BORTYPE = ZHZECCTSTC
      GV_MAPPEDLOGSYS = ERP_ALA800
      GV_METHOD = EXECUTE




   10. In transaction SE24 se24 put the class name (Z_HZ_ECC_VA01_CL) and hit display
   11. Double click on method PREPARE_DATA_FLOW




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                108
Almost Everything about Transaction Launcher – Part I




   12. Here you will see ICWEBCLIENTBORKEYPARAMETER = 'VA01'




   13. So the correct parameter is passed but let’e verify that during debugging by putting a breakpoint in
       class Z_HZ_ECC_VA01_CL method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  109
Almost Everything about Transaction Launcher – Part I




   14. Switch back to your debugger and hit the F8 key to hit the new breakpoint
   15. Double click on the ICWEBCLIENTBORKEYPARAMETER to see the value




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 110
Almost Everything about Transaction Launcher – Part I


   16. Since the ITS URL is
       http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okco
       de=ICEXECUTE&sap-client=800
       in the target ECC we use tran se80 to access Funstion Group IC_LTXE (for ERP 2005 and up -
       IC_LTXR for PI systems) and put a breakpoint in Subroutine USER_COMMAND_0100

Debugging in ECC
   1. Logon to the target ECC system
   2. Remember message service cannot be reached




   3. That can be easily checked by executing transaction SICF in ECC
   4. Type CRM_CIC_RABOX in Service Name and click on Execute




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 111
Almost Everything about Transaction Launcher – Part I




   5. Here you will see that service CRM_CIC_RABOX is inative (greyed out)
   6. We can activate the service if we like, but the issue that we are trying to figure out is why the
       Launch Transaction is calling incorrect URL
   7. Execute transaction SE80
   8. From the dropdown select Function Group
   9. Type IC_LTXE and hit enter
   10. Expand Subroutines
   11. Double click on USER_COMMAND_0100
   12. And put a breakpoint where on call function 'EWB_PROC_CREATE’




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   112
Almost Everything about Transaction Launcher – Part I




   13. Switch back to your debugger and hit F8 to continue to this new breakpoint
   14. You will notice that the debugger window is closed and your breakpoint is never hit which makes
       sense since for some reason ITS is calling CRM_CIC_RABOX and not IC_LTXE




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 113
Almost Everything about Transaction Launcher – Part I


Back to Debugging in CRM
   1. Execute transaction se24 -> CL_CRM_IC_ACTION_BOR_UTIL and click on Display




   2. Put a breakpoint in method CONSTRUCTOR where you get the me->handler




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               114
Almost Everything about Transaction Launcher – Part I




   3. Hit the back button and place another breakpoint in method GET_ITS_URL




   4. I am sure by this time either your WebClient UI or Debugger or both have timed out
   5. Execute Launch Transaction Hasan’s VA01 LT again in WebClient UI




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 115
Almost Everything about Transaction Launcher – Part I




   6. Hit F6 until you get past the line where you get logsys
   7. Here you will see that:
      MAPPED_LOGSYS = ERP_ALA800
      LOGSYS = T90CLNT090




SAP COMMUNITY NETWORK                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  116
Almost Everything about Transaction Launcher – Part I


   8. FOUND = ABAP_TRUE
   9. Look at the highlighted code below




         loop at cl_crm_ic_action_bor_util=>setup_tab assigning <fs> where logsys
        = logsys.
           if <fs>-its_url is not initial.
             found = abap_true.
             exit.
           else.
             found = abap_false.
           endif.
         endloop.
      found = abap_true based on logsys and not mapped_logsys
   10. Let’s take it further and examine the case/endcase




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 117
Almost Everything about Transaction Launcher – Part I




      case found.
          when abap_true.
            me->its_url       = <fs>-its_url.
            me->its_client    = <fs>-its_client.
            me->logsys        = <fs>-logsys.
          when abap_false.
            raise exception type cx_crm_ui_ltx
              exporting
                 textid        = cx_crm_ui_ltx=>no_its_url
                 mapped_logsys = mapped_logsys.
          when abap_undefined.
            raise exception type cx_crm_ui_ltx
              exporting
                 textid        = cx_crm_ui_ltx=>no_logsys_error
                 mapped_logsys = mapped_logsys.
        endcase.
   11. Hit F6 until you pass the endcase
       ME->ITS_URL = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-
       client=800
       ME->ITS_CLIENT = 800
       ME->LOGSYS = T90CLNT090




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               118
Almost Everything about Transaction Launcher – Part I




   12. The whole CONSTRUCTOR is based on finding the correct URL on value of LOGSYS instead of
       MAPPED_LOGSYS, thus finding URL:
       http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-client=800
       instead of:
       http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode=
       ICEXECUTE&sap-client=800
   13. Hit F8 to hit the breakpoint in method GET_ITS_URL and then hit F6




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               119
Almost Everything about Transaction Launcher – Part I




   14. You will notice that that the ITS URL that is determined is incorrect already
       RV_RESULT = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-
       client=800
   15. Let’s take it a step further … hit F7 and you will reach class CL_CRM_UI_LTX_PAGE_LAYOUT_SRV
       method BUILD_AND_ADD_EXECUTION_LAYOUT




SAP COMMUNITY NETWORK              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                120
Almost Everything about Transaction Launcher – Part I


   16. Hit F6 several times until you get the values for the following variables
       LV_ITS_URL = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-
       client=800
       LV_ITS_CLIENT = 800
       LV_OKCODE = EXECUTE
   17. Examine the code:

       IF lv_its_url CS 'WEBGUI'.   " upper/lower case is ignored
           lv_okcode = 'ICEXECUTE'.   " new ITS integration using WEBGUI
         ELSE.
           lv_okcode = 'EXECUTE'.     " old ITS integration using *RABOX*
         ENDIF.

       LV_OKCODE = EXECUTE, meaning that old ITS integration is used.
   18. I think that by now we have proved that the ITS URLs for the Launch Transactions are called based
       on LOGSYS and not MAPPED_LOGSYS. This is because the coding has been changed in the core
       application (don’t ask me when)
   19. Hit F8 to end the debugging session

Changes in Configuration
Let’s remove the unwanted URL and retest
   1. Execute transaction CRMS_IC_CROSS_SYS




   2. Delete the ITS URL for MAPPED_LOGSYS = ERP




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 121
Almost Everything about Transaction Launcher – Part I




    3. Click on Save and you will be prompted for Customizing Request.
    4. Click on Continue




Test in WebClient UI
Logout of your current WebClient UI session and log back in again to avoid any issues due to caching
    1. Execute Launch Transaction Hasan’s VA01 LT




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   122
Almost Everything about Transaction Launcher – Part I




   2. Your first breakpoint in class CL_CRM_IC_ACTION_BOR_UTIL method CONSTUCTOR will be hit




   3. Hit F6 until you get the values for the following:
      LOGSYS = T90CLNT090




SAP COMMUNITY NETWORK                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   123
Almost Everything about Transaction Launcher – Part I


      ME->ITS_URL =
      http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode=
      ICEXECUTE&sap-client=800
      ME->ITS_CLIENT = 800
      ME->LOGSYS = T90CLNT090
      FOUND = X




   4. As you can see that already it is choosing the correct ITS URL
   5. Click on F8 to hit your next breakpoint in class CL_CRM_IC_ACTION_BOR_UTIL method
      GET_ITS_URL where you will see that:
      RV_RESULT =
      http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode=
      ICEXECUTE&sap-client=800




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               124
Almost Everything about Transaction Launcher – Part I




   6. Click on F8 to hit your next breakpoint.
   7. This one will be in target ECC in Function Group SAPLIC_LTXE subroutine USER_COMMAND_0100




   8. Hit F6 until you get past the line where variable LV_PROCLID gets populated




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 125
Almost Everything about Transaction Launcher – Part I




   9. To find out what parameter is receieved by BOR Object ZECCTSTC method EXECUTE, execute
       transaction SE80 (in ECC)
   10. From the dropdown select Program and type ZHZ_ECC_RSOWTSTC (remember step 5 of section
       Create BOR Object Type in ECC)




SAP COMMUNITY NETWORK            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                              126
Almost Everything about Transaction Launcher – Part I




   11. Right click on Object Name ZHZ_ECC_RSOWTSTC select Display and then In Same Window




   12. Click on Program




SAP COMMUNITY NETWORK             SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                               127
Almost Everything about Transaction Launcher – Part I




   13. Unfortunately you can only set a Session breakpoint here and not an External




   14. Switch back to the debugger screen
   15. From the menu, click on Breakpoints -> Breakpoint at -> Breakpoint in Source Code




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 128
Almost Everything about Transaction Launcher – Part I




   16. Fill in the following values
       Program = ZHZ_ECC_RSOWTSTC
       Include = <OBJECT>
       Row 19




   17. Click Continue
   18. Hit F8 so that the new breakpoint is hit
   19. Hit F6 until you get the value for OBJECT-KEY-CODE




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 129
Almost Everything about Transaction Launcher – Part I




   20. Hit F8 to exit debugger
   21. And the Launch Transaction Hasan’s VA01 LT is successful




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                 130
Almost Everything about Transaction Launcher – Part I




Related Content
Here are some helpful Notes that I usually reference:
1360904      SAP GUI for HTML: Application services do not start
914112       ITS service CRM_CIC_RABOX causes UI problems
1247621      LTX: No data loss popup of transaction launcher in portal
986257       CRM Web UI: Protocol switch in HTTPS scenarios
900814       CRM: Generating URLs in proxy scenarios
1385426      Use basis code for creating URLs
1360019      Check existence of function module remotely (URL creation)
1298695      Parameters not passed to launch transaction
1013376      FAQ Note: CRM IC Web Client Transaction Launcher
1388655      Transaction ICEXECUTE is unknown
1139385      Error message 00031 - Transaction ICEXECUTE is unknown
1362533      ITS based launch transactions do not close sessions
1135335      ITS based launch transactions do not close sessions
990216       FAQ: Display problems for SAPGUI transactions via ITS
1148829      Locally executed launch transactions ignore HTTPURLOC
1055324      POST parameters lost during redirect
985587       Launch transaction handler class fails with syntax errors
974794       'Hide Dialog' setting for a URL launch transaction
962265       Launch transaction wizard fails with syntax errors for BOR
913601       Generation error in PCUI based launch transactions
1248650      Back Button on Transaction Launched leads to a blank screen
For more information, visit the Customer Relationship Management homepage




SAP COMMUNITY NETWORK                  SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    131
Almost Everything about Transaction Launcher – Part I


Copyright
© Copyright 2011 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,
iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,
PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,
BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,
Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of
Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts
Institute of Technology.
Java is a registered trademark of Oracle Corporation.
JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned
herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and
other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document
serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP
Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the
express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an
additional warranty.




SAP COMMUNITY NETWORK                            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                              132

Mais conteúdo relacionado

Mais procurados

Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script formsKranthi Kumar
 
Guidelines to determine the right interface when integrating with sap systems...
Guidelines to determine the right interface when integrating with sap systems...Guidelines to determine the right interface when integrating with sap systems...
Guidelines to determine the right interface when integrating with sap systems...Alaa Karam
 
Errors in process chains
Errors in process chainsErrors in process chains
Errors in process chainsSiva Kollipara
 
SAP Financial Closing Cockpit
SAP Financial Closing CockpitSAP Financial Closing Cockpit
SAP Financial Closing CockpitSurya Padhi
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guidesapdocs. info
 
Fiori app for po approval process sap mm
Fiori app for po approval process sap mmFiori app for po approval process sap mm
Fiori app for po approval process sap mmLokesh Modem
 
SAP BW to BW4HANA Migration
SAP BW to BW4HANA MigrationSAP BW to BW4HANA Migration
SAP BW to BW4HANA Migrationssuserff70ea1
 
Creating transaction and screen variants
Creating transaction and screen variantsCreating transaction and screen variants
Creating transaction and screen variantsvenkat reddy
 
Sap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4hSap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4hAkhilendra Singh
 
Testing SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HPTesting SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HPSAP Solution Extensions
 
Electronic bank statement mt940 format
Electronic bank statement mt940 formatElectronic bank statement mt940 format
Electronic bank statement mt940 formatHisham Emam
 
What's New in SAP HANA View Modeling
What's New in SAP HANA View ModelingWhat's New in SAP HANA View Modeling
What's New in SAP HANA View ModelingSAP Technology
 
inter-company-reconciliation in SAP
inter-company-reconciliation in SAPinter-company-reconciliation in SAP
inter-company-reconciliation in SAPRajeev Kumar
 
SAP System copy
SAP System copySAP System copy
SAP System copyashish_bbd
 
12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshootingkratos1979
 
Solution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - ConfigurationSolution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - ConfigurationLinh Nguyen
 

Mais procurados (20)

Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
 
SAP Adobe forms
SAP Adobe formsSAP Adobe forms
SAP Adobe forms
 
Guidelines to determine the right interface when integrating with sap systems...
Guidelines to determine the right interface when integrating with sap systems...Guidelines to determine the right interface when integrating with sap systems...
Guidelines to determine the right interface when integrating with sap systems...
 
Errors in process chains
Errors in process chainsErrors in process chains
Errors in process chains
 
SAP Financial Closing Cockpit
SAP Financial Closing CockpitSAP Financial Closing Cockpit
SAP Financial Closing Cockpit
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guide
 
Bapi programming
Bapi programmingBapi programming
Bapi programming
 
Fiori app for po approval process sap mm
Fiori app for po approval process sap mmFiori app for po approval process sap mm
Fiori app for po approval process sap mm
 
SAP BW to BW4HANA Migration
SAP BW to BW4HANA MigrationSAP BW to BW4HANA Migration
SAP BW to BW4HANA Migration
 
Sap fico satyanarayana material
Sap fico satyanarayana materialSap fico satyanarayana material
Sap fico satyanarayana material
 
Creating transaction and screen variants
Creating transaction and screen variantsCreating transaction and screen variants
Creating transaction and screen variants
 
Sap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4hSap fiori-ux-architecture-for-s4h
Sap fiori-ux-architecture-for-s4h
 
Testing SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HPTesting SAP HANA applications with SAP LoadRunner by HP
Testing SAP HANA applications with SAP LoadRunner by HP
 
Sap workflow training
Sap workflow trainingSap workflow training
Sap workflow training
 
Electronic bank statement mt940 format
Electronic bank statement mt940 formatElectronic bank statement mt940 format
Electronic bank statement mt940 format
 
What's New in SAP HANA View Modeling
What's New in SAP HANA View ModelingWhat's New in SAP HANA View Modeling
What's New in SAP HANA View Modeling
 
inter-company-reconciliation in SAP
inter-company-reconciliation in SAPinter-company-reconciliation in SAP
inter-company-reconciliation in SAP
 
SAP System copy
SAP System copySAP System copy
SAP System copy
 
12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting12753028 scot-configuration-troubleshooting
12753028 scot-configuration-troubleshooting
 
Solution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - ConfigurationSolution Manager 7.2 SAP Monitoring - Part 2 - Configuration
Solution Manager 7.2 SAP Monitoring - Part 2 - Configuration
 

Destaque

CRM Implementations and Upgrades
CRM Implementations and UpgradesCRM Implementations and Upgrades
CRM Implementations and UpgradesPeter Ware PMP
 
CRM Fundamentals-I
CRM Fundamentals-ICRM Fundamentals-I
CRM Fundamentals-ISrini Vasan
 
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodologyJNTU University
 
Email Marketing with SAP CRM
Email Marketing with SAP CRMEmail Marketing with SAP CRM
Email Marketing with SAP CRMStrongView
 

Destaque (6)

CRM Service
CRM ServiceCRM Service
CRM Service
 
CRM Implementations and Upgrades
CRM Implementations and UpgradesCRM Implementations and Upgrades
CRM Implementations and Upgrades
 
CRM Fundamentals-I
CRM Fundamentals-ICRM Fundamentals-I
CRM Fundamentals-I
 
Crm service updated (PPT)
Crm service updated (PPT)Crm service updated (PPT)
Crm service updated (PPT)
 
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodology
 
Email Marketing with SAP CRM
Email Marketing with SAP CRMEmail Marketing with SAP CRM
Email Marketing with SAP CRM
 

Semelhante a Transaction launcher

SAP PR released
SAP PR releasedSAP PR released
SAP PR releasedpiwal123
 
Trigger bi process chain from ecc
Trigger bi process chain from eccTrigger bi process chain from ecc
Trigger bi process chain from eccObaid shaikh
 
CO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdfCO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdfssuser878ec2
 
Lightning Workshop London
Lightning Workshop LondonLightning Workshop London
Lightning Workshop LondonKeir Bowden
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creationyoung moon woo
 
Find out userexits in sap
Find out userexits in sapFind out userexits in sap
Find out userexits in sapDau Thanh Hai
 
Userexit%29badi
Userexit%29badiUserexit%29badi
Userexit%29badiromeo12345
 
Hr structural auths
Hr   structural authsHr   structural auths
Hr structural authshkodali
 
Smp agentry app_development
Smp agentry app_developmentSmp agentry app_development
Smp agentry app_developmentGanesh Kumar
 
Suse service virtualization_image_set up_guide_140214
Suse service virtualization_image_set up_guide_140214Suse service virtualization_image_set up_guide_140214
Suse service virtualization_image_set up_guide_140214Darrel Rader
 
Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4
Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4
Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4Yusuf Hadiwinata Sutandar
 
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
How to build unified Batch & Streaming Pipelines with Apache Beam and DataflowHow to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
How to build unified Batch & Streaming Pipelines with Apache Beam and DataflowDaniel Zivkovic
 
sap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdfsap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdfJagadishBabuParri
 
sap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdfsap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdfJagadish Babu
 
Sap hana and bobi 4.0 universe design guide (multi source) v3
Sap hana and bobi 4.0   universe design guide (multi source) v3Sap hana and bobi 4.0   universe design guide (multi source) v3
Sap hana and bobi 4.0 universe design guide (multi source) v3Jothi Periasamy
 
Exploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP SystemsExploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP SystemsOnapsis Inc.
 

Semelhante a Transaction launcher (20)

SAP PR released
SAP PR releasedSAP PR released
SAP PR released
 
Trigger bi process chain from ecc
Trigger bi process chain from eccTrigger bi process chain from ecc
Trigger bi process chain from ecc
 
CO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdfCO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdf
 
Lightning Workshop London
Lightning Workshop LondonLightning Workshop London
Lightning Workshop London
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
CATS Approval.pdf
CATS Approval.pdfCATS Approval.pdf
CATS Approval.pdf
 
Find out userexits in sap
Find out userexits in sapFind out userexits in sap
Find out userexits in sap
 
Userexit%29badi
Userexit%29badiUserexit%29badi
Userexit%29badi
 
Salesforce Lightning workshop
Salesforce Lightning workshopSalesforce Lightning workshop
Salesforce Lightning workshop
 
Hr structural auths
Hr   structural authsHr   structural auths
Hr structural auths
 
Smp agentry app_development
Smp agentry app_developmentSmp agentry app_development
Smp agentry app_development
 
Suse service virtualization_image_set up_guide_140214
Suse service virtualization_image_set up_guide_140214Suse service virtualization_image_set up_guide_140214
Suse service virtualization_image_set up_guide_140214
 
Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4
Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4
Cloud Forms Iaa S V2wp 6299847 0411 Dm Web 4
 
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
How to build unified Batch & Streaming Pipelines with Apache Beam and DataflowHow to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
How to build unified Batch & Streaming Pipelines with Apache Beam and Dataflow
 
121ontapi
121ontapi121ontapi
121ontapi
 
sap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdfsap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdf
 
sap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdfsap_cloud_platform_tutorial.pdf
sap_cloud_platform_tutorial.pdf
 
Sso Mac
Sso MacSso Mac
Sso Mac
 
Sap hana and bobi 4.0 universe design guide (multi source) v3
Sap hana and bobi 4.0   universe design guide (multi source) v3Sap hana and bobi 4.0   universe design guide (multi source) v3
Sap hana and bobi 4.0 universe design guide (multi source) v3
 
Exploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP SystemsExploiting Critical Attack Vectors to Gain Control of SAP Systems
Exploiting Critical Attack Vectors to Gain Control of SAP Systems
 

Transaction launcher

  • 1. Almost Everything about Transaction Launcher – Part I Applies to: SAP CRM WebClient UI. For more information, visit the Customer Relationship Management homepage. Summary While there are many documents that explain how to take advantage of Transaction Launcher functionality in CRM, I personally have not come across one which explains how to troubleshoot it. This article is a humble attempt. It includes configuration steps, Http Watch traces and debugging. Due to the sheer size of this document, I have only covered three most commonly used scenarios. I will be writing Part II soon, so stay tuned. The three different scenarios used are: 1. Using Transaction Launcher to launch http://www.google.com in an external window 2. Using Transaction Launcher to launch MiddleWare transaction SMW01 within the same window on the same system 3. And finally launch ECC transaction VA01 in the same window Author: Hasan Zubairi Company: SAP Created on: 12 June, 2011 Author Bio I have been with SAP for a little over 5 years working as a Senior Support Consultant I in Primary Support, AGS Business Suite and Technology. I was working with SAP Retail POS and moved to CRM in 2009. I mainly focus on FRW, IC and Sales components. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1
  • 2. Almost Everything about Transaction Launcher – Part I Table of Contents Scenario 1 - Using Transaction Launcher to launch http://www.google.com in an external window ................. 3 Define URL ...................................................................................................................................................... 3 Configure Transaction Launcher ..................................................................................................................... 3 Define Logical Link for the URL (Navigation Bar Customizing) ...................................................................... 6 Test in WebUI ............................................................................................................................................... 10 HTTP Watch.................................................................................................................................................. 12 Debugging ..................................................................................................................................................... 13 Scenario II - Using Transaction Launcher to launch MiddleWare transaction SMW01 within the same window on the same system .......................................................................................................................................... 17 Create BOR Object Type .............................................................................................................................. 17 Test the newly created BOR Object .............................................................................................................. 19 Check Logical Systems and ITS URL ........................................................................................................... 22 Configure Transaction Launcher ................................................................................................................... 23 Define Logical Link for the URL (Navigation Bar Customizing) .................................................................... 30 Test in WebUI ............................................................................................................................................... 34 HTTP Watch.................................................................................................................................................. 36 Check Configuration for New Window .......................................................................................................... 44 Test # 2 in WebUI ......................................................................................................................................... 46 Test in SAPGUI ............................................................................................................................................. 49 Debugging ..................................................................................................................................................... 51 Test using .htm File ....................................................................................................................................... 62 Edit Configuration .......................................................................................................................................... 64 WebUI Final Test Result ............................................................................................................................... 68 Scenario III - Launch ECC transaction VA01 in the same window ................................................................... 68 Find the RFC-Destination (ECC System – Does not apply to multiple backend scenarios) ........................ 68 Connect to ECC ............................................................................................................................................ 70 Create BOR Object Type in ECC .................................................................................................................. 72 Test the newly created BOR Object .............................................................................................................. 74 Check Logical Systems and ITS URL ........................................................................................................... 78 Configure Transaction Launcher ................................................................................................................... 80 Define Logical Link for the URL (Navigation Bar Customizing) .................................................................... 87 Test in WebClient UI ..................................................................................................................................... 91 HTTP Watch.................................................................................................................................................. 93 Check Configuration.................................................................................................................................... 102 Debugging ................................................................................................................................................... 105 Debugging in ECC ...................................................................................................................................... 111 Back to Debugging in CRM ......................................................................................................................... 114 Changes in Configuration ........................................................................................................................... 121 Test in WebClient UI ................................................................................................................................... 122 Related Content .............................................................................................................................................. 131 Copyright......................................................................................................................................................... 132 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 2
  • 3. Almost Everything about Transaction Launcher – Part I Scenario 1 - Using Transaction Launcher to launch http://www.google.com in an external window In this scenario we will configure Launch Transaction to launch URL http://www.google.com in a separate window. We will then examine it using HTTP Watch and then finally debug. Define URL Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework Definition -> Technical Role Definition –> Transaction Launcher ->Define URLs and Parameters Configure Transaction Launcher Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework Definition -> Technical Role Definition –> Transaction Launcher -> Configure Transaction Launcher SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 3
  • 4. Almost Everything about Transaction Launcher – Part I 1. Enter anything as Transaction Launcher ID (Z_HZ_GOOGLE in our example) 2. Provide a meaningful description 3. Choose a class name, starting with X, Y or Z (it will be created automatically) 4. Activate checkbox for “Stateful” and deactivate "Raise Veto" SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 4
  • 5. Almost Everything about Transaction Launcher – Part I 5. Transaction Type must be B (URL transaction) 6. URL ID the URL ID we have defined in Define URL section 7. Skip the rest of the parameters and then Complete. 8. You can check the Class generated by the Wizard in transaction SE24 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 5
  • 6. Almost Everything about Transaction Launcher – Part I Define Logical Link for the URL (Navigation Bar Customizing) Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -> Technical Role Definition –> Define Navigation Bar Profile -> Define Logical links You must create a logical link of type C (Launch Transaction) linked to our transaction launcher ID 1. Click on New entries: SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 6
  • 7. Almost Everything about Transaction Launcher – Part I Logical link ID: Z_HZ_LL_GOO Type: C Launch transaction Target ID: EXECLTX Parameter: Z_HZ_GOOGLE Parameter class: CL_CRM_UI_LTX_NAVBAR_PARAM Title: Hasan's Google LT Description: Hasan's Google Launch Tran 2. Create a direct link group SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 7
  • 8. Almost Everything about Transaction Launcher – Part I 3. Assign Logical Link to Direct Link Group 4. Assign Direct Link Group to our Navigation Bar Profile SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 8
  • 9. Almost Everything about Transaction Launcher – Part I 5. Ensure that the Direct Link Group is visible at Business Role level 6. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework - > Business Roles -> Define Business Role 7. Select the Business Role and Double click Adjust Direct Link Groups SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 9
  • 10. Almost Everything about Transaction Launcher – Part I 8. Ensure that the new Group ID has Visable checked 9. Click on Adjust Direct Link and ensure that Visible is checked for LogLink ID Test in WebUI Now let’s login to WebUI and test the newly created Launch Transaction. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 10
  • 11. Almost Everything about Transaction Launcher – Part I 1. Login to WebUI using the customized Business Role 2. You can see the newly created Launch Transaction “Hasan’s Google LT” pubished under Direct Link Group “Hasan’s DLG for LT” SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 11
  • 12. Almost Everything about Transaction Launcher – Part I HTTP Watch Now let’s test it using HTTP Watch (since we choose Stateful, the Google link will open in a separate browser window) If you remember from the configuration, we defined the Launch Transaction as GET SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 12
  • 13. Almost Everything about Transaction Launcher – Part I On the right pane you see that the URL http://www.google.com was redirected to http://www.google.ca Debugging Now let’s debug: 1. Execute transaction se24 -> *abox*impl -> F4 2. Click on the Transaction Launcher (CL_UICMP_LT_ABOXEXECUTION_IMPL) SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 13
  • 14. Almost Everything about Transaction Launcher – Part I 3. Click Display 4. Double click IP_INBOUNDPLUG 5. Set a breakpoint where you get the ME handler SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 14
  • 15. Almost Everything about Transaction Launcher – Part I 6. Now in WebUI execute the Launch Transaction 7. Once the breakpoint is hit use F6 key to step through the code until you reach me->handler. Execute past it and then double click on it to get Implementation Class of the Launch Transaction 8. Double click on ME->HANDLER in Variables SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 15
  • 16. Almost Everything about Transaction Launcher – Part I 9. Here you’ll see the Launch Transaction Class = Z_HZ_GOOGLE_CL GV_ATYPE = B GV_URL_ID = Z_HZ_GOOGLE 10. In transaction SE24 se24 put the class name (= Z_HZ_GOOGLE_CL ) and hit display 11. Double click on Method BUILD_OTHER_URL_SIMPLE (since we are using Non-BSP URL) and put a breakpoint on gs_url-url_part1 12. Double click on the Variables to get their values SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 16
  • 17. Almost Everything about Transaction Launcher – Part I Scenario II - Using Transaction Launcher to launch MiddleWare transaction SMW01 within the same window on the same system In this section we will use Transaction Launcher to execute MW transaction SMW01 within the same window. To accomplish that we have to pass transaction SMW01 to BOR object ZHZTSTC (copy of TSTC). There is a prepared BOR object in the delivery: TSTC_UIF which will help you skip some of the following steps, but we are not using it in this scenario. First we will make a copy of object TSTC, and then test it. Secondly we will configure Transaction Launcher, then test, debug, use HTTP Watch and finally fix the issues. Create BOR Object Type 1. Execute transaction SE80 2. Click on Workbench -> Edit Object -> click on tab Business Engineering -> choose Business Object Type -> type TSTC -> click on the copy icon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 17
  • 18. Almost Everything about Transaction Launcher – Part I 3. You would have to provide the new Object Type, Program & Object Name (starting with X, Y or Z) 4. Click on copy icon 5. You will be prompted for Package. 6. For this exercise we will use Package “$TMP” 7. Click on save icon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 18
  • 19. Almost Everything about Transaction Launcher – Part I Test the newly created BOR Object To test the newly created BOR Object and it’s EXECUTE method: 1. Execute transaction SE80 2. Click on Repository Information System 3. Expand Business Engineering 4. Expand Business Object Browser 5. Double click on Business Object Types 6. Type ZHZTSTC (the newly created Object) in Object Type field 7. Click on execute icon 8. Double click on the object SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 19
  • 20. Almost Everything about Transaction Launcher – Part I 9. Expand Methods 10. Click on the Edit (Pencil) icon 11. Double click on Method ZHZ_Transaction.Execute 12. Check Synchronous SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 20
  • 21. Almost Everything about Transaction Launcher – Part I 13. Click on Continue icon 14. Now you have to change the Release Status of the newly created Object 15. Click on Edit -> Change Release Status -> Object Type -> To Implemented SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 21
  • 22. Almost Everything about Transaction Launcher – Part I 16. Click on Yes when prompted to save Object Type Check Logical Systems and ITS URL Since we are planning to execute the Launch Transaction in our own system, we have to verify that the Logical System and the corresponding ITS URL is defined. 1. Execute transaction CRMS_IC_CROSS_SYS 2. Here you can see that an entry is already maintained for MappedLogSys OWNLOGSYS SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 22
  • 23. Almost Everything about Transaction Launcher – Part I 3. Logical System is CRECLNT001 4. ITS Client is 001 5. And ITS URL is http://iwdfvm3088.wdf.sap.corp:8000/sap/bc/gui/sap/its/webgui?~transaction=IC_LTX&~okcode=I CEXECUTE Hint: Okcode is not needed any longer. 6. Remember the “transaction=IC_LTX” part in the above URL. We will be needing that during our debugging Configure Transaction Launcher Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework Definition -> Technical Role Definition –> Transaction Launcher -> Configure Transaction Launcher SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 23
  • 24. Almost Everything about Transaction Launcher – Part I 1. Enter anything as Transaction Launcher ID (Z_HZ_SMW01 in our example) 2. Provide a meaningful description 3. Choose a class name, starting with X, Y or Z (it will be created automatically) 4. Activate checkbox for “Stateful” and deactivate "Raise Veto" SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 24
  • 25. Almost Everything about Transaction Launcher – Part I 5. Since we are planning to execute SMW01 in our own system, we select OWNLOGSYS = CRECLNT001 6. BOR Object Type will be the one that we created earlier, ZHZTSTC SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 25
  • 26. Almost Everything about Transaction Launcher – Part I 7. You can type ZHZ* and click on F4 help 8. Click on Information System 9. Check Implemented and uncheck Released 10. Click on continue SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 26
  • 27. Almost Everything about Transaction Launcher – Part I 11. Select the Object you created from the results 12. For Method name, click on the F4 Help and select Execute SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 27
  • 28. Almost Everything about Transaction Launcher – Part I 13. So it should look like 14. Click on continue 15. Now we will define what value will be passed to the parameter 16. For Parameter select “ICWEBCLIENTBORKEYPARAMETER Object Key” 17. For Value type smw01 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 28
  • 29. Almost Everything about Transaction Launcher – Part I 18. Click on Continue twice and then Complete 19. Create a Customizing Request, when prompted 20. Check the Class generated by the Wizard in transaction SE24 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 29
  • 30. Almost Everything about Transaction Launcher – Part I Define Logical Link for the URL (Navigation Bar Customizing) Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -> Technical Role Definition –> Define Navigation Bar Profile -> Define Logical links You must create a logical link of type C (Launch Transaction) linked to our transaction launcher ID 1. Click on New entries: SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 30
  • 31. Almost Everything about Transaction Launcher – Part I Logical link ID: ZHZ1LLSMW0 Type: C Launch transaction Target ID: EXECLTX Parameter: Z_HZ_SMW01 Parameter class: CL_CRM_UI_LTX_NAVBAR_PARAM Title: Hasan's SMW01 LT Description: Hasan's SMW01 Launch Tran 2. Save it. You might be prompted for Customizing Request 3. Find the previously created Direct Link Group and select it SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 31
  • 32. Almost Everything about Transaction Launcher – Part I 4. Double click on Assign Links and click on New Entries SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 32
  • 33. Almost Everything about Transaction Launcher – Part I 5. Ensure that the Direct Link Group is visible at Business Role level 6. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework - > Business Roles -> Define Business Role 7. Select the Business Role and double click Adjust Direct Link Groups SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 33
  • 34. Almost Everything about Transaction Launcher – Part I 8. Double click on Adjust Direct Links Test in WebUI Now let’s login to WebUI and test the newly created Launch Transaction. 1. Login to WebUi using the customized Business Role SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 34
  • 35. Almost Everything about Transaction Launcher – Part I 2. You can see the newly created Launch Transaction “Hasan’s SMW01 LT” pubished under Direct Link Group “Hasan’s DLG for LT” 3. Once you click on it, you will notice that it is trying to Launch Transaction in a new window, instead of the same one SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 35
  • 36. Almost Everything about Transaction Launcher – Part I 4. And the window closes automatically HTTP Watch Now let’s test it using HTTP Watch SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 36
  • 37. Almost Everything about Transaction Launcher – Part I 1. Let’s save the HTTP Watch file and open it up so that we can investigate it in detail SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 37
  • 38. Almost Everything about Transaction Launcher – Part I 2. Click on Find and type genericpostexecution.htm 3. Uncheck everything except for URLs 4. Click on Find Next and it will find the URL with sting genericpostexecution.htm SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 38
  • 39. Almost Everything about Transaction Launcher – Part I 5. Click on the Content tab 6. Copy the contents 7. Paste them in Notepad or another editor SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 39
  • 40. Almost Everything about Transaction Launcher – Part I 8. And save it as an htm file 9. Let’s analyze the contents 10. Remember the ITS URL http://iwdfvm3088.wdf.sap.corp:8000/sap/bc/gui/sap/its/webgui?~transaction=IC_LTX&~okcode=I CEXECUTE You will see that in method POST SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 40
  • 41. Almost Everything about Transaction Launcher – Part I 11. The BOR Object we created ZHZTSTC, its EXECUTE method in Logical System CRECLNT001 12. The parameter smw01 passed to ZHZTSTC SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 41
  • 42. Almost Everything about Transaction Launcher – Part I 13. Let’s launch the newly created htm file (smw01.htm in our example) 14. Click on Yes, when prompted for ActiveX SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 42
  • 43. Almost Everything about Transaction Launcher – Part I 15. Nothing but an empty window 16. By testing the contents of the htm file, we have bypassed CRM, thus proving that the issue is related to either the BOR Object itself or the parameter passed to it, smw01 in this instance SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 43
  • 44. Almost Everything about Transaction Launcher – Part I 17. At this point we have identified two issues. First, the Launch Transaction is opening in a new window. And second, we are getting a blank screen. Check Configuration for New Window If the Launch Transaction has a Stateful property checked, then it will open in a new window 1. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework - > Technical Role Definition –> Transaction Launcher -> Copy/Delete Launch Transaction 2. Search for Launch Transaction Z_HZ_SMW01 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 44
  • 45. Almost Everything about Transaction Launcher – Part I 3. Select it and click on Details 4. Uncheck Stateful and Save 5. Click on Continue when prompted for Customizing Request SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 45
  • 46. Almost Everything about Transaction Launcher – Part I Test # 2 in WebUI Now let’s login to WebUI and test the Launch Transaction again. 1. Login to WebUi using the customized Business Role 2. You can see the newly created Launch Transaction “Hasan’s SMW01 LT” pubished under Direct Link Group “Hasan’s DLG for LT” SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 46
  • 47. Almost Everything about Transaction Launcher – Part I 3. Once you click on it, you will notice that it is now being launched within the same window 4. It tries to execute it, but is unsuccessful SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 47
  • 48. Almost Everything about Transaction Launcher – Part I SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 48
  • 49. Almost Everything about Transaction Launcher – Part I Test in SAPGUI Let’s test the BOR Object and the parameter in SAPGUI 1. In SAPGUI execute transaction sw01 and type in ZHZTSTC for Object/Interface Type 2. Click on Test SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 49
  • 50. Almost Everything about Transaction Launcher – Part I 3. Type smw01 for Transaction Code 4. Execute method EXECUTE 5. It works SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 50
  • 51. Almost Everything about Transaction Launcher – Part I Debugging Now let’s debug: 1. Execute transaction se24 -> *abox*impl -> F4 2. Click on the Transaction Launcher (CL_UICMP_LT_ABOXEXECUTION_IMPL) 3. Click Display 4. Double click IP_INBOUNDPLUG SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 51
  • 52. Almost Everything about Transaction Launcher – Part I 5. Set a breakpoint where you get the ME handler 6. Now in WebUI execute the Launch Transaction 7. Once the breakpoint is hit use F6 key to step through the code until you reach me->handler. Execute past it and then double click on it to get Implementation Class of Launch Transaction SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 52
  • 53. Almost Everything about Transaction Launcher – Part I 8. Double click on ME->HANDLER in Variables 9. Here you’ll see the Launch Transaction Class = Z_HZ_SMW01_CL GV_ATYPE = A GV_BORTYPE = ZHZTSTC GV_MAPPEDLOGSYS = OWNLOGSYS GV_METHOD = EXECUTE SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 53
  • 54. Almost Everything about Transaction Launcher – Part I 10. In transaction SE24 se24 put the class name (Z_HZ_SMW01_CL) and hit display 11. Double click on method PREPARE_DATA_FLOW 12. Here you will see ICWEBCLIENTBORKEYPARAMETER = 'smw01' SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 54
  • 55. Almost Everything about Transaction Launcher – Part I 13. So the correct parameter is passed 14. Remember in Check Logical Systems and ITS URL section, point 6, I told you to remember the “transaction=IC_LTX” part in ITS URL http://iwdfvm3088.wdf.sap.corp:8000/sap/bc/gui/sap/its/webgui?~transaction=IC_LTX&~okcode=I CEXECUTE 15. Execute transaction SE80 and access Function Group IC_LTX SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 55
  • 56. Almost Everything about Transaction Launcher – Part I 16. Double click on Subroutine USER_COMMAND_0100 17. Set a breakpoint where you execute method of BOR Object 18. Hit F8 in the Debugger to hit the new Breakpoint SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 56
  • 57. Almost Everything about Transaction Launcher – Part I 19. Hit F6 until you pass the line where gt_swcont gets populated 20. Double click on GT_SWCONT 21. Correct value is receieved SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 57
  • 58. Almost Everything about Transaction Launcher – Part I 22. Press F8 to exit Debugger 23. If you’re quick you will see the error at the botton of the screen stating “You do not have authorization for transaction smw01”. But we know that we have the proper authorization 24. Execute transaction SE24 and display class Z_HZ_SMW01_CL SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 58
  • 59. Almost Everything about Transaction Launcher – Part I 25. Put a Breakpoint in method PREPARE_DATA_FLOW 26. Execute the Launch Transaction from WebUI and hit F8 when the Debugger hits your first Breakpoint to hit the next Breakpoint 27. Double click on ICWEBCLIENTBORKEYPARAMETER in the Source Code window SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 59
  • 60. Almost Everything about Transaction Launcher – Part I 28. Hit F5 till you pass ICWEBCLIENTBORKEYPARAMETER = 'smw01' 29. Double click on ICWEBCLIENTBORKEYPARAMETER in the Variable window 30. Click on the pencil icon to edit SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 60
  • 61. Almost Everything about Transaction Launcher – Part I 31. Change smw01 to SMW01 (lower to UPPER case) and hit enter 32. Hit F8 to exit debugger (you might have to do it twice since you have another breakpoint set in Subroutine USER_COMMAND_0100 of Function Group IC_LTX 33. Transaction is launched without any issues. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 61
  • 62. Almost Everything about Transaction Launcher – Part I 34. You will get error stating “You do not have authorization for transaction …” in Launch Transaction if the parameter(s) passed are in lower case Test using .htm File To verify our findings, we will do another test by changing SWCONT-VALUE in the .htm file we created earlier 1. Open the htm file in edit mode 2. Change smw01 in SWCONT-VALUE to SMW01 and save it SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 62
  • 63. Almost Everything about Transaction Launcher – Part I 3. Execute the file 4. Click on Yes when prompted to allow ActiveX SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 63
  • 64. Almost Everything about Transaction Launcher – Part I 5. And the transaction is launched without any problems Edit Configuration Now let’s make the configuration changes SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 64
  • 65. Almost Everything about Transaction Launcher – Part I 1. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework Definition -> Technical Role Definition –> Transation Launcher -> Configure Transaction Launcher 2. Click Continue 3. Launch Trans. ID = Z_HZ_SMW01 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 65
  • 66. Almost Everything about Transaction Launcher – Part I 4. Click Continue 5. Leave everything the way it is on this screen 6. Click Continue 7. Leave everything the way it is on this screen 8. Click Continue SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 66
  • 67. Almost Everything about Transaction Launcher – Part I 9. Parameter = ICWEBCLIENTBORKEYPARAMETER Object Key 10. Value SMW01 (all upper case) 11. Click on Continue twice and then Complete 12. Click on Continue when prompted for Customizing Request SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 67
  • 68. Almost Everything about Transaction Launcher – Part I WebUI Final Test Result Execute the Launch Transaction “Hasan’s SMW01 LT” from Navigation Bar again. It should work without any issues Scenario III - Launch ECC transaction VA01 in the same window In this section we will use Transaction Launcher to execute ECC transaction VA01 within the same window. We will use an existing BOR Object in ECC. First we will TEST the BOR Object in ECC, and then we will configure Transaction Launcher, test, debug, use HTTP Watch and finally fix issues if there are any. Find the RFC-Destination (ECC System – Does not apply to multiple backend scenarios) 1. In CRM execute transaction SMOEAC 2. From the Object Type dropdown select Site 3. Leave the Object Name blank and hit the enter key SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 68
  • 69. Almost Everything about Transaction Launcher – Part I 4. Expand R/3 5. Double click on OLTP and the right window pane will populate 6. Click on Site Attributes and in the popup you will see the RFC-Destination 7. The ECC system that we will be connecting to is ALACLNT800 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 69
  • 70. Almost Everything about Transaction Launcher – Part I Connect to ECC 1. In CRM execute transaction SM59 2. Expand ABAP Connections SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 70
  • 71. Almost Everything about Transaction Launcher – Part I 3. Double click on ALACLNT800 (the RFC-Destination we discovered in the previous step) 4. Click on Remote Logon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 71
  • 72. Almost Everything about Transaction Launcher – Part I Create BOR Object Type in ECC 1. In the previous example we created our own copy of BOR Object TSTC in CRM. If WEBCUIF is installed on the ECC system, you can use an already prepared BOR Object TSTC_UIF (both in CRM and ECC). But since WEBCUIF is not installed on this particular ECC system, we would be creating a copy of TSTC. 2. Execute transaction SE80 3. Click on Workbench -> Edit Object -> click on tab Business Engineering -> choose Business Object Type -> type TSTC -> click on the copy icon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 72
  • 73. Almost Everything about Transaction Launcher – Part I 4. You would have to provide the new Object Type, Program & Object Name (starting with X, Y or Z) 5. Click on copy icon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 73
  • 74. Almost Everything about Transaction Launcher – Part I 6. You will be prompted for Package. 7. For this exercise we will use Package “$TMP” 8. Click on save icon Test the newly created BOR Object To test the newly created BOR Object and it’s EXECUTE method: 1. Execute transaction SE80 2. Click on Repository Information System 3. Expand Business Engineering 4. Expand Business Object Browser 5. Double click on Business Object Types 6. Type ZHZECCTSTC (the newly created Object) in Object Type field 7. Click on execute icon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 74
  • 75. Almost Everything about Transaction Launcher – Part I 8. Double click on the Object 9. Expand Methods 10. Click on the Edit (Pencil) icon 11. Double click on Method ZHZ_ECC_Transaction.Execute SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 75
  • 76. Almost Everything about Transaction Launcher – Part I 12. Check Synchronous 13. Click on Continue icon SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 76
  • 77. Almost Everything about Transaction Launcher – Part I 14. Now you have to change the Release Status of the newly created Object 15. Click on Edit -> Change Release Status -> Object Type -> To Implemented 16. Click on Yes when prompted to save Object Type SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 77
  • 78. Almost Everything about Transaction Launcher – Part I Check Logical Systems and ITS URL Since we are planning to execute the Launch Transaction in our own system, we have to verify that the Logical System and the corresponding ITS URL are (?) defined. 1. Execute transaction CRMS_IC_CROSS_SYS 2. Here we see 2 Mapped Logical Systems defined for the same Logical System 3. We are interested in Mapped LogSys ERP_ALA800 as ITS URL: http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode= ICEXECUTE&sap-client=800 is using IC_LTXE where as ITS URL for Mapped LogSys ERP is using crm_cic_rabox which is obsolete (see Related Contect section at the end of this article) 4. Lets verify to which RFC-Destination this Logical Systems is pointing to 5. Execute transaction BD97 6. Here you see Logical System T90CLNT090 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 78
  • 79. Almost Everything about Transaction Launcher – Part I 7. Expand T90CLNT090 8. You can see that T90CLNT090 is connected to ALACLNT800 for both Standard RFC destination for BAPI calls & Standard RFC destination for dialog calls SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 79
  • 80. Almost Everything about Transaction Launcher – Part I Configure Transaction Launcher Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework Definition -> Technical Role Definition –> Transaction Launcher -> Configure Transaction Launcher 1. Enter anything as Transaction Launcher ID (Z_HZ_ECC_VA01 in our example) 2. Component Set = <empty> as we are not putting data from BOL into the LTXE parameters SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 80
  • 81. Almost Everything about Transaction Launcher – Part I 3. Provide a meaningful description 4. Choose a class name, starting with X, Y or Z (it will be created automatically as local object) 5. Uncheck “Stateful” and "Raise Veto" 6. Since we are planning to execute VA01 in our own system, we select ERP_ALA800 = T90CLNT090 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 81
  • 82. Almost Everything about Transaction Launcher – Part I HINT: The display of keys in dropdowns must be activated in the SAP GUI configuration. Otherwise only the second column will be displayed. In SAPLOGON, click upper right corner -> options (I use SAPLOGON 710) 7. You can type ZHZ* and click on F4 help 8. Click on Information System 9. Check Implemented and uncheck Released 10. Click on continue SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 82
  • 83. Almost Everything about Transaction Launcher – Part I 11. Select the Object you created SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 83
  • 84. Almost Everything about Transaction Launcher – Part I 12. For Method Name, click on the F4 Help and select Execute SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 84
  • 85. Almost Everything about Transaction Launcher – Part I 13. It should look like … 14. Click on continue 15. Now we will define what value will be passed to the parameter 16. For Parameter select “ICWEBCLIENTBORKEYPARAMETER Object Key” 17. For Value Type VA01 (upper case) SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 85
  • 86. Almost Everything about Transaction Launcher – Part I 18. Click on Continue twice and then Complete 19. Create a Customizing Request, when prompted 20. Check the Class generated by the Wizard in transaction SE24 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 86
  • 87. Almost Everything about Transaction Launcher – Part I Define Logical Link for the URL (Navigation Bar Customizing) Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework -> Technical Role Definition –> Define Navigation Bar Profile -> Define Logical links You must create a logical link of type C (Launch Transaction) linked to our transaction launcher ID 1. Click on New entries: Logical link ID: ZHZLLVA01 Type: C Launch transaction Target ID: EXECLTX Parameter: Z_HZ_ECC_VA01 Parameter class: CL_CRM_UI_LTX_NAVBAR_PARAM Title: Hasan's VA01 LT Description: Hasan's VA01 Launch Tran SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 87
  • 88. Almost Everything about Transaction Launcher – Part I 2. You might be prompted for Customizing Request 3. Find the originally created Direct Link Group and select it SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 88
  • 89. Almost Everything about Transaction Launcher – Part I 4. Double click on Assign Links and click on New Entries 5. LogLink ID = ZHZLLVA01 Position = 30 6. Hit enter and SAVE SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 89
  • 90. Almost Everything about Transaction Launcher – Part I 7. Ensure that the Direct Link Group is visible at Business Role level 8. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework - > Business Roles -> Define Business Role 9. Select the Business Role and double click Adjust Direct Link Groups SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 90
  • 91. Almost Everything about Transaction Launcher – Part I 10. Double click on Adjust Direct Links and set the visibility indicator 11. Click on Save 12. You might be prompted for Customizing Request Test in WebClient UI Now let’s login to WebClient UI and test the newly created Launch Transaction 1. Login to WebClient UI using the customized Business Role SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 91
  • 92. Almost Everything about Transaction Launcher – Part I 2. You can see the newly created Launch Transaction “Hasan’s VA01 LT” pubished under Direct Link Group “Hasan’s DLG for LT” 3. Upon launching the newly configured transaction, you encounter an error SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 92
  • 93. Almost Everything about Transaction Launcher – Part I 4. Take a closer look at the error: URL http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox call was terminated because the corresponding service is not available. Why is the Launch Transaction launching the ITS URL with crm_cic_rabox? And the message service is not available? HTTP Watch Now let’s test it again using HTTP Watch SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 93
  • 94. Almost Everything about Transaction Launcher – Part I 1. Let’s save the HTTP Watch file and open it up so that we can investigate it in detail 2. Click on Find and type genericpostexecution.htm 3. Uncheck everything except for URLs SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 94
  • 95. Almost Everything about Transaction Launcher – Part I 4. Click on Find Next and it will find the URL with string genericpostexecution.htm 5. Click on the Content tab 6. Copy the contents SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 95
  • 96. Almost Everything about Transaction Launcher – Part I 7. Paste them in Notepad or another editor 8. And save it as an htm file 9. Let’s analyze the contents 10. Remember the ITS URL SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 96
  • 97. Almost Everything about Transaction Launcher – Part I http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okco de=ICEXECUTE&sap-client=800 but instead we see URL http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-client=800 in the attribute action of form tag 11. The PROCLID starts with M (method call) followed by the BOR Object ZHZECCTSTC method EXECUTE in Logical System T90CLNT090 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 97
  • 98. Almost Everything about Transaction Launcher – Part I 12. The parameter SWCONT-VALUE = T90CLNT090ZHZECCTSTCVA01 (LOGSYS = T90CLNT090; BOR Object = ZHZECCTSTC; Parameter = VA01) 13. At this time it is safe to assume that incorrect ITS URL is called by the Launch Transaction 14. Before we start debugging and making configuration changes, let’s verify if the correct URL works SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 98
  • 99. Almost Everything about Transaction Launcher – Part I 15. Change the URL to: http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okco de=ICEXECUTE&sap-client=800 in the attribute action of form tag 16. Let’s launch the newly created htm file SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 99
  • 100. Almost Everything about Transaction Launcher – Part I 17. Click on Yes, when prompted for ActiveX HINT: You can avoid this in the Internet Options – Advanced – Security – Allow Active Content to run in files on My Computer. But be sure you remove this indicator as soon as test are done. 18. You might be prompted for login credentials SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 100
  • 101. Almost Everything about Transaction Launcher – Part I 19. Rendering might be bad 20. But you can type transaction VA01 in transaction field and hit enter SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 101
  • 102. Almost Everything about Transaction Launcher – Part I 21. Now it is confirmed that the problem is with the URL Check Configuration If the Launch Transaction has a Stateful property checked, then it will open in a new window SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 102
  • 103. Almost Everything about Transaction Launcher – Part I 1. Transaction SPRO -> SAP Reference IMG –> Customer Relationship Management -> UI Framework - > Technical Role Definition –> Transaction Launcher -> Copy/Delete Launch Transaction 2. Search for Launch Transaction Z_HZ_ECC_VA01 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 103
  • 104. Almost Everything about Transaction Launcher – Part I 3. Select it and click on Details 4. You can see in Definition 3 is ERP_ALA800 (Mapped Logical System) 5. To confirm it execute transaction CRMS_IC_CROSS_SYS SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 104
  • 105. Almost Everything about Transaction Launcher – Part I 6. So why is it that the URL for Mapped Logical System ERP is called? Debugging Let’s debug and find out. 1. Execute transaction se24 -> *abox*impl -> F4 2. Click on the Transaction Launcher (CL_UICMP_LT_ABOXEXECUTION_IMPL) 3. Click Display 4. Double click IP_INBOUNDPLUG SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 105
  • 106. Almost Everything about Transaction Launcher – Part I 5. Set a breakpoint where you get the ME handler 6. Now in WebClient UI execute the Launch Transaction SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 106
  • 107. Almost Everything about Transaction Launcher – Part I 7. Once the breakpoint is hit use F6 key to step through the code until you reach me->handler. Execute past it and then double click on it to get Implementation Class of Launch Transaction 8. Double click on ME->HANDLER in Variables SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 107
  • 108. Almost Everything about Transaction Launcher – Part I 9. Here you’ll see the Launch Transaction Class = Z_HZ_ECC_VA01_C GV_ATYPE = A GV_BORTYPE = ZHZECCTSTC GV_MAPPEDLOGSYS = ERP_ALA800 GV_METHOD = EXECUTE 10. In transaction SE24 se24 put the class name (Z_HZ_ECC_VA01_CL) and hit display 11. Double click on method PREPARE_DATA_FLOW SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 108
  • 109. Almost Everything about Transaction Launcher – Part I 12. Here you will see ICWEBCLIENTBORKEYPARAMETER = 'VA01' 13. So the correct parameter is passed but let’e verify that during debugging by putting a breakpoint in class Z_HZ_ECC_VA01_CL method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 109
  • 110. Almost Everything about Transaction Launcher – Part I 14. Switch back to your debugger and hit the F8 key to hit the new breakpoint 15. Double click on the ICWEBCLIENTBORKEYPARAMETER to see the value SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 110
  • 111. Almost Everything about Transaction Launcher – Part I 16. Since the ITS URL is http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okco de=ICEXECUTE&sap-client=800 in the target ECC we use tran se80 to access Funstion Group IC_LTXE (for ERP 2005 and up - IC_LTXR for PI systems) and put a breakpoint in Subroutine USER_COMMAND_0100 Debugging in ECC 1. Logon to the target ECC system 2. Remember message service cannot be reached 3. That can be easily checked by executing transaction SICF in ECC 4. Type CRM_CIC_RABOX in Service Name and click on Execute SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 111
  • 112. Almost Everything about Transaction Launcher – Part I 5. Here you will see that service CRM_CIC_RABOX is inative (greyed out) 6. We can activate the service if we like, but the issue that we are trying to figure out is why the Launch Transaction is calling incorrect URL 7. Execute transaction SE80 8. From the dropdown select Function Group 9. Type IC_LTXE and hit enter 10. Expand Subroutines 11. Double click on USER_COMMAND_0100 12. And put a breakpoint where on call function 'EWB_PROC_CREATE’ SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 112
  • 113. Almost Everything about Transaction Launcher – Part I 13. Switch back to your debugger and hit F8 to continue to this new breakpoint 14. You will notice that the debugger window is closed and your breakpoint is never hit which makes sense since for some reason ITS is calling CRM_CIC_RABOX and not IC_LTXE SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 113
  • 114. Almost Everything about Transaction Launcher – Part I Back to Debugging in CRM 1. Execute transaction se24 -> CL_CRM_IC_ACTION_BOR_UTIL and click on Display 2. Put a breakpoint in method CONSTRUCTOR where you get the me->handler SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 114
  • 115. Almost Everything about Transaction Launcher – Part I 3. Hit the back button and place another breakpoint in method GET_ITS_URL 4. I am sure by this time either your WebClient UI or Debugger or both have timed out 5. Execute Launch Transaction Hasan’s VA01 LT again in WebClient UI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 115
  • 116. Almost Everything about Transaction Launcher – Part I 6. Hit F6 until you get past the line where you get logsys 7. Here you will see that: MAPPED_LOGSYS = ERP_ALA800 LOGSYS = T90CLNT090 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 116
  • 117. Almost Everything about Transaction Launcher – Part I 8. FOUND = ABAP_TRUE 9. Look at the highlighted code below loop at cl_crm_ic_action_bor_util=>setup_tab assigning <fs> where logsys = logsys. if <fs>-its_url is not initial. found = abap_true. exit. else. found = abap_false. endif. endloop. found = abap_true based on logsys and not mapped_logsys 10. Let’s take it further and examine the case/endcase SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 117
  • 118. Almost Everything about Transaction Launcher – Part I case found. when abap_true. me->its_url = <fs>-its_url. me->its_client = <fs>-its_client. me->logsys = <fs>-logsys. when abap_false. raise exception type cx_crm_ui_ltx exporting textid = cx_crm_ui_ltx=>no_its_url mapped_logsys = mapped_logsys. when abap_undefined. raise exception type cx_crm_ui_ltx exporting textid = cx_crm_ui_ltx=>no_logsys_error mapped_logsys = mapped_logsys. endcase. 11. Hit F6 until you pass the endcase ME->ITS_URL = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap- client=800 ME->ITS_CLIENT = 800 ME->LOGSYS = T90CLNT090 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 118
  • 119. Almost Everything about Transaction Launcher – Part I 12. The whole CONSTRUCTOR is based on finding the correct URL on value of LOGSYS instead of MAPPED_LOGSYS, thus finding URL: http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap-client=800 instead of: http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode= ICEXECUTE&sap-client=800 13. Hit F8 to hit the breakpoint in method GET_ITS_URL and then hit F6 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 119
  • 120. Almost Everything about Transaction Launcher – Part I 14. You will notice that that the ITS URL that is determined is incorrect already RV_RESULT = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap- client=800 15. Let’s take it a step further … hit F7 and you will reach class CL_CRM_UI_LTX_PAGE_LAYOUT_SRV method BUILD_AND_ADD_EXECUTION_LAYOUT SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 120
  • 121. Almost Everything about Transaction Launcher – Part I 16. Hit F6 several times until you get the values for the following variables LV_ITS_URL = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/crm_cic_rabox?sap- client=800 LV_ITS_CLIENT = 800 LV_OKCODE = EXECUTE 17. Examine the code: IF lv_its_url CS 'WEBGUI'. " upper/lower case is ignored lv_okcode = 'ICEXECUTE'. " new ITS integration using WEBGUI ELSE. lv_okcode = 'EXECUTE'. " old ITS integration using *RABOX* ENDIF. LV_OKCODE = EXECUTE, meaning that old ITS integration is used. 18. I think that by now we have proved that the ITS URLs for the Launch Transactions are called based on LOGSYS and not MAPPED_LOGSYS. This is because the coding has been changed in the core application (don’t ask me when) 19. Hit F8 to end the debugging session Changes in Configuration Let’s remove the unwanted URL and retest 1. Execute transaction CRMS_IC_CROSS_SYS 2. Delete the ITS URL for MAPPED_LOGSYS = ERP SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 121
  • 122. Almost Everything about Transaction Launcher – Part I 3. Click on Save and you will be prompted for Customizing Request. 4. Click on Continue Test in WebClient UI Logout of your current WebClient UI session and log back in again to avoid any issues due to caching 1. Execute Launch Transaction Hasan’s VA01 LT SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 122
  • 123. Almost Everything about Transaction Launcher – Part I 2. Your first breakpoint in class CL_CRM_IC_ACTION_BOR_UTIL method CONSTUCTOR will be hit 3. Hit F6 until you get the values for the following: LOGSYS = T90CLNT090 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 123
  • 124. Almost Everything about Transaction Launcher – Part I ME->ITS_URL = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode= ICEXECUTE&sap-client=800 ME->ITS_CLIENT = 800 ME->LOGSYS = T90CLNT090 FOUND = X 4. As you can see that already it is choosing the correct ITS URL 5. Click on F8 to hit your next breakpoint in class CL_CRM_IC_ACTION_BOR_UTIL method GET_ITS_URL where you will see that: RV_RESULT = http://pwdf6373.wdf.sap.corp:8045/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode= ICEXECUTE&sap-client=800 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 124
  • 125. Almost Everything about Transaction Launcher – Part I 6. Click on F8 to hit your next breakpoint. 7. This one will be in target ECC in Function Group SAPLIC_LTXE subroutine USER_COMMAND_0100 8. Hit F6 until you get past the line where variable LV_PROCLID gets populated SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 125
  • 126. Almost Everything about Transaction Launcher – Part I 9. To find out what parameter is receieved by BOR Object ZECCTSTC method EXECUTE, execute transaction SE80 (in ECC) 10. From the dropdown select Program and type ZHZ_ECC_RSOWTSTC (remember step 5 of section Create BOR Object Type in ECC) SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 126
  • 127. Almost Everything about Transaction Launcher – Part I 11. Right click on Object Name ZHZ_ECC_RSOWTSTC select Display and then In Same Window 12. Click on Program SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 127
  • 128. Almost Everything about Transaction Launcher – Part I 13. Unfortunately you can only set a Session breakpoint here and not an External 14. Switch back to the debugger screen 15. From the menu, click on Breakpoints -> Breakpoint at -> Breakpoint in Source Code SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 128
  • 129. Almost Everything about Transaction Launcher – Part I 16. Fill in the following values Program = ZHZ_ECC_RSOWTSTC Include = <OBJECT> Row 19 17. Click Continue 18. Hit F8 so that the new breakpoint is hit 19. Hit F6 until you get the value for OBJECT-KEY-CODE SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 129
  • 130. Almost Everything about Transaction Launcher – Part I 20. Hit F8 to exit debugger 21. And the Launch Transaction Hasan’s VA01 LT is successful SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 130
  • 131. Almost Everything about Transaction Launcher – Part I Related Content Here are some helpful Notes that I usually reference: 1360904 SAP GUI for HTML: Application services do not start 914112 ITS service CRM_CIC_RABOX causes UI problems 1247621 LTX: No data loss popup of transaction launcher in portal 986257 CRM Web UI: Protocol switch in HTTPS scenarios 900814 CRM: Generating URLs in proxy scenarios 1385426 Use basis code for creating URLs 1360019 Check existence of function module remotely (URL creation) 1298695 Parameters not passed to launch transaction 1013376 FAQ Note: CRM IC Web Client Transaction Launcher 1388655 Transaction ICEXECUTE is unknown 1139385 Error message 00031 - Transaction ICEXECUTE is unknown 1362533 ITS based launch transactions do not close sessions 1135335 ITS based launch transactions do not close sessions 990216 FAQ: Display problems for SAPGUI transactions via ITS 1148829 Locally executed launch transactions ignore HTTPURLOC 1055324 POST parameters lost during redirect 985587 Launch transaction handler class fails with syntax errors 974794 'Hide Dialog' setting for a URL launch transaction 962265 Launch transaction wizard fails with syntax errors for BOR 913601 Generation error in PCUI based launch transactions 1248650 Back Button on Transaction Launched leads to a blank screen For more information, visit the Customer Relationship Management homepage SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 131
  • 132. Almost Everything about Transaction Launcher – Part I Copyright © Copyright 2011 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Oracle Corporation. JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 132