Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Interactive ALV

Former Member
0 Likes
870

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

6 REPLIES 6
Read only

Former Member
0 Likes
806

Check what is the value of sy-ucomm at this point .

and write you code under that.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
806

Remove the & sign

Read only

Former Member
0 Likes
806

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

Read only

0 Likes
806

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

Read only

Clemenss
Active Contributor
0 Likes
806

Please search and check available sample code in your system. Reports BCALV

Regards,

Clemens

Read only

SantiMoreno
Participant
0 Likes
806

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.