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

Value help for Date and other Abap Dictionary Objects in CRM Web UI not coming

$
0
0

Hi Experts,

 

There is a standard field date in my Complaint type Transaction. F4 Help is not coming in that field. As this is a date type field , i think

i dont need to code in Get_V method as there are many fields of date type.

 

Is there any customizing i need to do? Plz help!


How to get only active contacts in contact assignment block in account overview page of Account Management in SAP CRM WEB UI?

Re: Raise error message, it should not allowed to save in WEBUI

$
0
0

Hi All,

 

Is there any way to stop saving if error messase is there in transaction ( IN web ui ).

Rather than writing the code in EH_SAVE event.

 

Thanks

Suresh

Re: Raise error message, it should not allowed to save in WEBUI

$
0
0

Hi Suresh,

 

The standard behaviour is to allow saving the documents with error. So you cannot avoid this without writing code.

 

If you want to prevent saving, then you can implement the method CHECK_BEFORE_SAVE in the BADI ORDER_SAVE. If there are error messages, do RAISE DO_NOT_SAVE exception.

 

This will solve your problem.

 

Thanks & Best Regards,

Leon

Re: How to get only active contacts in contact assignment block in account overview page of Account Management in SAP CRM WEB UI?

$
0
0

Hello,

 

You can write custom logic in BP_DATA component in view BP_DATA\AccountOV in do_prepare_output method.

 

Fetch contact id by conp_number field of context node buildcontactperson then check it with but000 table...then delete this entity putting in while loopp...

 

Thanks..

Amit

Re: Value help for Date and other Abap Dictionary Objects in CRM Web UI not coming

Re: Updating the Line items date based on header delivery date in ERP sales order

$
0
0

Hello Gopinath,

 

set some flag in get method of date field of context node ERPADMINH context node....nd set it inside some global varibale inside implemetation class...

 

First find view and component of line item where date field is present....

 

go to get method of date field of line item...and reach the context node ERPADMINH by relationship using get_related_entity method of cl_crm_bol_entity class.

 

fetch  value of date field of context node ERPADMINH context node...and when there is some value in it...then set this value in set method of date field line item context node...

 

Please apply this logic..it will be helpful to you.

 

Thanks,

Amit

Value help for Date in CRM Web UI not coming

$
0
0

Hello All,

There is a standard field date in my Complaint type Transaction. F4 Help is not coming in that field. As this is a date type field , i think i dont need to code in Get_V method as there are many fields of date type.

Is there any customizing i need to do? Plz help regarding this.

 

Regards,

rocky


Re: Value help for Date in CRM Web UI not coming

setting and getting methods have different valuse.

$
0
0

Hi All,

    

1. Initially in both setter & getter are showing same valuse.

2. Once i change the value in the field ( this is droup down field) to another, i am getting old value in getter method. But setter method perfectlly setting the new value.

In setter method current entity and collections are getting change with new value, these are not reflecting to get method.

 

This is my set method

 

    data: lr_cuco type ref to cl_bsp_wd_custom_controller.
  data: lr_cuco_impl type ref to zl_bt140i_s_details_imp1 .
  create object lr_cuco_impl.
  data:
    current type ref to if_bol_bo_property_access,
    dref    type ref to data,
    copy    type ref to data.

  field-symbols:
    <nval> type any,
    <oval> type any.

*   get current entity
  if iterator is bound.
    current = iterator->get_current( ).
  else.
    current = collection_wrapper->get_current( ).
  endif.

*   get old value and dataref to appropriate type

  try.

      data: coll   type ref to if_bol_entity_col.
      data: entity type ref to cl_crm_bol_entity.
      data: current1 type ref to cl_crm_bol_entity.

      entity ?= current.
      coll = entity->get_related_entities(
               iv_relation_name = 'BTItemTextSet' ).        "#EC NOTEXT
      current = coll->get_current( ).
      if current is not bound.
        return.
      endif.

      entity ?= current.
      coll = entity->get_related_entities(
               iv_relation_name = 'BTTextIAll' ).           "#EC NOTEXT
      current = coll->get_first( ).
      current1 ?= current.
      if current is not bound.
*        RETURN.
      endif.
      data:lv_id type string.
      clear:lv_id.
      while current is bound.
        call method current->get_property_as_string
          exporting
            iv_attr_name      = 'TDID'
*           iv_use_iso_format = ABAP_FALSE
          receiving
            rv_result         = lv_id.
        if lv_id = 'Z003'.
          exit.
        else.
          current = coll->get_next( ).
        endif.
      endwhile.
      datadref1    type ref to data,
             copy1    type ref to data.
      if current is not bound.
        data: lr_entity     type ref to cl_crm_bol_entity.
        lr_entity = entity->create_related_entity( iv_relation_name = 'BTTextIAll' ).
        lr_entity->set_property( iv_attr_name = 'TDID'
                          iv_value     = 'Z003' ).

        lr_entity->set_property( iv_attr_name = 'TDSPRAS'
                                 iv_value     = 'E' ).

        coll->add( iv_entity = lr_entity ).
        current = coll->get_next( ).
      endif.

      try.
          dref = current->get_property( 'CONC_LINES' ).     "#EC NOTEXT
        catch cx_crm_cic_parameter_error.
      endtry.

    catch cx_sy_ref_is_initial cx_sy_move_cast_error
          cx_crm_genil_model_error.
      return.
  endtry.


*   assure that attribue exists
  check dref is bound.

*   set <oval> to old value
  assign dref->* to <oval>.
*   create a copy for new value
  create data copy like <oval>.
*   set <nval> to new value
  assign copy->* to <nval>.

*   fill new value using the right conversion
  try.
*        TRY.
      call method if_bsp_model_util~convert_from_string
        exporting
          data_ref       = copy
          value          = value
          attribute_path = attribute_path.
*        CATCH cx_bsp_conv_illegal_ref.
*          FIELD-SYMBOLS: <l_data> type DATA.
*          assign copy->* to <l_data>.
*         please implement here some BO specific handler coding
*         conversion of currency/quantity field failed caused by missing
*         unit relation
*         Coding sample:
*         provide currency for currency fields or decimals for quantity (select from T006).
*          cl_bsp_utility=>instantiate_simple_data(
*                             value = value
*                             reference = c_currency
*                             num_decimals = decimals
*                             use_bsp_exceptions = abap_true
*                             data = <l_data> ).
*      ENDTRY.
    catch cx_sy_conversion_error.
      raise exception type cx_bsp_conv_failed
        exporting
          name = 'ZTEXT_ITEM'.                              "#EC NOTEXT
  endtry.

*   only set new value if value has changed
  if <nval> <> <oval>.

    current->set_property(
                    iv_attr_name = 'CONC_LINES'             "#EC NOTEXT
                    iv_value     = <nval> ).

  endif.

 

""""""""""""""""""""""""""""""""""""" my get method is """""""""""""""""""""

 

   data: current type ref to if_bol_bo_property_access.
  data: dref    type ref to data.
                                                            "#EC NOTEXT
  value = ''.

  if iterator is bound.
    current = iterator->get_current( ).
  else.
    current = collection_wrapper->get_current( ).
  endif.

  try.

      data: coll   type ref to if_bol_entity_col.
      data: entity type ref to cl_crm_bol_entity.

      entity ?= current.
      coll = entity->get_related_entities(
               iv_relation_name = 'BTItemTextSet' ).        "#EC NOTEXT
      current = coll->get_current( ).
      if current is not bound.
        return.
      endif.

      entity ?= current.
      coll = entity->get_related_entities(
               iv_relation_name = 'BTTextIAll' ).           "#EC NOTEXT
      current = coll->get_first( ).
      data:lv_id type string.
      clear:lv_id.
      while current is bound.
        call method current->get_property_as_string
          exporting
            iv_attr_name      = 'TDID'
*           iv_use_iso_format = ABAP_FALSE
          receiving
            rv_result         = lv_id.
        if lv_id = 'Z003'.
          exit.
          ELSE.
              current = coll->get_next( ).
        endif.
      endwhile.

      try.
          dref = current->get_property( 'CONC_LINES' ).     "#EC NOTEXT
        catch cx_crm_cic_parameter_error.
      endtry.

    catch cx_sy_ref_is_initial cx_sy_move_cast_error
          cx_crm_genil_model_error.
      return.
  endtry.

  if dref is not bound.

    value = 'BTAdminI/BTItemTextSet/BTTextIAll/CONC_LINES not bound'. "#EC NOTEXT

    return.
  endif.
  try.
      value = if_bsp_model_util~convert_to_string( data_ref = dref
                                  attribute_path = attribute_path ).
    catch cx_bsp_conv_illegal_ref.
      field-symbols: <l_data> type data.
      assign dref->* to <l_data>.
*       please implement here some BO specific handler coding
*       conversion of currency/quantity field failed caused by missing
*       unit relation
*       Coding sample:
*       provide currency, decimals, and reference type
*       value = cl_bsp_utility=>make_string(
*                          value = <l_data>
*                          reference_value = c_currency
*                          num_decimals = decimals
*                          reference_type = reference_type
*                          ).
      value = '-CURR/QUANT REF DATA MISSING-'.
    catch cx_root.
      value = '-CONVERSION FAILED-'.                        "#EC NOTEXT
  endtry.

Re: Raise error message, it should not allowed to save in WEBUI

$
0
0

Hi all,

     I got another way to solve this problem.

 

Once my error message is there, then i am disabling the overview page. So user can't save, can't move further.

 

Thanks for all of your valuable inputs....

 

 

Thanks

Suresh

Re: BCM quality management

$
0
0

Hi Andrei,

 

Do you know if speech recognition still requires third party on the latest versions of BCM ?

 

Many thanks,

 

Eli

Re: Value help for Date and other Abap Dictionary Objects in CRM Web UI not coming

$
0
0

Hi Amit,

It is not any custome date type. its a simple standard date field on which F4 help is not coming.

i.e Calendar is not coming.

although thanks for sharing.

Re: Value help for Date in CRM Web UI not coming

$
0
0

Hi Amit,

 

http://scn.sap.com/thread/3322469

 

Same Question , Same Content and even same description.  Not like a coincident.

 

And For ebery rocky S question only Amit Singh has right answer. Not like a Coincident.

 

P.S : SCN is not for Scoring Home Runs.

 

Thanks,

Dhruvin.

Re: Interactive script editor: read values of answers into non-branching action

$
0
0

Hi,

 

I think u can ref to CL_CRM_IC_SCRIPT_ACT_BPSTAT2 to create your own class inside execute method.U can read out data of bp address..

 

pls reward when it is helpful.


Re: Questionniare in Component ICCMP_BT_INR

$
0
0

Hello Rohan,

 

  Is there any possibility to achieve it without any development?  

  Any other suggestions please.

 

Regards

Najm

Re: Including htm page into WEB UI component page

$
0
0

I scare I haven't described my case clearly. I don't want copy 2 thousand lines of Javascript into some .HTM component pages.

I thought to create *.js file on application server and use like this <script src="<*.js>">, but better will be create CRM object (BSP-page or something another(?) with the same JS code).

So, what about it?

Re: Tree view in BSP Component

Re: Activating CRM Web Ui Reports

$
0
0

Hi Reshma,

Thanks for the detailed response, appreciate the same as per your post I have gone into the transaction crmc_ui_bi, I have taken a Bi Report Id which is MKT_LEADS_WON_AND_LOST as highlighted below, which is basically Leads won and lost report, Next I click on cross navigational link as suggested by you

 

Untitled.png

Next I get the below screen, as per your post above what do I define here appreciate if you could illustrate with an e.x.

 

(Not able to understand this part of your post)

 

You can define cross navigational links from any characteristic in a Business Intelligence (BI) report to other SAP Customer Relationship Management (SAP CRM) components by making the appropriate settings in Customizing

->To integrate BI Reports in the Navigation Bar you can I define a Logical Link that calls a BI Report

 

And are these the only customization involved from the CRM side or does this require any customization from the Bi side as well assuming I go for Option 1 as suggested by you

 

 

Untitled.png.1.png

Kind Regards

Atul

Re: Difference Post Processing Framework and Business Rule Framework

$
0
0

Hello Schmidt ,

 

 

   BRF - Business Rules Framework is used for defining Business rules which we use in our day to day life.

 

For Example : You can define a rule for giving Discount on certain Product. You can define a rule for this with the start and end date where in you want to give the discount.

 

 

Or your scenario might be some thing like : The discount of 50% on certain product should be   there for 30 days and after that it should get reduced to 30%. All these stuffs you  can control through BRF.

 

A unique GUID will be generated for Each application and with the help of this you can able to call this Application any where in you A BAP Programming.

 

Hope this helps. 

 

Thanks and Regards,

Nikhil Kulkarni

Viewing all 7775 articles
Browse latest View live


Latest Images