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 Program

Former Member
0 Likes
649

Hi friends,

I wanted to know why do we use TYPE-POOL: SLIS in Alv programming, and also what is PF-Status, & why do we use it?

Please help e to understand the basic concepts

Thanks in advance.

Thanks

Tina

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
625

Hi Tina,

Type-pool: slis.

This is used to use the structures in that in the FM to get ALV output.

PF-Status is used to define any user defined buttons on the menu bar,if you dont define, ALV takes the standard.

5 REPLIES 5
Read only

Former Member
0 Likes
626

Hi Tina,

Type-pool: slis.

This is used to use the structures in that in the FM to get ALV output.

PF-Status is used to define any user defined buttons on the menu bar,if you dont define, ALV takes the standard.

Read only

0 Likes
625

Check the documentations of function REUSE_ALV_LIST_DISPLAY - it gives clear idea about all parameters. I am attaching a piece of documentation here. If you are not clear, resposne back.

Set EXIT rountine to status

Description

Passing an EXIT routine tells the ALV that the caller wants to set his

or her own user status.

In this case, the default ALV status is not set.

The form routine interface must be defined as follows:

FORM set_pf_status USING rt_extab TYPE slis_t_extab

The table RT_EXTAB contains those function codes that are hidden on the

standard interface.

If the caller wants to use his or her own interface (to offer other

functions on the list or transfer existing functionality, for example),

it is recommended that he or she copy the standard status STANDARD from

function group SALV and make the appropriate changes. Standard ALV

function codes always begin with '&'.

Please consult the documentation on the I_CALLBACK_USER_COMMAND

parameter as well.

If, however, the user chooses to use his or her own interface that

contains the standard interface's function codes, the function codes

from the excluding table passed must also be taken into consideration.

This means that the user status should always be set as follows:

SET PF-STATUS usrstatus EXCLUDING rt_extab.

Excluding table rt_extab can be appended to include those application functions that are to be deactivated.

The system calls this routine whenever the standard interface is set

using SET PF-STATUS.

Default

If no exit routine is entered, then the ALV sets a status that

corresponds to the STANDARD status of function group SALV.

Read only

0 Likes
625

Take the following example....



REPORT ZRICH_0003 . 

* Tables. 
TABLES: MARA. 

* Global ALV Data Declarations 
<b>TYPE-POOLS: SLIS.</b> 

* Internal Tables 
DATA: BEGIN OF ITAB OCCURS 0, 
      MATNR TYPE MARA-MATNR, 
      MAKTX TYPE MAKT-MAKTX, 
      END OF ITAB. 

<b>DATA: FIELDCAT  TYPE SLIS_T_FIELDCAT_ALV.</b>

When we create the tables for the field catelog or the layout table, etc, we use the types like SLIS_T_FIELDCAT_ALV which are defined in the type group SLIS. So in order for the program to recoginized the type that we are using, you must include the type group in your program. We do this using the TYPE-POOLS statement.

PF-STATUS is used to trigger the current gui status. The gui-status is the deinition of the buttons/function codes that the user can use during that screen processing.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
625

Hi <b>Tina</b>:

The <b>TYPE-POOL: SLIS</b> contains all the logic information for the ALV (The ability to group fields, make sum and average calculations, give a zebra look, etc).

<b>PF-Status</b> sets a custom Status Bar...We need to use it either in we want extra functionality (other than the standard status bar provide)...

Greetings,

Blag.

Read only

Former Member
0 Likes
625

Hi Tina,

1.This statement allows you to use all the data types and constants defined in the type group after type-pools (here TYPE-POOLS : SLIS )in your program ..

this SLIS has all the predefined TYPES...

for eg like <b>slis_layout_alv</b>...

it has all the functionalities associated with LAYOUT of ALV like zebra , detail_popup , ..

lot similar functionalities are already defined..

2.SET PF-STATUS 'XYZ'.This statement defines the user interface for all subsequent screens of a screen sequence until

another is set using a new SET PF-STATUS statement..

The GUI status 'XYZ' must be a

component of the current ABAP program,...

unless you use the OF PROGRAM addition in the SET

PF-STATUS statement to set a GUI status of another program

regards

satesh