Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8332

How to add values to the newly-added column to POWL

$
0
0

Hi,

 

The requirement is to add custom columns to Due List Report for Purchasing Documents. I was able to do the addition of column but my problems are:

  • What component name to use?
  • How to get the output table of the ALV in order to update the table specifically the newly-added custom columns?

 

The WD, POWL_TABLE_COMP has view TABLE_DATA. Context looks like this:

table_data_context_view.jpg

I need to get the data or the output table of the ALV and insert values to the newly-added columns. To do this, I implemented BADI, WD_BADI_DOMODIFYVIEW with filter value of just the view_name because I don't know where to get the component name. In the method, IF_WD_BADI_DOMODIFYVIEW~WDDOMODIFYVIEW, this is my code:

 

DATA: lo_nd_versioning     TYPE REF TO cl_wdr_context_element,
         lt_results                TYPE /scf/duelist_tab_powl.


IF first_time IS NOT INITIAL.
       lo_nd_versioning = wd_context->get_child_node( name = wd_this->wdctx_function_elements ).
       lo_nd_versioning->get_static_attributes_table(
         IMPORTING
           table = lt_results ).

ENDIF.


With this, LT_RESULTS returns empty or blank.


Please advise if I'm using the correct node for CONTEXT which is FUNCTION_ELEMENTS.


FYI. Environment is SNC and it's the newer version.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>