Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

SAP.M ComboBox Error

Hi there,


I have bound a model to my comboBox which contains: GL Account Number (SAKNR) and the Description. When i add SAKNR as the Value field i get the following error:




What is a conversion exit and any ideas on how i can rectify this?


Thank you,


Hello Neptune,

 

Do you already have an official fix for this? If yes, how and where can we get the transport request?


Thanks,

Hadi

Hi Shireen


The problem is due to binding issue for fields with conversion exit used in ComboBox/Select. You can change the function module /NEPTUNE/GET_BINDING_DATA. This correction will be delivered with NAD 3.1 SP01.


Check the Note 310001 comments:


  

function /neptune/get_binding_data.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(NAME) TYPE  CLIKE OPTIONAL
*"     REFERENCE(TYPEDESCR) TYPE REF TO  CL_ABAP_TYPEDESCR
*"     REFERENCE(PARENT) TYPE  CLIKE OPTIONAL
*"  TABLES
*"      BINDING STRUCTURE  /NEPTUNE/DESIGNER_BINDING
*"----------------------------------------------------------------------

  constants lc_table_line   type name_feld value 'TABLE_LINE'.

  data: lo_structdescr    type ref to cl_abap_structdescr,
        lo_elemdescr      type ref to cl_abap_elemdescr,
        lo_tabledescr     type ref to cl_abap_tabledescr,
        lo_typedescr      type ref to cl_abap_typedescr,
        lv_is_ddic_type   type abap_bool,
        ls_ddic_field     type dfies,
        lv_relative_name  type string.

  "Note 310001 - START
  data: lv_convexit       type string.
  "Note 310001 - END

  field-symbols: <wa_component> like line of lo_structdescr->components.

  case typedescr->kind.
    when cl_abap_typedescr=>kind_elem.
      lo_elemdescr ?= typedescr.

      binding-name      = name.
      binding-parent    = parent.
      binding-type_kind = lo_elemdescr->type_kind.
      binding-outputlen = lo_elemdescr->output_length.
      binding-decimals  = lo_elemdescr->decimals.
      binding-datatype  = lo_elemdescr->type_kind.

      "Note 310001 - START
      "binding-convexit  = lo_elemdescr->edit_mask.
      lv_convexit       = lo_elemdescr->edit_mask.
      replace all occurrences of '='in lv_convexit with space.
      shift lv_convexit left deleting leading space.
      binding-convexit  = lv_convexit.
      "Note 310001 - END

  

Regards

Ole Andre 

Login or Signup to post a comment