cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Line Items of a BAPI in Table Format

Former Member
0 Kudos

have a custom Bapi ZPM_GET_ORDERS.

It has a Model structure like

Orders_Hdr

Operations [Multiple Line Items]

I want to display the operations line items in the table format in a View when we click on the Orders_Hdr.

For that I am wondering what should the code on the onLeadSelect of Orders_Hdr table at the ViewController?

In other words how can I display those line items on a click of a Header record. I am looking for some pseudo code that goes in the onActionLeadSelect()of View.

Thank You . Any help is appreciated

Accepted Solutions (0)

Answers (1)

Answers (1)

Yashpal
Active Contributor
0 Kudos

Hi Vivek,

On LeadSelect .....just get the current selected node element and also store a attribute value from the currnet selected to a variable (like orderid)which is common in both the node ....then loop through the operations node and put the condition equal to orderid using the variable ...if mathces the put node elemnt in to some node created(value node of same type )...

for copying the node u can use the WSCopyService class...

Regards,

Yash