05-03-2021 2:48 PM
Hello All,
I am facing issue to print the Heading of the ALV splitter screen report using OOPS .
Please find attached screen - How to show custom heading of the report in the green area?
I have tried populating in Report Attributes, using SET TITLEBAR 'XXXX' , tried other options but no success.
In Split screen i am able to populate the Heading using CALL METHOD cl_dd_document->display_document ( which is highlited in Red colour)
05-03-2021 3:18 PM
The "green area" you show is the Title Bar and the Application Toolbar, they cannot be used to show data. But below, in the User Area, you may split it via a Splitter Control with two containers, you put whatever you want in the top container, and you put the ALV Grid in the bottom container.
┌---------------------------------------------------------------------------┐
| top container |
├---------------------------------------------------------------------------┤
| |
| |
| bottom container |
| |
| |
└---------------------------------------------------------------------------┘
05-04-2021 9:33 AM
Thanks @sandra.rossi for your reply.
But the empty space at the TOP of the output screen is looking some what odd for the users.
Is there any provision can we hide the application tool bar in output??
05-04-2021 9:40 AM
Please use the COMMENT button for comments, questions, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
05-04-2021 9:40 AM
If you don't want "empty space at the TOP", reduce the height of the top container.
05-04-2021 12:18 PM
Yes i have reduced the space - looks OK..but is there any provision to hide the application toolbar?
and is there any error in below code - because BACK button is not working as expected - it is not showing the selection-screen when pressed on BACK - but if i click 2 times back, then it is showing the selection- screen. Please correct me.
MODULE user_command_9010 INPUT.
CASE ok_code.
WHEN 'BACK' OR 'CANCEL'." OR 'EXIT'.
CALL METHOD ref_cust->free.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'EXIT'.
LEAVE PROGRAM."LIST-PROCESSING.
ENDCASE.
ENDMODULE.
05-04-2021 1:00 PM
There's an attribute at Dynpro level to remove the Application Toolbar.
05-05-2021 1:23 AM
Thanks @Sandra Rossi
Can you please share sample code for "Dynpro level to remove the Application Toolbar".
And is there any error in the code for BACK command - why it is not working properly?
05-05-2021 1:42 PM
Edit the dynpro > tab "Attributes" > Settings "Without Application Toolbar"