Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all 7775 articles
Browse latest View live

Re: Creation of New field in Relationship block of contact page

$
0
0

Hi

You can use get method of your value attribut. Write your logic in get method assign final value to the VALUE parameter in get method.

 

Best regards,

Dharmakasi


Re: How to read the form view data of value node?

$
0
0

Hi Maren,

 

Instead of using lr_entity ref type cl _crm_bol_entity  use cl_bsp_wd_value_node. It will work.

 

Thanks

Bhushan

Re: How to create Header Text and Item view

$
0
0

Yes Christian, heading are hard coded.(option : for futher requirement we can maintain heading in the custom table).

Instead of creating custom BOL object, can we go for the value table. please correct if i am wrong.


Thanks

Imran

Re: Creation of New field in Relationship block of contact page

$
0
0

Hi JC,

 

The context node that you are using is a mixed node, so from this node you need to get value node so that you can cast the value into cl_bsp_wd_value_node.

 

Here's the sample code for setter method of that attribute:

 

DATA:

   lr_mixed TYPE REF TO cl_bsp_wd_mixed_node,

   lr_value_node TYPE REF TO cl_bsp_wd_value_node.

 

lr_mixed ?= current  or lr_mixed ?= iterator. " use either of the code i dont have system right now

 

lr_value_node ?=  lr_mixed_node->if_bsp_wd_ext_property_access~get_value_node( ).

 

Here, from lr_value_node get the property access method and set the attribute value to VALUE parameter.

 

Thats it

 

Thanks,

Bhushan

Workflow not trigger through user status

$
0
0


Hi Frds,

 

I need to trigger workflow when user status is set . for this below setup i have made.

t-code BSVZ , Link user status profile to event.

t-code swetypv, link event to workflow.

Created simple WF and activate it.

Problem is that when try to trigger WF its not getting trigger.

 

I checked tcode SWEL event trace. below are the colomn entries

EVENT                                                               NAME                                                          HANDLER/ACTION

'ERRORSENDSTATUSREACHED                              (empty)                                                   no reciever entered

 

Note : i delegates standard BUS2000115 to ZBUS200115. Event is created in zbus200115. and while chossing Business Object in confi i choose standard object.

Plese advice. where i am missing.

 

Thanks,

Validations on Table View fields

$
0
0

Hi ALL, We want to provide Mandatory fields/validations on 3 fields in table view. Initially when the view is loaded they should be highlighted with RED mark indicating them Mandatory and if the users presses enter with empty values, it should give message in application log.

 

Also this table view is in the guided activity page. So if the user clicks on the Next button in the Roadmap view, the validation in the loaded view should take place and restrict the user to navigate to Next screen with message in application log.

 

Thanks

Prasad

How to open outlook compose screen when click on email

$
0
0

Hi,

I have created a custom web ui component for partner details., which contain the partner email ID. Now i have a requirement to open the outlook compose screen when we click on the email ID presently i have added the code in event block as per std. BP_APPl which opens the CRM email compose screen but i want tobopen the outlook.

 

Regards,

Zafar

Re: How to create assignment block which show DATA in TREE format


Re: How to open outlook compose screen when click on email

$
0
0

Hi.

 

Use the javascript logic...

 

window.open('mailto:test@example.com');


You can include also other parameters, e.g. predefined subject, cc, bcc and so on.


Regards, Robert

Re: Filtering My Open Task in SAP CRM based on Status, Transaction & Partner Function

Re: How to create assignment block which show DATA in TREE format

$
0
0

Thanks Robert, Krishnan,

 

I am working on the task. Thanks you very very much.

 

 

Regards,

Imran

Re: Validations on Table View fields

$
0
0

Hi Prasad,

 

There are 2 requirements: First making table view fields mandatory and validations on guided navigation next button.

 

For 1st requirement: First making table view fields mandatory

This facility is not provided for table view fields. Usually there is an option called fields properties, but not available for table view fields. Put your validations in do_validate_input or do_prepare_output method by using below code for raising error messages:

 

   DATA : lr_msg_srv      TYPE REF TO cl_bsp_wd_message_service.
   CALL METHOD cl_bsp_wd_message_service=>get_instance
    RECEIVING
      rv_result = lr_msg_srv.

  CHECK lr_msg_srv IS BOUND.

  lr_msg_srv->add_message(
  iv_msg_type   = messtype
  iv_msg_id     = messid
  iv_msg_number = messno
  ).

For 2nd requirement: validations on guided navigation next button

There is a sample guided bsp component available called UIF_TBUI_SAMPLE, view UIF_TBUI_SAMPLE/GuidedFlightBooking which can match your requirement, i hope.

 

There go to your view impl class, go to its super class, again go to its super class ending with "_VS", mostly the class will be CL_BSP_WD_GEN_ROADMAP_VS. There you will find method "IF_BSP_CONTROLLER~HANDLE_EVENT". At line no 20, the next button event is captured.

 

So when you will press "NEXT" button on guided page this "NextRoadMapItem" event will get triggered. Redefine this method in your view impl class and do the necessary validation.

 

 

All the best

 

Thanks,

Bhushan

 

Re: Search View with Value Node

$
0
0

Hi Tim Michael,

have you full fill your requirement.. if not give me reply i have answer for this question..

 

Thanks & Regards,

Srinivas

Re: Search View with Value Node

$
0
0

Hi,

 

try to refer my blog

 

Set or Populate value nodes with value using CL_BSP_WD_VALUE_NODE

 

  1. TYPES: BEGIN OF str, 
  2.               status TYPE char20, 
  3.             END OF str. 
  4. * Structure of status context node. 
  5. DATA  lr_struct_ref    TYPE REF TO str. 
  6. * Structure of your context node 
  7. data  ls_struct    type  str. 
  8. DATA lr_value_node    TYPE REF TO cl_bsp_wd_value_node. 
  9. CREATE DATA lr_struct_ref. 
  10. CREATE OBJECT lr_value_node 
  11.    EXPORTING 
  12.      iv_data_ref = lr_struct_ref. 
  13. ls_struct-status = 'Your Value'
  14. lr_value_node->if_bol_bo_property_access~set_properties( ls_struct ). 
  15. *Add Value Node to a collection 
  16. typed_context->testnode->collection_wrapper->add( lr_value_node ). 

 

Regards,

Sumeet

how to change help center link to our own website

$
0
0

hi,

how to change help center link to our own website. if i click help center which i mentioned it want to go webisite which i ll give.(for ex.www.google.com) if i click help center link it want to go to google..

 

 

 

 

 

 

 

 

 

 

 

 

regards,

gopi


Window Enhancement in SAP CRM

$
0
0

Hi Experts,

 

I am working on component BT110M_ACT , I have enhanced BT110M_ACT/MainWindow in Component Structure Browser.

After enhancing it , I find the table BSP_WD_EXT_HIST , it is correctly maintained.

 

Now I went to Runtime Repository Editor , Here under MainWindoe , there is one view CUBT125HTASK.MainWindow ,

I want to add one outbound plug here .

 

Capture.PNG

But I am getting error

View not copied or enhanced with wizard; processing not possible


When I am going to enhance it , i am getting error "

Page, controller, or MIME MainWindow.do already exists in application YWBT110M_ACT   " I know why this error is comming because I enhanced Main Window of comopnent BT110M_ACT in Component Structure Browser. But I want to enhace Runtime editor Window as well to add teh out bound plug.

 

Please help me to remove this errors.

Re: Window Enhancement in SAP CRM

$
0
0

Hi Akhilesh,

 

Go to SE80->Give the enhanced component name in bsp applications->Delete whichever you are getting error. For example, if you get the error when you try to enhance the view, remove the controller and related things for that view.

 

Now after deletion, enhance it again. The error would be gone.

 

Thanks,

Faisal

Address number change for partner in parties Involved

$
0
0

Hi all,

 

I am trying to change the address for( ADDR_NR) for Partner . I am using the function module  CRM_PARTNER_MAINTAIN_SINGLE_OW.

 

I am calling below code in  ORDER_SAVE Badi. but still it is not  changing the address number .

 

  ls_partner1-ref_guid       = ls_partner-ref_guid.

   ls_partner1-ref_handle     = ls_partner-ref_handle.

   ls_partner1-ref_kind       = ls_partner-ref_kind.

   ls_partner1-partner_no     = lv_partner.

   ls_partner1-kind_of_entry  gc_c.

   ls_partner1-partner_fct    =  'Z00000001'.

   ls_partner1-display_type   = gc_bp.

   ls_partner1-no_type        = gc_bp.

   ls_partner1-city           = ex_addresses-city1.

   ls_partner1-region         = ex_addresses-region .

   ls_partner1-country        = ex_addresses-country .

   ls_partner1-house_no       = ex_addresses-streetcode.

   ls_partner1-street         = ex_addresses-street.

   ls_partner1-postl_cod1     = ex_addresses-post_code1.

   ls_partner1-district       = ex_addresses-city2.

   ls_partner1-addr_nr        = lv_add_num1.   " NEW ADDRESS NUMBER

   ls_partner1-addr_origin    = gc_b.

   ls_partner1-addr_np        = ''.

   ls_partner1-addr_type      = '1'.

   ls_partner1-mainpartner   = 'X'.

 

 

*  ls_partner1-addr_nr       =  lv_add_num.

   ls_input_field-fieldname = 'DISPLAY_TYPE'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'KIND_OF_ENTRY'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'NO_TYPE'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'PARTNER_FCT'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'PARTNER_NO'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'CITY'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'COUNTRY'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'REGION'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'HOUSE_NO'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'STREET'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'POSTL_COD1'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'ADDR_NR'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'DISTRICT'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'ADDR_ORIGIN'.

   INSERT ls_input_field  INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname 'ADDR_NP'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.

 

   ls_input_field-fieldname = 'ADDR_TYPE'.

   INSERT ls_input_field  INTO TABLE lt_input_field_names.

   ls_input_field-fieldname = 'STD_BP_ADDRESS'.

   INSERT ls_input_field INTO TABLE lt_input_field_names.



CALL FUNCTION 'CRM_PARTNER_MAINTAIN_SINGLE_OW'

    EXPORTING

      iv_ref_guid                      = ls_partner-ref_guid

      iv_ref_kind                      = 'A'

      is_partner_com                   = ls_partner1

       iv_populate_mode                 = ' '

*     IV_CHECK_PARTNER_ONLY            = ' '

*     IS_PARTNER_CONTROL               =

*     IS_COM_STRUCTURE                 =

*     IV_EXTERNAL_CALL                 = FALSE

*   IMPORTING

*     EV_CREATED_PARTNERSET_GUID       =

    CHANGING

      ct_input_field_names             = lt_input_field_names

*     CT_PARTNER_ATTRIBUTES_COM        =

    EXCEPTIONS

      error_occurred                   = 1

      OTHERS                           = 2

             .

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ENDIF.



regards,

rama



Re: how to change help center link to our own website

$
0
0

Hi Gopi,

 

Follow this document to configure/change the Help Center links, alternatively you can enhance component/view CRMCMP_HDR_STD/GlobalFunctions and modify the method GET_HELP_CENTER_LINK of view controller class and pass your url to rv_url paramater.

 

Regards,

Shobhit

The current questionnaire is not valid, therefore it cannot be changed

$
0
0

Hello everybody,

I am trying to make some minor changes to a Survey:

 

I select a Question,

then right clik and choose "Insert Answer"

Answer Category, select "4 Input Field for Date"

then I write the Text: "Field X" in the Answer option (Field X for example)

 

Please note that I have working Field Y, Field Z, etc, with the same attributes, in the same Survey

 

Then I save , and activate the new version of this Survey,

but when I test in Web client, it shows the SAP message "The current questionnaire is not valid, therefore it cannot be changed"

then in SAP GUI the Survey automatically generates a new version of the Survey, with my changes erased  (back to original Survey).

 

Any ideas are appreciated, Thank you.

Viewing all 7775 articles
Browse latest View live




Latest Images