Hello,
I am developing an ABAP-OO logic for a drill down report(VBAK->VBAP based on sales document number in VBAK) using OO factory methods and Splitter class and Grids as below.When I click on sales document from first ALV all its items are displayed in second ALV.The problem here is it is returning the appropriate line items only two times when clicked on any two sales documents.After that it keeps on returning the last clicked sales document items and does not display items accordingly.Below is my code:
Below is the method that is called when the sales document number from ALV1 is clicked:
In the above code first it accurately retrieves values from VBAP for the clicked sales document number.But below is the display_item( ) method logic which I guess is problematic:
Please help in case I am going wrong somewhere.
Regards
Mithil