‎2013 Nov 11 5:44 AM
Hi Experts,
I need to have a custom button on the application toolbar of the copied standard program. (ZRM07MLBD) I have tried adding the button on the 'STANDARD' status of the program ZRM07MLBD. But it is not showing on the list output. Am I missing anything? Moreover in the program (ZRM07MLBD) where should i write the coding to enable the function of the button.
BR.
‎2013 Nov 11 5:47 AM
goto se41 and then copy the standard status into ur program and do the necessary changes as per rqrmnt...
‎2013 Nov 11 5:58 AM
Since it is a copy of the standard program the PF-STATUS naming will be as that of the standard in the copied program.
‎2013 Nov 11 6:08 AM
‎2013 Nov 11 6:37 AM
Hi Anurag,
I added the button to the STANDARD' status itself. But I feel something more has to be done on the program side. But I am not getting what to do on the Zprogram to make it appear and to add function code to it.
BR.
‎2013 Nov 11 6:39 AM
Hi,
Copy the standard in se41 and can make changes in that in the way you need.
Did you pass this PF-STATUS in your report in Reuse FM Dispaly.. Please check it.
‎2013 Nov 11 6:41 AM
Please copy the PF status using SE41 from the standard program to Z progrm and pass it your fM
‎2013 Nov 11 7:01 AM
Hi Nabheet,
Thanks for your answer. But I feel what I am missing is the changes to be done to the ZRM07MLBD. Why I have to pass it in my FM since it will be already passed as it is the copy of the standard program.
‎2013 Nov 11 7:08 AM
SAP standard program is using status STATUS creted in standard program RM07MLBD. You goto sE41 give stadnrd program name and PF status. Then make a copy to your Z program. You will see ZSTATUS in your custom program in left hand side. Then you can create your own button
‎2013 Nov 11 7:40 AM
In SE41, it says,
But STANDARD is available. I am successfully adding the Custom button now. (With the help of Standard). But while coding which PF Status I have to make use of STANDARD or STATUS. In RM07MLBD you could see two list function modules. In one it is passing the status and in another it is not. I have to make use of the function module which is getting the G_T_TOTALS_FLAT.
BR.
‎2013 Nov 11 7:47 AM
Basically for your case status is getting set in sub routine PF_STATUS_SET_TOTALS via EVENT. SO in this sub routine put your new status name..
‎2013 Nov 11 8:08 AM
Thanks Nabheet. But where to add the user command ? The one user command available is 'USER_COMMAND'. But it is attached with ''STATUS'' PF.
‎2013 Nov 11 8:12 AM
‎2013 Nov 11 10:28 AM
Hi Nabheet Madan,
I have put my perform statements inside the FM USER_COMMAND_TOTALS. When I put break point it is not triggering the button function. Instead its showing a status message 'Place the cursor on a table line'.
NB: I need the mail to get generated with excel attachment while clicking on the button.
‎2013 Nov 11 10:34 AM
This is not the FM this is the sub routine name
USER_COMMAND_TOTALS to be passed to ALV grid.
‎2013 Nov 11 10:36 AM
Please note that what ever user command name you will pass to the FM or via event will be used. I will suggest yoou to put a break point in all user command speacially the one you have passed to FM to see what is the issue. I guess you are mixing two things
‎2013 Nov 11 6:41 AM
Dear Abap,
I have added the button on its button it is working appearing on the application toolbar during the result.
Regards,
‎2013 Nov 11 6:57 AM
Hi Hameed,
Till the navigation you have mentioned ie to the program SAPLKKBL I have done. But I do not understand why we have to go to the program SAPLKKBL and do the enhancement. Are there any better ways of achieving the same?
Thanks.
‎2013 Nov 11 7:20 AM
Dear,
I dont think so but you can naviagate and look at the program how they program with in the include. then you can use the same code to add your functionality.
regards,