on 03-13-2014 1:26 PM
Hi Guru's,
'
1.I created one webdnpro application for reimbursement form .Now the user want run the application in SAP tcode , for that i created one tcode in SE93. Thats fine . When i run the application through the T CODE some standard toolbar buttons(BACK,EXIT AND CANCEL ) are came .
My requirement is i have to deactivate the buttons or else i have to write my own logic inside those buttons. I found the screen no by Menu bar ----->system---------->status .But its asking access key for edit the screen .
How i can deactivate the buttons are or else i have to write my own logic for those buttons.Give me yours valuable suggestion .
2. How i can print the entire my application in that TCODE. I created one button called PRINT.but it is not working .anyone have code for. print the application when i click PRINT button .
Thanks,
Pasumpon Karuppaiah
Hi,
It is the standard transaction WDYID, when you try to change, you will be prompted for access key as it is a modification. the GUI status is set using PF-STATUS 'HTMLVIEW' . In PBO, you can comment the PF status using modification or in PAI, you can write the handling for back button using OK Code.
And, to print WDA application, use the following code in on action Print button:
data: l_api_componentcontroller type ref to if_wd_component,
l_appl type ref to if_wd_application. l_api_componentcontroller = wd_comp_controller->wd_get_api( ). l_appl = l_api_componentcontroller->get_application( ).
l_appl->print_page( ).
Check this help for more details: Printing Web Dynpro ABAP Applications - Web Dynpro for ABAP - SAP Library
Hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As suggested by Mr. Kiran, we can disable the buttons by commenting the line SET PF-STATUS 'HTMLVIEW'. and off course the access key is required.
But, print application will work in GUI as well.
Write the below code on event handler of PRINT button.
cl_wdr_task=>application->get_api( )->print_page( ).
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.