Skip to Content
author's profile photo Former Member
Former Member

BSP extension

hello,

In the weblog by Thomas 'BSP Programming: HTMLB TableView Iterator': i try to test it but i've got a message: 'Field "M_CURRENCIES_REF" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

I've decalared it like that:

DATA: M_ROW_REF TYPE REF TO SFLIGHT.

DATA: M_CURRENCIES_REF TYPE REF TO DATA,

table1 TYPE TIHTTPNVP.

GET REFERENCE OF table1 INTO M_CURRENCIES_REF.

and the code of te exemple:

WHEN 'CURRENCY'.

IF P_EDIT_MODE IS NOT INITIAL.

P_REPLACEMENT_BEE = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(

ID = P_CELL_ID

SELECTION= M_ROW_REF->CURRENCY

TABLE = ME->M_CURRENCIES_REF

NAMEOFKEYCOLUMN = 'NAME'

NAMEOFVALUECOLUMN = 'VALUE' ).

I've not a long experience in coding and if someone can help me. How to declare M_CURRENCIES_REF and M_ROW_REF.

Thanks by advance.

Farid BERRA

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 08, 2004 at 07:42 PM

    Is your data declaration for M_CURRENCIES_REF defined like you have it in code or as an attribute of your iterator class? Later in your code you refer to ME->M_CURRENCIES_REF. This would tell me that is is meant to be an attribute of the class. From the partial code snippet you have it is difficult to determine much else.

    I believe that the weblog you are refering to was actually written by Brian McKellar. There are other weblogs on TableView Iterator on SDN as well. Perhaps looking at more than one example will help you get started.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 05:06 PM

    Hello,

    In the attribute of the class ZCL_BCM_SDN_ITERATOR, I put:

    Attribut ... Type réf

    M_ROW_REF ... SFLIGHT

    I ‘ve a problem with this declaration of m_row_ref (also with M_CURRENCIES_REF).

    However, i respected the model of the weblog of Brian McKellar and also that of Craig Cmehil. I’ve always have this message!!!

    ‘Classe ZCL_BCM_SDN_ITERATOR, Méthode IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START "M_ROW_REF" is not a reference variable. ‘

    In the code of RENDER_CELL_START , i have:

    ...

    WHEN 'FLDATE'.

    IF P_EDIT_MODE IS NOT INITIAL.

    DATA: DATE TYPE STRING.

    DATE = M_ROW_REF->FLDATE.

    P_REPLACEMENT_BEE = CL_HTMLB_INPUTFIELD=>FACTORY(

    ID = P_CELL_ID

    VALUE = DATE

    TYPE = 'DATE'

    SHOWHELP = 'TRUE'

    CELLVALUE = 'TRUE' ).

    ENDIF.

    ...

    I'm blocked... So, thanks for your help.

    Farid BERRA

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2004 at 08:39 AM

    Hello Craig,

    It's seems to be '0035'.

    Cordially

    Farid BERRA

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.