Skip to Content
avatar image
Former Member

Conversion of type "g" to type "h" not supported.

Hi friends,

In select-options component, while assigning the Range table Value of the select-options field( PERNR ),

to exporting parameter VALUE of the SET_ATTRIBUTE method,I am getting the error as

Conversion of type "g" to type "h" not supported.,

kindly, provide me some inputs, in solving this Issue.

Regards,

Xavier.P

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 07, 2009 at 10:32 AM

    Hi,

    Try giving the Range table value as 'PERNR_D' instead of 'PERNR'. I faced the same problem before and it got resolved because of the below changes.

    example:

    wd_this->m_handler->create_range_table(

    i_typename = 'PERNR_D' ).

    • add a new field to the selection

    wd_this->m_handler->add_selection_field(

    i_id = 'PERNR_D'

    it_result = lt_range_table

    i_read_only = read_only ).

    Thanks,

    Rajkumar.S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Xavier,

      Please try to use the conversion class as specified above because in some cases we cannot directly move the fieldsymols to variables. We need to convert them to the target variable type then we can move to the actual variable. Please try to understand my code snippet in earlier post.

      Regards,

      Lekha.

  • avatar image
    Former Member
    Jan 07, 2009 at 10:19 AM

    Hi Xavier,

    Please check out with the fieldsymbols you are using to populate the range table.

    Check the structure of the Range table you are trying to populate.

    I think the VALUE is of DATA type, it means a fieldsymbol.

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded