‎2008 Jun 02 9:06 AM
what is the use of alv standard function cades which start with &
‎2008 Jun 02 10:00 AM
Hi,
F2code
Value range: SPACE, function code
Meaning when the ALV standard interface is used:
If you want to assign a standard ALV function code to a double-click (F2), you must assign this function code to this parameter.
Example: You want to assign the standard ALV function 'Detail'
('&ETA') to F2.
=> LAYOUT-F2CODE = '&ETA'
Meaning if a self-defined interface is used:
Case 1:
You leave the standard ALV function code for F2 '&IC1' in the copied interface of the application. However, you want to have a function executed with F2 that is not assigned to F2 in the interface
(standard ALV function or application function). You must communicate this function code to the ALV using parameter F2CODE.
Case 2:
You remove the standard ALV function code for F2 '&IC1' from the interface of the application and use another function code instead (standard ALV function or application function). You must
communicate this function code to the ALV using parameter F2CODE.
This is required if you want to allow columns to be selected.
Regards,
Jagadish.
‎2008 Jun 02 9:08 AM
Hi,
When u r debugging the ALV reports u can see these Standard ALV codes
like
CASE R_UCOMM.
WHEN '&IC1'.
<ur code>
ENDCASE.
This is like the double click.
See these links....
http://sapr3.tripod.com/sapalv.htm
http://www.antarcon.com/download.php?op ... with%20ALV
http://www.henrikfrank.dk/abapexamples/ ... ontrol.htm
http://www.geocities.com/victorav15/sap ... a_alv1.txt
Regards,
Jagadish.
‎2008 Jun 02 10:00 AM
Hi,
F2code
Value range: SPACE, function code
Meaning when the ALV standard interface is used:
If you want to assign a standard ALV function code to a double-click (F2), you must assign this function code to this parameter.
Example: You want to assign the standard ALV function 'Detail'
('&ETA') to F2.
=> LAYOUT-F2CODE = '&ETA'
Meaning if a self-defined interface is used:
Case 1:
You leave the standard ALV function code for F2 '&IC1' in the copied interface of the application. However, you want to have a function executed with F2 that is not assigned to F2 in the interface
(standard ALV function or application function). You must communicate this function code to the ALV using parameter F2CODE.
Case 2:
You remove the standard ALV function code for F2 '&IC1' from the interface of the application and use another function code instead (standard ALV function or application function). You must
communicate this function code to the ALV using parameter F2CODE.
This is required if you want to allow columns to be selected.
Regards,
Jagadish.