10-14-2008 6:57 AM
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
10-14-2008 7:07 AM
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'
10-14-2008 7:25 AM
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