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

alv

Former Member
0 Likes
455

what is the use of alv standard function cades which start with &

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
387

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.

2 REPLIES 2
Read only

Former Member
0 Likes
387

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.

Read only

Former Member
0 Likes
388

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.