Skip to Content
Author's profile photo Former Member

CRM 2007 How to –2 A( Transaction Launcher)

Transaction Launcher is not a new feature of CRM 2007 but still people are not very familier with it. I have got many mails to clarify the doubts on this topic so I thought why not write a blog.

You can call any URL say https://www.sdn.sap.comhttp://www.google.com/ or SAP GUI transaction by using Transaction Launcher. In this Blog I will call the SAP ECC transaction VL01N via the CRM Web UI. You just have to follow the below mentioned steps:

Step1:  Go to Transaction SE80 in the target system in our case it is ECC system and click on the Edit Object button shown below

image

Step2 : Go to Business Engg tab and select Business Object type TSTC and copy it to Z object type.

image

image 

Step 3: Once copied again go back to Tr. SE80 and open Object ZTSTC, go to edit mode, Expand the tree Methods and double click on method ZTransaction.Execute. Select the Synchronus checkbox and save.

image 

Step 4: Change the status of the object “To be Implemented”, Generate the object by clicking the Generate button or CTRL+F3. Then change the status of the object to “To released”

image

image 

Step 5: Now go to Tr. CRMS_IC_CROSS_SYS and maintian the entry for your destination system. In our case the logical system name is ECCDEV. The URL for ITS should look like:-http://:/sap/bc/gui/sap/its/webgui/!?~transaction=IC_LTXE&~okcode=ICEXECUTE 

image 

Step 6: Now go to Tr. SPRO and follow the link shown below to launch the Transaction Launcher wizard.

image 

Step 7: Follow the instruction given below to complete the wizard.

image

image

Give any class name which does not exist in the system as wizard is going to generate this class for you. If you select the checkbox Stateful system will open a new window when you will click on the link. I want to display it in the same screen so I have left it blank

image

image 

Skip the screen for activity clipboard by pressing continue and end the wizard by pressing Complete.

Step 8: Integrate the URL into the NavBar: Go to the Navigation Bar profile with the path shown below.

image 

Go to Define Logical link and hit the New Entries button and create and entry as shown bleow, do not change the parameter class, save your changes.

image

Go to Define Work Center Link and  create a new work center and assigned the above created logical link to the work Center.

image

image 

Now go to define work center and assign the above create link to either newly created work center or the existing work center ( based on your requiement whether you want a seperate work centre for this or you want to see the link in the existing work centre)

image 

Now you can assign this work center to your profile so that when you log in to the WebUI with that profile this work center is available there.

image 

Step 9: Now you are just one step to see this in the Web UI. Go to the Business Role and make this link visible to the UI.

image

 

image

 

image

Save your changes and login to the Web UI with the profile you have done those changes.

 image

 

image 

You can see the R/3 transaction in your SAP CRM Web UI screen.

One very important thing, If you want to transport this to your QA system make sure that you change the package of the system created class YCL_ECC_VL01N to your Z package as system creates this class into $temp.

In my next blog I will explain how to call any website from CRM system.

Assigned Tags

      67 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      hi, this blog is very useful, looking forward for your future blogs.good job.
      Thanks,
      Kam
      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Thanks Kam.
      Author's profile photo Former Member
      Former Member
      Hi Vikash,
      I am using CRM 2007 and ECC 6.0. I did all the steps to display VL03N from ECC in portal. As soon as I click the link in the work center in the portal of customer agent screen, I am getting a logon screen and I am using an ID to logon to that system (Which is ECC) and It is opening up the screen well fr 1 second and after that it's getting closed automatically before I see anything.
      Is there anything I missed while doing, I do not understand and I double checked all the steps you told me.
      Please advice.
      Thanks,
      Sharath.
      Author's profile photo Former Member
      Former Member
      Hi, did you already published the ITS templates using the transaction code SIAC_PUBLISH_ALL_INT. Try it.
      Author's profile photo Former Member
      Former Member
      This post was very helpful!  One thing that we did differently is that we made it a subobject of TSTC.  Also, it is important to note that the creation of this object or subobject is in the system that is being called (for us, ECC) rather than in CRM.
      Author's profile photo Former Member
      Former Member
      Do we follow the same steps to configure a general url like www.google.com?
      Or u follow and different path?
      Pls suggest.

      Regards,
      Shreya KAdu

      Author's profile photo Former Member
      Former Member
      Do we follow the same steps to configure a general url like www.google.com?
      Or u follow and different path?
      Pls suggest.

      Regards,
      Shreya KAdu

      Author's profile photo Former Member
      Former Member
      Do we follow the same steps to configure a general url like www.google.com?
      Or u follow and different path?
      Pls suggest.

      Regards,
      Shreya KAdu

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Shreya KAdu,

      Sorry for the late response. There is a slight difference when you call a URL instead of a SAP Transaction. I will be covering the details in my next blog.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Shreya,

      Sorry for the delay. I have created a blog to show how you can call the general URL.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Hello Vikash,

      Thanks a lot for your detailed description. Unfortunately I am facing a problem while using the transaction launcher at CRM side. I am using SAP CRM 2007 and trying to launch a SAP ERP transaction within SAP CRM.

      First I maintained all necessary setting for the RFC connections (in ERP and CRM) using for example transaction SM59 and BD87, e.g. the master data replication is working fine. Second I created a business object type based on the SAP Standard business object TSTC and set the “Execute” method to “Synchronous” in SAP ERP just as you mentioned.

      Afterwards I created the URL for our ITS server and started the transaction launcher in CRM. During the step “Further technical details” I selected as transaction type “BOR transaction” and chose our logical system (ERP) and added our newly created BOR object type as well as the method “Execute”. If I now press the “Next” button the error message “An RFC destination could not be specified for the logical system XY” is shown.

      I tried to search forums/blogs about this but could not find any information. Did you ever face this problem?

      Any help is highly appreciated.

      Thanks lot and kind regards,
      Franziska

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Franziska,

      Have you maintianed the RFC connection in both the system (ECC & CRM), Please test the conncetion. Point to notice here is that you are calling ECC from CRM so you need to have the connection from CRM to ECC. Make sure that you are using the same logical name what you have maintained in the SCC4 transaction. If connections are proper and you have maintained the URL in the transaction mentioned in my blog we do not get this type of error. so I would suggest to check the connection once again.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Hey Vikash,

      this was also my first idea. But the RFC connections are working fine. As example we started a replication for business partners and this was executed successfully. So I have to look further.

      Thanks a lot for you effort.

      Regards,
      Franziska

      Author's profile photo Former Member
      Former Member
      Hi Franziska,
      are you still facing the problem with the RFC Destinatin while creating Transaction Launcher?

      Today I am facing the same problem like you.
      SM59 check: successful
      BD54, BD97, SCC4: all tables maintained correctly

      Transaction CRMC_IC_CROSS_SYS:
      I add new entry to my ERP system, but this new entry is not available while executing Transaction Launcher Wizard.

      Do you habe any suggestion solving the problem?
      Thanks a lot
      Nicholas

      Author's profile photo Former Member
      Former Member
      Hi Franziska,
      I have your same problem...
      if you have solved it is possible so send a solution??

      Thanks lot and kind regards,
      Daniele

      Author's profile photo Former Member
      Former Member
      Problem 1. 
      We configured transaction X, but I launch it from the web, and it starts some kind of gui session, but before sending the content to the web view, it kicks me out of the session and writed in the view : "Loged off succesfully".  I do not want to log off.

      Problem 2.
      Even though I never configured access to ERP transactions, I am getting on the web an error after I configured all this that says:  ERP Sales Order:  not suitable RFC destination is customized in the IMG.

      Thanks,

      Juan

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Juan,

      I will be in better position to answer your questions if you give more details on this. Please describe in details what you are trying to do and what is the system behaviour.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Vikash,

      I have the same problem.

      I'm trying to call a CRM Transaction - all the steps in your blog are complete/verified (from copying TSTC to OWNLOGSYS settings).

      When I click on the web UI link, a small window opens up with the message "Logged Off Successfully
      You have been logged off from SAP NetWeaver Application Server". This error appears if the Transaction Launcher is not defined as 'Stateful'.

      If the transaction launcher is defined to open up in the new window (Stateful is checked) - a new window pops for a fraction of second and then vanishes. The new window cannot be seen at all. The window from which I launched the transaction (CRM WEB UI) is blank.

      Any inputs will be great.

      Thanks
      Krishna

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Krishna,

      I am not very sure but I doubt about the URL setting. Also If you are on CRM 7.0 you do not have to copy the TSTC to Z as for the Execute method is already marked as Synchronus. You can use the standard TSTC Object.

      What is the URL you are using. For CRM transaction you should use URL with transaction=IC_LTX where as in my Blog it was external transaction so I used transaction=IC_LTXE

      Also make sure that your ITS is up and running. Just use the URL from the IE web browser and you should be able to log in to the system.

      Hope this will help.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Hi,
      what are the steps to transport the transaction launcher to a Q or P system?

      1) where do you change the setting to point to a different logical system?

      2) our Q system is set to not modifiable therefore I can not use transaction CRMS_IC_CROSS_SYS, but I can also not enter on D and transport, since on D the logical system for Q is not available.

      I would be interested how you did approach this.

      Thanks

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Bernd,

      You have two option here.
      1> Open your P & Q system in transaction SCC4 and maintain the entried manually.
      2> Create the logical systems in D for Q & P. First maintain the entry for P moved it all the way to P then maintain an entry for Q move it to Q and then delete the transport from buffer ( take help from BASIS) so that you don't move it to P. Finally change the entry sutaible to D system.

      I would suggest that you open the Q & P client and maintain entries there directly.

      Make sure that in tr. CRMS_IC_CROSS_SYS you maitain the same entry for field Mapped LogSys in all the system because you have used that value in the Wizard 

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Thanks for the fast reply, that clarifies my question!
      Author's profile photo Former Member
      Former Member
      Great info here, thanks for sharing. I was also able to get this to work using URL to call VA01 in CRM 7.0. I have not figured out how to pass parameters though, do you have any insight into this? We would like to be able to take sales org data from an account in CRM and bring it across to ECC VA01 so the users can immediately begin order entry. The CRM delivered ERP sales order does not have all the fields needed. Thanks!
      Author's profile photo Former Member
      Former Member
      If the users parameters in ECC are set up that should work, t-code SU3 and parameters VKO, VTW, SPA, AAT with the values you desire.

      Using transaction launcher to launch VA01 seems old school anymore.  I think using the ERP order looks so much better, or even using the CRM order screen and let the order replicate to ECC.
      I realize some ECC transactions would need to be done via the trans launcher.

      Author's profile photo Former Member
      Former Member
      I have the same problem. I followed the guide but it's not very clear how to push the values into ECC custom transaction.
      I started with VA01 and I'm able to see in the webui the transaction. However if I want to pass a value for the AAT id parameter how can I do?
      In the "execute" method of ZTST object I created a new parameter called "AAT" table VBAK and field AUART. In the prepare_data_flow of the class I setted the container data where the iv_name is "AAT" an iv_value is "Z001". Now when I invoke via CRM UI the transaction I see that the AAT field is always empty. Can you help me?
      Author's profile photo Former Member
      Former Member
      Very excellant blog, is also helpful in seeing how the Navigation Bar config connects.

      In the "Define Work Center" which is ZREC-R3 in your screenshot, that has to be assigned to a Logical Link ID.  My question is does the Logical Link ID need to be:
      Type = B Work Center
      Target ID = Display
      For this configuration? Please let me know if that is correct.

      Thanks,
      Glenn

      Author's profile photo Former Member
      Former Member
      Hi Vikash,

      good blog! I'd like to ask a question if I may; what is the reason to use BOR object TSTC (or ZTSTC) instead of for instance the BUS2032 for a VA01 call in the transaction launcher?

      Is it because TSTC is just a general BOR type to be used for "flat" transaction launch whilst BUS2032 for instance can be used specifically for VA01? We're having problems transferring the BP number from the WebIC to the R/3 (over external ITS) and we are wondering if it has anything to do with TSTC vs BUS2032.

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Marcel,

      You are right, TSTC is a general BOR which you can use for any transaction launch where as BUS2032 is specific for a perticualr transaction. It is always advisable to use the generic. Well irrespective of what you use you should not have problem transferring the BP number. I don't think this is because of TSTC vs BUS2032.

      Let me know what you did in order to pass the BP number.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Well, that would be a lot to explain, but let me start by saying that I think that we already captured the BP number because we can see it in ABAP debugger and in the (external) TS traces that is passed in the HTTP body just like the transaction code VA01 is. But for some reason it is lost after that. It might have to do with the initial screen in VA01 and an ITS limitation, but even if the screen is skipped, the BP number is not passed....

      Cheers
      Marcel

      Author's profile photo Former Member
      Former Member
      Hello, many thanks for the blog! I was able to call many IS-U transactins from CRM IC Web Client. However I would like to know how can I pass the Business partner code so that the users do not need to re-write again when calling transaction FPP2.

      Many thanks for your help in advance.

      Pablo

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Pablo,

      When you run the wizard I have mentioned in Step 7 that you provide some class name and system will generate that class for you. You can edit the method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW of the class to pass the parameter value.

      Sample code for the same is:

      me->set_container_data(
      iv_name = gc_BP
      iv_value = BP ).

      Now you need to have the access of the BP no. from this address. Where ever you are confirming the BP, in that view create a global attribute and in DO_PREPARE_OUTPUT method set the BP value to the global method and in the Z class method mentioned above you can reterive the value

      e.g. lv_partner_no = ZL_*_IMPL=>gv_partner_no.
           BP = lv_partner_no.

      Hope this will help.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Many thanks Vikash! I will try that with a development team member!

      Best regards,

      Pablo

      Author's profile photo Former Member
      Former Member
      Hi Vikash,

      Can Transaction Launcher be used to pass BP data from IC Web (CRM 2007) to a legacy fat client (MS Visual C++)?  Any reference you can provide would be greatly appreciated!

      Best Regards,
      Tom Halloran

      Author's profile photo Former Member
      Former Member
      HI, Vikash.

      I have a problem in Transaction Launcher, in STEP 7 and  Picture 3, when I try to Seach my  Logical System,created in Step 5, I dont find it. and when I select any Logical System appears the message: "Method EXECUTE not defined for object type ZTSTC."

      Can u help me?

      thks.

      WALO

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi WALO,

      Few things you need to verify.

      1> In the step 5 were you able to see the logical system maintained for the target system( i.e. in transaction SM59). Is the entry maintained by you still available (some time people might miss to hit the save button).
      2> In step 7 did you select the Transaction type = A BOR Transaction as highlighted in the screenshot
      3> Have you copied the object TSTC in your Target system i.e. ECC system, If yes then have you changed the status to Implemented as highlighted in step 4.

      Please verify.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Thanks Vikash.!

      One thing, I  have successfully done your example, but when I try to create another transaction error occurs.

      I  have validated all your advice.

      Thanks

      Walo.

      Author's profile photo Former Member
      Former Member
      Hi Vikash,

      I have a problem to create a second BOR, when I try to search my Logical System, in Step 7 Picture 3, I don't find it, but I created it previously my Logical System, in Step 5.

      Can you help me?

      Thank

      Author's profile photo Former Member
      Former Member
      Hi Vikash,

      we used your weblog for creating a launch transaction to create a sales order in the ECC system and it works fine. But now the question rised if it's possible to start this launch transaction from a button on the opportunity details screen. Do you know if this is possible and how to do it?

      Kind regards,

      Roy Willems

      Author's profile photo Former Member
      Former Member
      Hi Roy,
      yes it's possible. You have to exend the opportunity component (BT111H_OPPT). Then yo need to create:
      1) a new event handler
      2) a new outbound plug for the view
      3) a new outbound plug for the window
      4) a new registration of the outbound plug for this component where you call the logical link of the transaction launcher
      5) a new extension of the method if_bsp_wd_toolbar_callback~get_buttons

      Hope this kind of information can be useful
      Roberto

      Author's profile photo Former Member
      Former Member
      Hi Roberto,

      thanx for your quick reply. I found the steps you mentioned also in exercise 19 of the CRM 7.0 Web Client UI Development course. After implementing these steps it works as required 🙂

      Kind regards,

      Roy Willems

      Author's profile photo Former Member
      Former Member
      Hi Roy,

      I need to make same functionality but with another transaction. I have created the transaction launcher correctly but a I don't know how can I call it from a button.

      I have the button witch raise an event.
      I have the event but a don't know how call the transaction launcher.

      Where is the CRM 7.0 Web Client UI Development course?

      Author's profile photo Former Member
      Former Member
      Hi ,
      within your event call the instance of navigation service class, and then call method to navigate to transaction launcher id.

      eg:
      DATA: l_if_navigation   TYPE REF TO if_crm_ui_navigation_service.

        l_if_navigation = cl_crm_ui_navigation_service=>get_instance( me ).

            if l_if_navigation is bound .
      * Navigate to transaction launcher using link id
              l_if_navigation->navigate( iv_link_id = 'ztl-xyz' ).
            endif.

      Try if this works.

      Regards,
      Nandini

      Author's profile photo Former Member
      Former Member
      Thanks, Thanks and Thanks a lot!

      Thanks for your fast, correct and simply answer.

      Author's profile photo Former Member
      Former Member
      Hello,

      I found this entry very helpful and hope you can also help me on another issue: I am working on a 2007 system where transaction launcher to ERP transactions via a button is in place in the opportunity.
      Now the customer would like to know if it's possible to determine the choice of ERP transaction type available in tx launcher depending on the opportunity type in CRM. Would you have any ideas on this?
      Your help is appreciated!

      Thanks,
      A. 

      Author's profile photo Former Member
      Former Member
      Hi,
      Wanted to know if there is a way by which we could incorporate a pop up (through any method of the class) before launching a url,through transaction launcher.
      Could you suggest something?
      Regards,
      Nandini
      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Nandini,

      If I understood correctly you want to open the transaction in a new window. If that is the case then during the wizard select the check box stateful (See step 5) and system will open the transaction in new window.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Hi Vikash,
      At first thanks for your response.However my requirement is slightly different.Before the transaction gets launched (in my case a url) from the nav bar; the user should get a pop up message to confirm whether he wants to continue or quit and remain in the first screen.I am trying to use a method to generate this pop up by writing code in the handler class methods but am not successful in getting the correct output.
      Please help
      Author's profile photo Former Member
      Former Member
      Blog Post Author
      Hi Nandini,

      I have not done the Pop up before but I can suggest that in the class generated by the wizard put your logic for URL in the method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW.

      Sorry I can provide any tested code for this as I mentioned I have not done this before.

      Thanks,
      Vikash.

      Author's profile photo Former Member
      Former Member
      Blog Post Author
      I mean I can't provide any tested code for this.
      Author's profile photo Former Member
      Former Member
      Great blog, the setup works. We are launching a ECC transaction.  We have a security issue that for the agents the ECC window launches but there is an error Transaction ICEXECUTE is unknown  (Message No 0003), they can open the arrow on top and key in the t-code.  For us IT people it works fine but we have much more authorization, just trying to identify what security object is lacking for the agent.  I am assuming it is a ECC object not a CRM one.

      Thanks,
      Glenn

      Author's profile photo Former Member
      Former Member
      found Transaction Laucher Help

      looks like user needs t-code IC_LTXE, this should be my answer

      Author's profile photo Former Member
      Former Member
      Hi Vikash,

      First of all thanks for the nice blog.

      However, I do have a doubt related to Step 8 in your write-up. You created the work center link group named ZREC-R3-CR and assigned it to custom work center : ZREC-R3. Could you please tell me what Target ID are we supposed to use while creating the logical link for a z-work center.

      Like in your case I have a requirement of putting all txn launcher related logical links into a separate work center. But while creating a work center we need to provide the Target ID when we create a logical link for the custom work center. Do we need to create a new component to achieve this? If yes, could you please elaborate on it.

      Would appreciate your reply to this.

      Regards,
      -Sweta

      Author's profile photo poornima v
      poornima v
      Hi
      This is a very helpfull blog.
      I have configured the tx launcher from navigation bar work centre .its working fine.
      Now I have requiment to launch the VT03N tcode on clicking a link in one of my assignment blocks in complaints document.can you please let me know how to do that .any sample code for navigating to the logical link of tx launcher on clicking a hyperlink in assignemnt block.

      another doubt is while passing the parameter to the tcode in web ui we have to do coding in process_data_flow method.

      me->set_container_data(
      iv_name = gc_opportunity
      iv_value = quote_id ).
      Here what we have to pass to iv_name ?what is gc_opportuniry or gc_bp?
      is this single piece of code enough any other steps we have to do for passing parameters to BOR transaction.

      Author's profile photo Former Member
      Former Member
      Thanks to share this document, i appreciate you.
      Author's profile photo Former Member
      Former Member
      Hi Vikas,

      This is very helpful blog. Keep posting some more if you have.

      Author's profile photo Former Member
      Former Member
      Hi,
      We have similar requirement where we need to capture the values coming back from TL in the CRM IC, we are on CRM 7.0 We are calling Z BOR objects for create objects in ECC.
      I am not sure how to achieve this. The flag in TL wizard does seem to be helping me.
      I was wondering were you able to achieve this requirements ? how did to do it ?
      Your help will be greatly appreciated.
      Thanks,
      Anand
      Author's profile photo Former Member
      Former Member
      Thanks alot for making this clear.
      Author's profile photo Former Member
      Former Member
      Hi Vikash,

      I am from Deloitte, I work as SAP technical consultant and I had question to you, please help me.

      In our CRM implementations we had a requirement w.r.t CRM Web UI Transaction launcher, please let me know your comment on my below question.

      Your suggestions are hugely appreciated.

      Requirement:
      In our requirement, the custom SAP transaction will be launched on CRM Web UI through transaction launcher technique (when users clicks a hyperlink on CRM UI)

      But business people are asking us to not provide the user to enter transaction codes in command field. They don't want User's see command field when the back-end SAP GUI is popped up and they don't want the user to navigate to any transaction from the popped up SAP GUI. Please let us know you comments on this. Is this possible, if so please guide me?

      Author's profile photo Former Member
      Former Member
      when that hyperlink is clicked it should open up a SAP GUI screen --- but in that SAP screen the field where we enter transaction codes should be disabled
      Author's profile photo Former Member
      Former Member
      hello sir

      thanks for the blog i was able to configure the Transaction launcher but stuck at some issue  , the Req is :

      AS-IS: we have link of translation launcher on Web screen , when we click on that TR launcher it will call the Report from R3 , where user enter the Customer number (its a Business partner SOLD- TO )and Execute the report , Sold-to is a input to the report,report will display list of  contracts available in R3 for that sold to

      TO-BE
      --> when user will click on TR launcher , the report input field should get the Business Partner(SOLD to) automatically, 

      Steps is : user will open the call List -->confirm the Customer and then Click on the TR Launcher , so this confirmed customer(SOld to )should be available in to input field of Report

      so user will directly execute the report and see the result

      sir can you guide how can we do this ?

      Regards
      Rajiv

      Author's profile photo Former Member
      Former Member

      Hi Rajiv,<br/><br/>we had a similar requirement for running a sales order history report in R/3 for the current CRM customer. I solved it with creating a launch transaction with type 'B'(URL Transaction) and parameter CUSTOMER_ID with value //datacontextCURRENTCUSTOMER/BP_NUMBER. <br/><br/>The URL is a BSP URL that calls my BSP on the CRM system. Also here I pass the parameter CUSTOMER_ID. <br/><br/>In the BSP I created a page with flow logic and used this code:<br/><br/><%@page language="abap" %><br/><%@extension name="htmlb" prefix="htmlb" %><br/><%<br/>  DATA: lv_customer_id  TYPE char10,<br/>        lv_shortcut     TYPE string,<br/>        lv_xshortcut    TYPE xstring,<br/>        lv_erplogsys    TYPE logsys,<br/>        lt_erpsites     TYPE STANDARD TABLE OF<br/>                             smof_erpsh,<br/>        lt_sales_areas  TYPE<br/>                        crmt_bsp_sales_area_bp_t,<br/>        ls_erpsite      TYPE smof_erpsh.<br/><br/>  lv_customer_id  = request->get_form_field( 'CUSTOMER_ID' ).<br/> <br/>  IF lv_customer_id IS INITIAL.<br/>    EXIT.<br/>  ENDIF.<br/><br/>* Get connected R/3 system<br/>  CALL FUNCTION 'SMOF_READ_SMOFERPSH'<br/>    TABLES<br/>      t_erpsites = lt_erpsites.<br/><br/>  LOOP AT lt_erpsites INTO ls_erpsite<br/>    WHERE sitetypeid = 'SMOF_ERPSITE'.<br/>    EXIT.<br/>  ENDLOOP.<br/><br/>  lv_erplogsys = ls_erpsite-rfcdest.<br/><br/>  call function 'SWN_CREATE_SHORTCUT'<br/>    destination lv_erplogsys<br/>    exporting<br/>      i_transaction = 'ZORM_CFN_NEW'<br/>      i_title       = 'Show sales orders'<br/>      i_user        = sy-uname<br/>      i_windowsize  = 'Maximized'<br/>    importing<br/>      shortcut_string = lv_shortcut<br/>    exceptions<br/>      inconsistent_parameters = 1<br/>      others = 1.<br/><br/><br/>    replace first occurence of 'Command=ZORM_CFN_NEW' in lv_shortcut with<br/>  'Command="ZORM_CFN_NEW P_KUNNR=CUSTOMERNO"'.<br/>  replace first occurence of 'CUSTOMERNO' in lv_shortcut with lv_customer_id.<br/>  <br/>  response->set_header_field( name  = 'content-type'<br/>                              value = 'application/x-sapshortcut' ).<br/><br/>  call method cl_http_utility=>if_http_utility~encode_utf8<br/>    exporting<br/>      unencoded = lv_shortcut<br/>    receiving<br/>      encoded   = lv_xshortcut<br/>    exceptions<br/>      others    = 1.<br/><br/>  if sy-subrc EQ 0.<br/>    call method response->set_data( data = lv_xshortcut ).<br/>  endif.<br/>%> <br/><br/>I hope this helps to develop the requirement. <br/>If you like some screenshots just send an email to roy.willems@newitera.nl and I'll send them to you.<br/><br/>Regards,<br/><br/>Roy Willems<br/>SAP Development Consultant<br/>NewITera  <br/><br/>

      Author's profile photo P.M. Rijlaarsdam
      P.M. Rijlaarsdam
      Guys, also check my post on this topic here.
      http://sapcrmweblog.blogspot.com/2011/01/extending-business-object-repository.html

      This allows you to forward additional parameters to the called transaction without hardcoding the parameters in either a BSP or in the ERP system.

      Hope this helps.

      Regards,
      Pieter

      Author's profile photo Former Member
      Former Member
      Hi,
      i have Created Transaction launcher as per this Blog and its working fine , but when i used  language as French to login in to SAP, and click on Transaction launcher  its pointing towards CRM system instead of R3 system , i have checked the link in  CRMS_IC_CROSS_SYS  and both english as and friench its same , where this issue could be? , as its weired as when login as English , u can call R3 transaction perfectly but when u use French language its pointing to CRM system and not calling R3 transaction
      Author's profile photo Former Member
      Former Member

      Vikash,

      Nice blog post. As this is refered to by OSS I guess it is now the bible on launch transactions.

      I was wondering if anyone is actually getting any parameters back from a launch transaction. I have tried both with a generice ZTSTC and the standard BUS2023 object for a sales order. I get an error message

      "Field too long when writing container element <*MAINOBJ*>" when using the standard BOR. What am I doing wrong?

      Thanks
      Peter

      Author's profile photo Former Member
      Former Member

      Hi Vikash Krishna,

           thanks for the post, but i have some other requirement with the TL, that is what if i want to display TL through a click of a Button (i.e., Event) , how can i achieve it.

      Regards

      Author's profile photo Sunita Sagar
      Sunita Sagar

      Hi Vikash,

      Could you please let me know if it is possible to call a BOR transaction launcher from an assignment block(table view ) in CRM Web UI. My requirement is to call a particular transaction in the ERP system with the object id as the parameter to the transaction when the user selects the line item in CRM Web UI. If you have any documentation related to this it would be helpful.

      Regards

      Author's profile photo Rashmi ranjan behera
      Rashmi ranjan behera

      Hi Vikash,

                      I have followed ur document completly and i am trying to call ISU transaction EC51E in crm UI.I have made a BOR object in ISU ,released it .Now i made a transaction launcher in CRM .When i am clicking on the link in WebUI,its going blank with no error nothing.Plz guide me what to check...