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

Re: How to bind table to a subnode

$
0
0

Hi AMI

 

In order to fill the data into sub-node (CHILD_NODE) you have to use the concept of SUPPLY FUNCTION.

 

  • Goto CONTEXT,
  • select subnode
  • Give some method name in the beside SUPPLY FUNCTION in properties of the child_node
  • Double click on the given name in the supply function field
  • Uncomment lines starting from 13 till end of the method
  • Implement the required coding before the BIND_TABLE method
  • here is the same code, EKKO is the parent node name and EKPO is the child node name
  • Based on lead selection in EKKO  automatically EKPO node entries are fetched using SUPPLY FUNCTION concept.

 

DATA ls_parent_attributes TYPE wd_this->element_ekko.

parent_element->get_static_attributes(
IMPORTING
static_attributes = ls_parent_attributes ).


* data declaration
DATA lt_ekpo TYPE wd_this->Elements_ekpo.
DATA ls_ekpo LIKE LINE OF lt_ekpo.
* @TODO compute values
* e.g. call a data providing FuBa

* Manual coding
SELECT * FROM EKPO
INTO CORRESPONDING FIELDS OF TABLE lt_ekpo
WHERE ebeln = ls_parent_attributes-ebeln.
* Manual coding

* bind all the elements
node->bind_table(
new_items            =  lt_ekpo
set_initial_elements = abap_true ).

 

 

 

Points Please if helpful

 

Regards

Subhash


Viewing all articles
Browse latest Browse all 9190

Trending Articles



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