Skip to Content

FPM IDR doesn't display amount fields

Hi everyone,

I've defined a dictionary structure named ZSRM_WD_PO_HEADER containing 2 fields:

- AMOUNT type BPREI reference field ZSRM_WD_PO_HEADER-WAERS

- WAERS type WAERS

The amount field is displayed correctly onto the screen but when I include it in the FPM IDR region it does not work:


  ls_item_ref-label_name = 'Amount:'.
  ls_item_ref-value_path = 'PO_HEADER.AMOUNT'.
  APPEND ls_item_ref TO lt_items_ref.

  ls_item_ref-label_name = 'Currency:'.
  ls_item_ref-value_path = 'PO_HEADER.WAERS'.
  APPEND ls_item_ref TO lt_items_ref.

   me->lo_idr->add_item_group_by_ref( EXPORTING
                                         io_root_node = lo_main_context
                                         it_items = lt_items_ref
                                         IMPORTING ev_key = lv_idr_key ).

In this case I get a dump: could not find WAERS attribute.

If I remove the amount from the IDR it all works okay and the amount is displayed onto the screen (but not in the IDR of course).

This sounds to me like a bug. Any ideas?

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2011 at 02:44 PM

    Error message is clear that attribute "WAERS" is not available in PO_HEADER at the moment IDR is being called. Perhaps it is dynamically added to the context node later.

    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.