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: 

possibility of calling ALV report

Former Member
0 Kudos

hi experts,

i have a requirement that i have to design an entry screen whcih contain pushbuttons (SAVE, CLEAR ,DISPLAY).

whenever user pressed DISPLAY, he wants to call the selection screen of an alv report which is already exists.

is that possible to call an alv report selection screen and execute it.

any suggestions pls.

thanks&regards

maheshlap.

Edited by: Thomas Zloch on Dec 17, 2011 11:07 PM

7 REPLIES 7

Former Member
0 Kudos

Hi,

Try this,

If you have a tcode assigned to program (ALV report) use 'Call transaction' or use SUBMIT with its variations.

Regards,

Sharin.

Former Member
0 Kudos

Hi,

Follow this code,

*DISPLAY DYNAMIC PUSHBUTTON ON APP TOOLBAR ON USER CLICKS

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2,

FUNCTION KEY 3.

**EVENT ON SELECTION SCREEN FOR OUTPUT DISPLAY

AT SELECTION-SCREEN OUTPUT.

*CLICK OF FIRST RADIO BUTTON

IF pa = 'X'.

sscrfields-functxt_01 = 'Materials Management'.

WRITE icon_plant AS ICON TO text_001.

*CODE TO GET DYNAMICS BASED ON THE SELECTED RADIO

LOOP AT SCREEN.

IF screen-group1 = 'MOD'.

screen-intensified = '1'.

screen-active = 1.

screen-display_3d = '1'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'RAD'.

screen-intensified = '0'.

screen-active = 0.

screen-display_3d = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'CAD'.

screen-intensified = '0'.

screen-active = 0.

screen-display_3d = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

*CLICK OF SECOND RADIO

IF pb = 'X'.

sscrfields-functxt_02 = 'Sales And Distribution'.

WRITE icon_ws_ship AS ICON TO text_001.

LOOP AT SCREEN.

IF screen-group1 = 'RAD'.

screen-intensified = '1'.

screen-active = 1.

screen-display_3d = '1'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'MOD'.

screen-intensified = '0'.

screen-active = 0.

screen-display_3d = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'CAD'.

screen-intensified = '0'.

screen-active = 0.

screen-display_3d = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

*CLICK OF THIRD RADIO

IF pc = 'X'.

sscrfields-functxt_03 = 'Human Resources'.

WRITE icon_new_employee AS ICON TO text_001.

LOOP AT SCREEN.

IF screen-group1 = 'RAD'.

screen-intensified = '0'.

screen-active = 0.

screen-display_3d = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'MOD'.

screen-intensified = '0'.

screen-active = 0.

screen-display_3d = '0'.

MODIFY SCREEN.

ENDIF.

IF screen-group1 = 'CAD'.

screen-intensified = '1'.

screen-active = 1.

screen-display_3d = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

*CUSTOMISING THE TOOLBARS OF THE SELECTION SCREEN

*WITH F8 BUTTON DISABLED

APPEND : 'PRIN' TO it_ucomm,

'SPOS' TO it_ucomm,

'ONLI' TO it_ucomm.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = sy-pfkey

TABLES

p_exclude = it_ucomm.

Warm Regards,

PavanKumar.G

Former Member
0 Kudos

Hai,

We can call the selction screen .

if sy-ucomm = 'DISPLAY'. // fct code of display

Call selection-screen 200.

endif.

0 Kudos

hi ravi,

the screen no should be the no of selection screen of alv report rigt(i.e standard selection screen no).

0 Kudos

Hai,

Yes absolutely

0 Kudos

Hi ,

when SY-ucomm is DISPLAY.

SUBMIT <Report name > vai selection screen.

Try this.

Regards,

Ganesh.

Former Member
0 Kudos

hi

you can try below code

either you need to create transaction and call it on display button.

CASE sy-ucomm.

    WHEN 'Display'.

 CALL TRANSACTION 'XD03'.

or you can call screeen by

call screen 100.