‎2007 Jun 13 11:32 AM
Hi Gurus,
How to give button on output list.
For Example After displaying the output If i select one or two records
then if press delete button then those two records should be deleted.
How can i achieve this.
The detail answer will be appreciated.
Thanks in advace
suri
‎2007 Jun 13 11:35 AM
Hi
Using set pf-status. In the report u write code like this.
At pf-status 'ZENU'.
Then double click on ZMENU then in the application tool bar or menu bar give some fct code as DELE. Then activate it and come back.
Then in the report write like this.
at user-command.
case sy-ucomm.
when 'DELE'.
--- Write ur code over here. ---
endcase.
Regards
Haritha.
‎2007 Jun 13 12:04 PM
Hi Surender,
You can go by what Haritha said. As for the logic in selecting the line items in the output list, you can use <b>GET CURSOR</b>. You can find the line number by reading the internal table with the key or delete the record, and re-display the output list.
Regards
Anil Madhavan
‎2007 Jun 13 12:08 PM
see the simple program :
start-of-selection.
select * from table into table i_table
where condition.
loop at i_table.
hide i_table-field1.
write:/ .
endloop.
end-of-selection.
<b>set pf-status '100'.</b> double click on 100 and create pf-status and keep what ever button you need.
at user-command.
here you need to write the code.
‎2007 Jun 13 12:17 PM
Hi,
If it is ALV output......Just u call SET PF STSTUS 'ZSTANDARD'.
Zstandard pf stsus u have to create manually through the following steps.
SE80->select standard function group->SALV->right click on that->u will get craet copy option-> then u can copy all the tools in application bar in ALV out put display.
If it use full answer reward me a points.