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: 

Requirement in ALV

Former Member
0 Kudos

Hi All,

I have one requirement, In the ALV report output if user selects one record and press one push button, a pop up should come

Ex: If user selects SO and press DELETE button, then a pop up screen should come with all the serial nubers related to the SO numbers(Depending on SO Qty it will be one or more than one)

In the POP up screen format will be

Check Box1 Serial Number1

Check Box2 Serial Number2

Like this it has to come..

If the user selects the check box, depending on the check box it has to delete the records from SAP..

How to achieve this one.. Any Standard FM is avaiable for this one..

Please suggest..

Thanks & Regards,

Sreelipi

2 REPLIES 2

Former Member
0 Kudos

Hi you create two routine as below.

here t_mseg is a internal table which has output data nad a box field..

form PF_STATUS using rt_ext type slis_t_extab.

set pf-status 'ZSTATUS'.

endform.

form usrcmd using p_ucomm type sy-ucomm

ps_selfield type slis_selfield.

ps_selfield-fieldname = t_mseg-box .

data:lt_matnr type MSEG-matnr.

case p_ucomm.

when 'EXECUTE'.

loop at T_mseg where box = 'X'.

if sy-subrc EQ 0.

exit.

endloop .

call POPUP_TO_CONFIRM.

you must pass all routines in FM.

you also create a layout and pass in FM.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

0 Kudos

Hi,

What ever the logic u told is holds good for basic thing..but it will not give the pop up with the check box and serial number..

The logic u have given will holds good for displaying the SO number and Press DELETE button only..

When user select SO number and press Delete the POP UP should come with check box and serial number

Regards,

Sreelipi