cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Web Dynpro ABAP Applications l_appl->print_page( )

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello Ramakrishnappa

Unfortunately that is not the case. I have change and rewritten, corrected, changed and again....

..but it hs to do something, that the method is not found. But I don't know where to look ..

Best regards

Christian

ramakrishnappa
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello Rama

I will test your suggestion and come back on my discussion here.

Thanks a lot for your support and idea

Christian

Former Member
0 Kudos

Please check version of SAP_BASIS component. This functionality is available from SAP NetWeaver 7.02.

Answers (1)

Answers (1)

Former Member
0 Kudos

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