on 12-13-2013 9:53 AM
Hello
I have followed the implementation guide in SAP Help ( link below) and checked my implementation multiple times.
Link: http://help.sap.com/saphelp_nw70ehp2/helpdata/de/f8/872806981d4411b5ce51a00207ed31/content.htm
So I have also checked, that the name of the event handler in method lo_api_controller->get_action has the same name as the Button event handler in the view.
I have registeed the event in the method WDDOINIT of the view.
However I get an error as displayed bellow.
Please can anyone help me to find out how to bring it to work correctly.
Many thanks
Christian
Hi,
Everything looks fine except the statement l_appl->print_page ( ). I think spaces in between method call.
Please delete whole statement and rewrite it.
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.
Hi Christian,
I have just tried the below code in my test application
method ONACTIONPRINT .
data lo_comp type REF TO if_wd_component.
data lo_appl TYPE REF TO if_wd_application.
lo_comp = wd_comp_controller->wd_get_api( ).
lo_appl = lo_comp->get_application( ).
lo_appl->print_page( ).
endmethod.
Its working fine for me.
I suggest you to please copy and paste and test again.
Please look into the interface IF_WD_APPLICATION, print_page method should exist.
Also...
Please check the standard component : WDR_TEST_EVENTS
Go to MAIN view and find the code in event handler of ON_PRINT action.
Check if print preview of standard application is working fine in your system.
Hope this helps you.
Regards,
Rama
Hello Roman, Hello Rama
You are totally right.
We are on SAP NetWeaver 7.01 and the method is therefore missing in interface IF_WD_APPLICATION as RAMA suggested to look at it.
Is there any work around?
Anyway thanks a lot for your good input
Have a nice year end and happy christmas
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.