cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data Typ error for 'AMOUNT' missing reference for currency?

Former Member
0 Likes
4,298

Hello to all

I have build a WDA interface, where I load flat file data into the UI Table element. In the context of the componentcontroller I use a dictionary structure, which is then mapped to the context in the viewcontroller.  In the viewcontroller I use a method (onactionupload) to read the flat file data. There  I get the following error, while activation:

In google and SDN I found some comments about reference issues regarding 'amount' and 'currency'.

However in my opinion my structure is correctly defined as following ( my structure uses data types used for BW infoobjects, I am on a BW 7.01 installation- 😞

..and as well the reference in the structure is defined as following:

My work around, which didn't work:

I use following coding to assign dynamically the reference. I did it in the onactionupload method used in the viewcontroller

------------------------------------------------------------------------------------


* Set currency reference field for 'AMOUNT' in context node

* Describe object for 'root' node (description object)
   DATA: lo_nd_info_root  type REF to  if_wd_context_node_info,
         lo_nd_info       type REF to  if_wd_context_node_info.

* Get information für root node and navigate to context node
         lo_nd_info_root = wd_context->get_node_info( ).
         lo_nd_info      = lo_nd_info_root->get_child_node('SOURCE_ISDE' ).

* Set explicitely the currency reference for 'AMOUNT'
         lo_nd_info->set_attribute_reference_field(
         name = 'AMOUNT'
         reference_field = 'CURRENCY'
         reference_field_type = if_wd_context_node_info=>reffieldtype_curr ).

--------------------------------------------------------------------------------------

My issue:

I couldn't solve the issue /error of data type for amount. I also can't understand, that amount makes such issue as I have defined a Dic structure with reference.

So please let me know, where you see the issue and what you think and how I could solve this issue.

Best regards and thanks very much for your help

Christian

System info is:

View Entire Topic
former_member217546
Participant
0 Likes

Hi,

Can I know is that error coming in the below method (Row No 236) or some where else.

* Set explicitely the currency reference for 'AMOUNT'
         lo_nd_info->set_attribute_reference_field(
         name = 'AMOUNT'
         reference_field = 'CURRENCY'
         reference_field_type = if_wd_context_node_info=>reffieldtype_curr ).