‎2009 Nov 14 2:29 PM
Hi friends,
I have a requirement to capture the value displayed in the ALV list output and then pass the value to a FM and then produce an output,my problem is iam not able to capture the value of sy-sucomm, if i use the below code as below, my condition is failing and it comes out of the report.
Please advise how to correct this.Thanks s in advance.
IF r_ucomm = '&IC1'
Thanks
Meenakshi
‎2009 Nov 14 3:39 PM
Check what is the value of sy-ucomm at this point .
and write you code under that.
‎2009 Nov 14 3:41 PM
‎2009 Nov 14 5:07 PM
Hi,
I dont understand your problem completely.
As far as i understand after the list is generated you want to use one of the values displayed and pass it to FM?
m i correct? if yes then let me know ill provide you a solution.
Hasan
‎2009 Nov 18 9:50 AM
Yes exactly, i need to pass the value from the output of the list to the FM and then generate a tree report.
Thanks
Meenkashi
‎2009 Nov 14 5:58 PM
Please search and check available sample code in your system. Reports BCALV
Regards,
Clemens
‎2009 Nov 18 10:55 AM
Hi,
If I understand your problem, what I think you should do is either implementing the double click event on the list and get the value, or you could select the line with method alv->get_selected_rows, read the corresponding record from the output table and then use the value for launching the tree.
Regards.