Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

SAP Community Network Wiki - CRM - CRM WebUI - Launching transactions in GUI f...

Page 1 of 5

Log In Register About Us How to Contribute Store

Welcome Guest

SDN Community BPX Community Business Analytics University Alliances SAP EcoHub
Home Forums Wiki Blogs Articles eLearning Downloads Code Exchange Career Center Events InnoCentive Idea Place SAP Help Portal

CRM WebUI - Launching transactions in GUI for Windows


Added by Ranganath Prasad, last edited by CRM Beginner on Jul 28, 2011

Applies to:
Useful Information
• SAP CRM Short quick summary to catch the reader's
• CRM Web UI attention and of course the search engine
• CRM Web IC
• BSP GUI for Windows
• SAP shortcuts

Summary
CRM contact center and sales team users extensively use ECC transactions in the daily business. The new CRM
Web UI uses ITS based GUI for HTML to launch ECC transactions. But many SAP CRM users would like to continue using GUI
for Windows rather than ITS based GUI for HTML for many reasons like-- Screen rendering performance, GUI response to key
strokes etc. Unlike PCUI, The new CRM Web UI does not require SAP portals in CRM landscape.The following solution will
discuss about the launching of ECC transactions in GUI for Windows with out any portal Transaction IViews.

Author:
Ranganatha P Kurupati
Company: Bespoke Consulting LLC.
Created on: 02/22/2010
Author Bio
I'm currently working as a CRM Consultant in Win IC, Web IC , Sales, Service and Marketing areas. I have over 10 years
of experience across SAP modules and specialized in SAP SRM, CRM, cProjects, Travel and Expense mgmt and Workflow.

Introduction
SAP transactions codes can be saved as shortcuts and used to launch transactions. The same shortcut files can be
generated dynamically using ABAP. Then the generated SAP shortcuts will be sent to Browser as a MIME objects in HTTP
responses which will inturn launch the transaction in GUI for Windows. This solution will be implemented using Business Server
Pages (BSP) and integrated into CRM Transaction Launcher.

Solution in Detail

Step-1. Create a BSP Application and then create a page with flow logic.

http://wiki.sdn.sap.com/wiki/display/CRM/CRM+WebUI+-+Launching+transactions+in+... 11/3/2011
SAP Community Network Wiki - CRM - CRM WebUI - Launching transactions in GUI f... Page 2 of 5

Step-2. Create URL ID for the BSP created in Step-1.

Step-3. Transaction launcher


3.1 Start Transaction launcher wizard.
3.2 Enter Launch Transaction ID, This Launch transaction ID will be used as parameter in Logical
Link ID creation (Step-4).

3.3 Enter a Class name.


3.4 Enter URL ID created in Step-2.

http://wiki.sdn.sap.com/wiki/display/CRM/CRM+WebUI+-+Launching+transactions+in+... 11/3/2011
SAP Community Network Wiki - CRM - CRM WebUI - Launching transactions in GUI f... Page 3 of 5

3.5 Enter an import parameter ID and value for passing current customer data. This data will be read
in BSP as explained in Step-7.1

Step-4. Create a Logical Link ID and assign the Transaction launcher ID (refer 3-2) as parameter.

Step-5. Create a Direct link group and assign the logical link ID created in Step-4.

Step-6. Add the Direct link group to the Navigation bar Profile assigned in your Business Role.

http://wiki.sdn.sap.com/wiki/display/CRM/CRM+WebUI+-+Launching+transactions+in+... 11/3/2011
SAP Community Network Wiki - CRM - CRM WebUI - Launching transactions in GUI f... Page 4 of 5

Step-7. Implement logic in BSP created step-1.


7.1 Read current customer.
lv_customer_id = runtime->server->request->get_form_field( 'CUSTOMER_ID' ).

7.2 Create a SAP shortcut using Function module

DATA: l_shortcut TYPE string.

CALL FUNCTION 'SWN_CREATE_SHORTCUT'


DESTINATION lv_ecc_rfcdest
EXPORTING
i_transaction = 'VA01'
I_TITLE = 'Launching Sales order...'
IMPORTING
shortcut_string = lv_shortcut
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
OTHERS = 1.

7.3 Populate data in the Initial screen of Transaction VA01 using Shortcut parameters. For all
available shortcut parameters, consult the SAP Note 103019.

REPLACE FIRST OCCURRENCE OF 'Command=VA01' in l_shortcut WITH


'Command="VA01 KUAGV-KUNNR=CUSTOMERNO;VBAK-AUART=OR;VBAK- VKORG=US01;VBAK-VTWEG=01;VBAK-
SPART=01"'.

REPLACE FIRST OCCURRENCE OF 'CUSTOMERNO' in l_shortcut with lv_customer_id.

7.4 Send SAP shortcut as a MIME object in BSP response.


DATA: l_xshortcut TYPE xstring.
runtime->server->response->set_header_field( name = 'content-type'
value = 'application/x-sapshortcut' ).

CALL METHOD cl_http_utility=>if_http_utility~encode_utf8


EXPORTING
unencoded = l_shortcut
RECEIVING
encoded = l_xshortcut
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL METHOD runtime->server->response->set_data( data = l_xshortcut ).
ENDIF.

http://wiki.sdn.sap.com/wiki/display/CRM/CRM+WebUI+-+Launching+transactions+in+... 11/3/2011
SAP Community Network Wiki - CRM - CRM WebUI - Launching transactions in GUI f... Page 5 of 5

Results
Click on ECC Txn Direct link . ECC Sales Order will be launched in GUI for Windows.

If user is NOT logged in into ECC, A small pop up will be displayed prompting to enter a password. On entering password the
control will be directly transferred to second screen of transaction VA01 by pre-populating Customer ID and Sales area data and
skipping the initial screen.

If the user is already logged in into ECC, The control will be directly transferred to second screen of transaction VA01 by pre-
populating Customer ID and Sales area data and skipping initial screen.

Limitations
Initial login into SAP Application Server is required if SSO for GUI for Windows is not set up from your workstation.

Related Content
SAP Notes

099054 - SAPshortcut: Collective note


396559 - SAPshortcut: User needed for SNC logon to a R/3 system
138498 - Single Sign-On Solutions

SAP Help

http://www.microsoft.com/isv/sap/technology/interop/ad.aspx

http://help.sap.com/saphelp_nw04s/helpdata/en/e6/56f466e99a11d1a5b00000e835363f/frameset.htm&nbsp

http://help.sap.com/saphelp_crm40/helpdata/en/92/54ee09984b11d687bc005004f2f41f/content.htm

Labels
webui webic shortcut crm2007 crm

Comments (19)

Contact Us Site Index Marketing Opportunities Legal Terms Privacy Impressum

Powered by SAP NetWeaver

http://wiki.sdn.sap.com/wiki/display/CRM/CRM+WebUI+-+Launching+transactions+in+... 11/3/2011

You might also like