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

Reports Doubt

Former Member
0 Likes
488

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

4 REPLIES 4
Read only

Former Member
0 Likes
465

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.

Read only

Former Member
0 Likes
465

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

Read only

Former Member
0 Likes
465

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.

Read only

Former Member
0 Likes
465

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.