I want to create a new pushbutton that invokes a function that is hidden in the menu. How can I find the internal function code that I have to specify in the Pushbutton command?

Put the mouse cursor on the function in the menu and then, while keeping the left mouse button pressed, press F1. Now R/3 displays the technical function code that you need.