Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all 4552 articles
Browse latest View live

How to bind values from table view to form view or overview page?

$
0
0

Hi ,

 

I have created search page and getting values in table view. Requirement here is that i want to show the data in the form view when the particular row is clicked in the table view.

Where i have to bind the values to my form view?

how to display form view once value is bound?

 

Thanks.


MOVE_CAST_ERROR in Change Request

$
0
0

Hello dear collegues.

I have an error in our SAP Solution Manaher 7.1 in CRM WEB UI when working with my custom RFC document. For example try to save it in a first status (Created) or try to set in Reject status (by meanse of HF_SET_STATUS) - I've get an error like below

 

 

 

Business Server Page (BSP) error

 

 

 

What happened?

Calling the BSP page was terminated due to an error.

SAP Note
  • The following error text was processed in the system:
    Source type \CLASS=CL_AGS_CRM_1O_API is not compatible, for the purposes of assignment, with target type \CLASS=CL_AGS_CRM_1O_API_SD
Exception ClassCX_SY_MOVE_CAST_ERROR
Error NameMOVE_CAST_ERROR
Program/1BCDWB/SAPLSF00000035
Include/1BCDWB/LSF00000035F01
Line890
Long textDuring a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_AGS_CRM_1O_API' is not compatible for assigning with the target type '\CLASS=CL_AGS_CRM_1O_API_SD'.

SAP CRM 7.0 - Transaction Launcher to Launch Third Party URLs

$
0
0

Calling a third party URL via Transaction Launcher with parameters in SAP CRM 7.0

Applies to:

 

SAP CRM 7.0 (Backend is SAP Utilities/ISU system)

 

Summary:

 

This document describes how to launch a third party tool URL in a Pop Up screen from CRM WEB UI. I have also explained how to pass the URL parameters based on the conditions.

 

Author(s): Chetan S Kalaburgi

Company: Atos India Private Limited, Mumbai

Created on:    09/23/2015

 

Author Bio:

Chetan S Kalaburgi is a Senior SAP CRM technical consultant at Atos having 9+ years of experience in SAP CRM.

 

                       

Table of Contents

  1. 1.       Introduction:4
  2. 2.       Prerequisites:5
  3. 3.       Requirement Summary. 5
  4. 4.       Solution. 6
  5. 4.1 Define the URL and Its parameters. 7
  6. 4.2 Configure Transaction Launcher10
  7. 4.3 Define Navigation Bar profile. 15
  8. 4.4 Code to pass the URL parameters. 18
  9. 5.       PROS:19
  10. 6.       CONS:19
  11. 7.       CODE SNIPPETS:19

 

1.  Introduction:

 

The purpose of this document

The purpose of this enhancement is to embed the GIS tool implemented by xyz client within the SAP CRM screen.
The following options will be available for the users to display In the GIS Tool:
Service Territory will be displayed.
Work Orders created for customers (open, pending and closed).

The CSR's might require to find out the location of service or the service territory on the GIS map for the premise of the customer he Is working on in order to view the work orders.

CRM Work Center for GIS
Geographic Information System is an application used by XYZ client to view the connection object, work orders, weather alerts and radar, service territory/areas and payment location details on a virtual map.


The CSR might require viewing the details of Service Territory or work orders on the GIs map while being in call with the customer or performing background tasks.
The GIS application needs to be embedded in the SAP CRM application via a popup view. A separate GIS work center (SAP CRM menu option) will be provided in SAP CRM.

GIS workcenter.png

On clicking this menu option a popup window will be displayed. The GIS application will be displayed inside this popup view. The CSR is able to work on the CRM screen as well as the GIS application independently in the Main and the Popup window.

The CSR can select the different option available on GIS menu to change the map view.
The CSR can enter any address that he desires in the GIS address finder to point out in the map.

  

2.  Prerequisites:

 

  • SAP CRM 7.0

 

3.  Requirement Summary

Our scope in this development is that we need launch the GIS application in a pop screen when the user directly clicks on the GIS work center from the Navigation Bar. And if the user is confirming the Premise and then click on the GIS work center then the corresponding Connection Object number of that Premise should be passed as one of the URL parameter.

On clicking this menu option a popup window will be displayed. The GIS application will be displayed inside this popup view. The CSR is able to work on the CRM screen as well as the GIS application Independently In the Main and the Popup window. Refer to the screen shot below.

      GIS Pop up.png

4.  Solution

 

 

We have to perform the following configurations and coding to achieve the required solution.

  1. 1)      Define the URL and Its parameters
  2. 2)      Configure Transaction Launcher
  3. 3)      Define Navigation Bar profile to add a New work center for GIS
  4. 4)      Code to pass the URL parameter

 
 

4.1 Define the URL and Its parameters

  1. 1) SAP CRM : Transaction SPRO

Define URL and Parameters.png

             

  1. 2)      Give the description and enter the URL which is provided by the client to launch the third party tool  (Make a note of URL ID “ZGIS” because you need to enter this in the configure transaction launcher wizard )

                 Define URL.png

 

  1. 3)      Define the parameter

In this case we are creating the parameter CONNOBJ for the connection object.

 

                 Define Parameters.png

 

4.2 Configure Transaction Launcher

  1. 1)      SAP CRM : Transaction SPRO

  Configure TL.png

  1. 2)      Click continue

Configure TL 1.png

 

  1. 3)      Enter the Launch Transaction ID as you like (Make a note of this id because you need to maintain this while creating the Work Center)

Enter the appropriate component name: In my case it is IUICALL

Configure TL 2.png

  

  1. 4)      Enter meaningful description

Handler Class name (This Handler class will be created once we complete the wizard)

Check New Window checkbox

Configure TL 3.png

 

  1. 5)      Select Transaction Type : URL Transaction

Select the URL ID from the F4 help: ZGIS (We have created this in step 4.1.1)

Configure TL 4.png

  1. 6)      Select the Parameter : Connection Object

Configure TL 5.png

 

  1. 7)      Click continue

  Configure TL 6.png
 

  1. 8)      Click on Complete

       Configure TL 7.png                  

 

 

4.3 Define Navigation bar profile

We need to create a new work center GIS in the Navigation bar

Generally these configurations will be done by Functional consultants.

                        SAP CRM: Transaction SPRO

 

1)

      Define Nav Bar prof.png

2)      Define Logical links

ZGIS_URL is the Launch Transaction ID which we created in step 4.1.2

Logical link ID has been entered same as Launch Transaction ID so that it is easy to remember. If you want you can enter different name for the Logical link ID.

Enter Title and description.

 

Define Logical links.png

 

3)      Define work center: Work Center ID Z_AW_GIS

Enter the Logical link ID: ZGIS_URL

Enter Title: This title you enter will be displayed on the Navigation Bar in WEB UI

Define workcenters.png

 

4)      Assign the newly created work center to the Navigation Bar profile.

Assign WC to NavBarprof.png

 

 

4.4 Code to pass the URL parameters

 

As per the requirement, if the user confirm the Premise and click on the GIS work center then the connection object number for the confirm premise should be send as URL parameter.

If the user click on the GIS work center without confirming the Premise then the default URL which is maintained for GIS will be called and GIS application should be launched.

 

We have written the code in the following method to pass the URL parameter

                code snippet.png

 

 

5.  PROS:

Using Transaction launcher the required functionality can be achieved without creating Z components.

6.  CONS:

 

7.  CODE SNIPPETS:

I have given the screen shot of the code as I did not have access to copy the code from my SAP system. The code is very simple and I hope you will manage. This solution achieved via configuration which is very important and with minor code changes.

Error during interprocess communication

$
0
0

hi,

 

i have created 2 views. I have created a button in view1 and im trying to navigate from view1 to view2. For that i have a button in view1. Onclick on button in view1 it should navigate to view2. But in my view1 htm page it is giving me the error "Error during interprocess communication" while debugging. here is my htm code of the view1

 

 

<%@page language="abap" %>

<%@extension name="thtmlb" prefix="thtmlb" %>

<%@extension name="chtmlb" prefix="chtmlb" %>

<%@extension name="bsp" prefix="bsp" %>

<thtmlb:grid cellSpacing = "1"

              columnSize  = "8"

              height      = "100%"

              rowSize     = "6"

              width       = "100%" />

 

<thtmlb:button enabled = "TRUE"

                     id = "BTN1"

                onClick = "BTN1"

                   text = "GOTO PG 2" />

 

Thanks

Bad Request issue facing for Facebook integration with CRM ic agent inbox

$
0
0

Hi Experts,

 

We are working on face book integration with CRM IC agent inbox. we have done the setup by following SAP NOTE : 1832481. Now we are trying to get the posts from face book but we are getting  bad request error.

 

Can any one please help us here to fix this issue.

 

 

Thank you,

Srinivasa Rao.

follow-up transaction not working

$
0
0

hi guru's

 

We do have three business role (FME, Quality team and Logistic team) now when i do follow-up transaction from FME role i can do but when i try to do follow-up transaction from other 2 role (i.e. Quality and Logistics) i can't.

Any help will be appreciated.

Information of preceding document at runtime

$
0
0

Hi there,

 

I want to get the information of a custom field of my preceding document at runtime in order to move it to the follow up document.

At the moment I am totally lost where to finde this information. My breakpoint is in the getter class of my z-attribute in the follow-up document. Once I am there I do not finde my way to the previous doc information.

Any hint will be helpful.

 

Or is there a way to enhance the copy controle?

 

Best regards

 

Thea

PPF -> create follow up: Partner is not copied

$
0
0

Hello everybody,

i've implemented IF_EX_EXEC_METHODCALL_PPF~EXECTUE.

the creation of the follow up activity is working fine. also the partner is copied from the previous activity. The problem is, that the employee of the partner is not copied.

 

When i create a follow up in webui the partner employee is copied as well. this is implemented by using a copy control for bt.

 

My copy implementation:

DATA: lr_action_execute TYPE REF TO cl_action_execute,
lv_guid_ref       TYPE crmt_object_guid,
lv_actionname     TYPE ppfdtt,
lt_head_guids     TYPE crmt_object_guid_tab,
lt_orderadm_h     TYPE crmt_orderadm_h_wrkt,
lv_kind_ref       TYPE crmt_object_kind,
ls_orderadm_h     TYPE crmt_orderadm_h_wrk,
lv_desc           TYPE ppfdttt.

CREATE OBJECT lr_action_execute.

INCLUDE crm_object_kinds_con.

* get parameter from reference object
CALL METHOD lr_action_execute->get_ref_object
EXPORTING
io_appl_object = io_appl_object
ip_action      = ip_action
ip_preview     = ip_preview
ii_container   = ii_container
IMPORTING
ev_guid_ref    = lv_guid_ref
ev_actionname  = lv_actionname
ev_kind_ref    = lv_kind_ref.


* prepare text for copy
CALL METHOD lr_action_execute->prepare_actiontext
EXPORTING
iv_guid_ref   = lv_guid_ref
iv_actionname = lv_actionname.

INSERT lv_guid_ref INTO TABLE lt_head_guids.

* read relevant itmes of the source document
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_head_guids
IMPORTING
et_orderadm_h  = lt_orderadm_h.


READ TABLE lt_orderadm_h INTO ls_orderadm_h INDEX 1.
lv_desc = ls_orderadm_h-description.

* copy document
CALL METHOD lr_action_execute->copy_document
EXPORTING
io_appl_object     = io_appl_object
ip_application_log = ip_application_log
ip_action          = ip_action
ip_preview         = ip_preview
ii_container       = ii_container
iv_actiontext      = lv_desc
IMPORTING
rp_status          = rp_status.


Are I'm mising something?


Best...


Transaction launcher is very slow if used Launch in SAP GUI

$
0
0

Dear all,

 

We are using an transaction launcher of ERP system to view some data. Life was good when they were using SAP Gui for HTML

but suddenly they want SAP gui and not the ****** ( HTML Gui  , that's what they tell to html gui nothing personal ) so I did some changes

1. made the checkbox true for launch in SAP gui

2. activated a SICF service ltx_sapgui_strt ( in both CRM And ERP)

 

So it worked like charm and opened a transaction in SAP GUI inside crm webui. but there is the catch when user clicked on back button it takes approx. 20 seconds!!!! so is there any way to make it fast like some notes or some parameters maintaine..???

 

kindly suggest!

Document does not perform save, if action is triggered

$
0
0

Hi Experts,

 

I have a scenario where an action creates a subsequent line item for a document.

The line item is visible once the action is triggered on click of a button.

However, the line item is not getting saved, if I trigger the action alone and press save.

Though it gets saved when we click the button and changes some other field.

What I think is the save is not recognizing the action getting executed.

 

Basically the method  check_save_needed of class if_bol_transaction_context check save needed for actions fails.

Let me know if you have an idea how to resolve this?

 

Regards,

Dhruv Kashyap

Sending Future Email from Action Profile

$
0
0

Hello Experts,

 

I would like to know how we can send a scheduled mail from SAP particularly using the Action Profile. Is the Action Profile can be used to send email in the future ? The use case is the employee will get email notification from SAP when his sales contract is expired, this can be 2 or 3 years later since the creation of the sales document.

 

My first thought is using SBWP because there is option "Do not send before" in its general setting. But i do not know yet how to trigger the SBWP from Sales Transaction (CRMD_ORDER). Or maybe there is possibility to use SBWP which defined in one of definition in Action Profile ?

 

Kindly need your suggestions

 

Thank you,

Ahmad

Bring CRM business Role Page again.

$
0
0

Hello All

I have requirement to bring business role selection page again whenever user presses a custom button. I have created a custom button in WebUI component CRM_ALLSEARCHES. In this view, requirement is when user presses button 'Switch Role', Business Role Selection should reappear.

I have create button and handling this event in method DO_HANDLE_EVENT of class ZL_CRM_ALLS_LAUNCHER_IMPL .

 

method DO_HANDLE_EVENT

<b>&nbsp &nbsp &nbsp</b>

<thtmlb:button id      = "SBR"

                onClick = "SBR"

                enabled = "<%= lv_btn_visible %>"

                text    = "Switch Role"

                tooltip = "Switch Role" />

<b>&nbsp &nbsp &nbsp</b>

Home page.pngSAP CRM Web UI custom business roles screeen.png

 

Many thanks for your help.

Regards

Sudesh Sharma

Method was not declared or inherited error

$
0
0

Hi,

 

I have created a event handler in a view set and saved it in a TR.

But while importing the TR, I am getting 'EH_ONCLICL" method was not declared or inherited in the the class ' ZICCMP_P_MYCOMP_IMPL===CO'

Please suggest me any solution

Thanks,

Aishwarya

Pricing Document could not be created

$
0
0

Hi,

I am trying to create a sales Order with CRMXIF_ORDER_SAVE.

But it throws an error with Pricing Document could not be created

and IPC Failure .I debugged the FM i get this error at FM CRM_ORDER_MAINTAIN.

I am not able to proceed further.

This particular code was working before .But now it goes into error with the same data passed.

How do i go about solving it.

How to find out who calls a function module in update task in CRM

$
0
0

Purpose


In CRM, when saving a transaction(T_code CRMD_ORDER or CRM webui), there are function modules executed in update task. Sometimes, we get errors from these function modules. The typical sample is: SAPSQL_ARRAY_INSERT_DUPREC which happens in function modules like CRM_SERVICE_OS_UPD_SUB_DU.

 

Most of time, it happens because the same function module is executed twice with the same records to insert. If we know from where the function module is called, we can understand the whole logic more clearly and find out the reason why it runs in this way.

 

Normally, updates use database table VBMOD and VBDATA to record the update tasks. So we can use T-code SM13 to get information for the update function modules. But for CRMD_ORDER and CRM webui, we cannot find the update information in SM13. It is because both T-code CRMD_ORDER and CRM webui use ABAP Memory technology instead of VBMOD and VBDATA.

 

We can consider setting a breakpoint in the update function module. But when the breakpoint stops, it is already inside this function module. We still don't know who call it.


Of couse, we can also set breakpoint in the command 'CALL FUNCTION'. It will stop at every 'CALL FUNCTION' statement. If we are lucky enough, we can find out quickly the line where the expected function module is called. But for me, I cannot say so.


Then, how can we locate quickly the place where the update function module is called? In this article, I will explain with a sample how I do.


How is the update information stored and retrieved

 

If we display program SAPMSSY0 in T-code SE38, we can find export to memory id statement. It writes %_vb_calls into ABAP memory with ID %%vbkey while %_vb_calls contains the update function modules information.
1 export statement.PNG


Let's display program SAPMSSY4. We will see import from memory statement. Now the update information in the ABAP memory is imported to %_vb_calls.

2 import statement.PNG

Sample

I want to find out where the update function module CRM_SERVICE_OS_UPD_OST_DU is called.

 

steps in T-code CRMD_ORDER

1. Set breakpoint in line 575 of program SAPMSSY0 and line 31 of program SAPMSSY4.

2. Create a transaction, input values. Before clicking 'save' button, input /h and click Enter first.

3 create a transaction to save.PNG
3. Click 'save' button, it will go into debug mode. Check from menu 'Settings'->'Change Debugger Profile/Settings', make sure system debug is switch on since SAPMSSY0 and SAPMSSY4 are system programs.

4 into debug mode.PNG

5 debug setting.PNG

4. Click F8, the breakpoint will stop at the line 575 of program SAPMSSY0. Double click the variant vb_func_name, the value now is, for example, CRM_ACTIVITY_H_UPDATE_DU.

6 stop at export.PNG

5. From the callstack, if we double click on the previous program, we can see how FM CRM_ACTIVITY_H_UPDATE_DU is called in FM CRM_ORDER_TABLE_SAVE.

6-2 stop at export.PNG

6. If we click F8, we can get all callstacks and notice that the variant VB_FUNC_NAME is the update function module name which is being called.

7 update tasks calling.PNG

7. Of course, I just want to find out where FM CRM_SERVICE_OS_UPD_OST_DU is called. If I click F8 everytime, I have to stop many times. In order to make it fast, in step 5, I will set a condition for the breakpoint. Go to 'Break/Watchpoints' tab, click 'new' to create a condition.

8-1 set condition.PNG

8. The condition is VB_FUNC_NAME = 'CRM_SERVICE_OS_UPD_OST_DU'.

8-2 set condition.PNG

9. Go back to 'standard' tab, click F8. This time, it will stop only when the update function module 'CRM_SERVICE_OS_UPD_OST_DU' is called. In this way, I can find out where the expected function module is called.

8-3 back to bk.PNG

The entries of %_vb_calls change every time when we stop here. At the moment, its content is:

8-4 vb tab exported.PNG

10. If we continue to click F8, finally, we will come to the line 31 of SAPMSSY4.

9-1 vb table.PNG

Content of %_vb_calls will be:

9-2 vb table.PNG

After this, system will loop %_vb_calls, execute the update function modules one by one.

 

steps in CRM webui

The steps in CRM webui are similiar to the ones in T-code CRMD_ORDER. For example, if I create an interaction record, all the steps will be:

1. Set breakpoint at line 575 of program SAPMSSY0 and line 31 of program SAPMSSY4. Please notice the breakpoints are 'external breakpoint'.

2. Set breakpoint at method CL_ICCMP_BT_BUTTONBAR_IMPL->EH_ONSAVE.

3. Create an interaction record and click 'save' button.

P-1 web save.PNG

4. Breakpoint will stop at line 575 of program SAPMSSY0. Also make sure system debug is switched on. Set condition VB_FUNC_NAME = 'CRM_SERVICE_OS_UPD_OST_DU', then click F8 to continue.

5. Breakpoint will stop when FM CRM_SERVICE_OS_UPD_OST_DU is called.


what is ibase?

$
0
0

can any one briefly explain about what is ibase?where we use this ibase in sap crm,what are benifits with this.

Error during interprocess communication

$
0
0

hi,

 

i have created 2 views. I have created a button in view1 and im trying to navigate from view1 to view2. For that i have a button in view1. Onclick on button in view1 it should navigate to view2. But in my view1 htm page it is giving me the error "Error during interprocess communication" while debugging. here is my htm code of the view1

 

 

<%@page language="abap" %>

<%@extension name="thtmlb" prefix="thtmlb" %>

<%@extension name="chtmlb" prefix="chtmlb" %>

<%@extension name="bsp" prefix="bsp" %>

<thtmlb:grid cellSpacing = "1"

              columnSize  = "8"

              height      = "100%"

              rowSize     = "6"

              width       = "100%" />

 

<thtmlb:button enabled = "TRUE"

                     id = "BTN1"

                onClick = "BTN1"

                   text = "GOTO PG 2" />

 

Thanks

New WEBCUIF Standard Theme: Blue Crystal

$
0
0

The Web Client UI Framework (WEBCUIF) is now offering the new standard SAP Blue Crystal theme. SAP Blue Crystal is the new visual design theme, introduced by SAP Fiori, which succeeds the older Corbu design. It is based on the same interaction design and UI controls as Corbu, but uses different colors. This new visual design offers a modern and fresh look.

 

SAP Blue Crystal can also be used to integrate existing user interfaces into SAP Fiori scenarios. It thus aims to reduce visual disruption between the different technologies. it harmonizes the coloring and design of different controls, but does not resemble Fiori's user interaction, navigation and the like.

 

Characteristics of the "SAP Blue Crystal" design for Unified Rendering:

  • very light design
  • less use of grey colors
  • harmonized coloring with "SAP Blue Crystal" for SAPUI5
  • based on the metrics of "SAP Corbu"
  • uses CSS3 technology

 

01_home.png09_leads_search.png12_leads_search_bar.png13_leads_ovp.png

 

For more information, see SAP Note 2227135 "New visual design Blue Crystal for the Web Client User Interface".

Replicating field Vendor in ME41 (ECC) to CRM product master

$
0
0

Hello.  We want to replicate Vendor fields created in MM41 transaction in ERP into the product master of CRM.  Is this possible? We're on ECC EHP6 and CRM 7.2.  I understand that the standard replication mechanism uses CRM middleware with object type MATERIAL and that there are so called BDOCS being transferred from ECC to CRM. We already successfully replicated material masters to CRM (using R3AS and object MATERIAL). But now we'd like to see some more fields arriving in the CRM's product master and being showed on the transaction COMMPR01 especially for field Vendor in tab Purchasing in Product Relationship. Are there any guidelines out there to accomplish this ?  Has somebody on this forum already done it and is willing to share this knowledge? Thanks in advance.

 

Best regards,

Ahmad

To retrieve screen values while implementing BADI

$
0
0

Hi everyone,

I am new to solution manager. In create incident screen , The "assigned to" field is a partner determination header field . Can anyone suggest how to retrieve the field values while implementing a BADI. For the rest fields of the screen,   i have retieved it  by FM "CRM_ORDER_READ". This FM is not having the field values of the  "assigned to". How can we get the value of the field from the screen.

Please suggest me some points.

 

Thanks a ton in advance

 

aass.JPG

Viewing all 4552 articles
Browse latest View live




Latest Images