Application Development 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: 

HI URGENT

Former Member
0 Kudos

hi all,

what is meant REUSE_ALV_VARIANT_DEFAULT_GET?

what is used for it.??

what is meant REUSE_ALV_VARIANT_F4?

what is used for it??

what is meant REUSE_ALV_VARIANT_EXISTENCE?

what is used for it?

reply me soon...

give u reward point if useful..

thx,

s.suresh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

1. REUSE_ALV_VARIANT_DEFAULT_GET

Read default display variant (description only, w/o field catalog)

Provides the default variant for the list specified in the structure parameter CS_VARIANT of a program

2. REUSE_ALV_VARIANT_F4

Display variant selection dialog box

Possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.

3. REUSE_ALV_VARIANT_EXISTENCE

Checks whether a display variant exists

This function module checks the existence in the database of a display variant passed in the interface

4 REPLIES 4

Former Member
0 Kudos

Hi

1. REUSE_ALV_VARIANT_DEFAULT_GET

Read default display variant (description only, w/o field catalog)

Provides the default variant for the list specified in the structure parameter CS_VARIANT of a program

2. REUSE_ALV_VARIANT_F4

Display variant selection dialog box

Possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.

3. REUSE_ALV_VARIANT_EXISTENCE

Checks whether a display variant exists

This function module checks the existence in the database of a display variant passed in the interface

Former Member
0 Kudos

SELECTING THE VARIANTS FOR INITIAL LIST DISPLAY (DEFAULT VARIANT)

The variants in the list display can be both user-specific and general. The user can programmatically set the initial (default) variant for list display.

The default variant can be found using the function module 'REUSE_ALV_VARIANT_DEFAULT_GET'.

Sample code:

CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'

EXPORTING

i_save = variant save condition (A=all, U = user-specific)

CHANGING

cs_variant = internal table containing the program name (and the default variant---optional)

EXCEPTIONS

not_found = 2.

The user can also choose from the list of existing variants using the function module ‘REUSE_ALV_VARIANT_F4’.

award if helpful

keep rockin

vivek

Former Member
0 Kudos

Excellent subject.

Could you not of used

ALV Questions (That I couldn't be bothered using the search for).

Is it really that urgent.

Former Member
0 Kudos

hi s. suresh

These FM Are basically meant to deal with the Variants of ALV layout. and are used in runtime of ALV Grid and fieldcatalog.

we can save the layout of the alv grid/list and while running choose the speified variant and get the output.

1) Reuse_alv_variant_default_get:

Provides the default variant for the list specified in the structure parameter CS_VARIANT of a program.

2) Reuse_alv_variant_F4:

Display variant selection dialog box. Possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.

3) Reuse_alv_variant_existence:

This function module checks the existence in the database of a display variant passed in the interface.

rewards point if useful

Rohan Malik