F4 help on ALV report

Question: Hi,

There is a requirement when using ALV. I use function module 'REUSE_ALV_GRID_DISPLAY' to display report result. There is a F4 serach help in a field e.g. A. After pressing F4 in field A, we choose a row of information. Can you get this row of information? Which event will be triggered in this ALV?

Thanks.

Answer:
If you define a data field using some domain and then in the ALV field catalog you set f4availabl = 'X', then by F4 you will be presented with the list of values available for this domain. All is automatic.
_________________
ilya

More input data: http://abaplog.wordpress.com
Sapfans ABAP FAQ: /forums/viewtopic.php?t=94198
R's ABAP Knowledge Corner: http://www.Rard-harper.net/kb/kb.html
Function modules documentation: http://www.se37.com

Answer:
This has been done and it works. But in the F4 result list, there are many fields, e.g. A, B, C.....
e.g. Field A value could be automatically filled up
I would like to know whether I can get value B and C, meanwhile field A is filled up....

Thanks in advance.

Answer:
I thinks it better to use ALV class, you can review list of methods into
se24 (only for 4.6 version and more)and find a one which you need . You just need to overload standard event (probably method_for_F4 or F4_method or someone with similar name),see samples in package BC412 or dev class if you in 4.6.
In your case you should look for one of Call back FM and implement
current call back form. Due the reason I have't use ALV FM for a time .
However if you read documentation carefully it'll award .
It is a "hassle" job vs OO ALV containing much better documentation.
IMHO.

good luck

This has been done and it works. But in the F4 result list, there are many fields, e.g. A, B, C.....
e.g. Field A value could be automatically filled up
I would like to know whether I can get value B and C, meanwhile field A is filled up....

Thanks in advance.
_________________
programming is not only coding
Copyright ?2007 - 2008 www.jt77.com