on 03-04-2013 11:15 AM
Hi Experts,
Can anybody suggest me how printing is achieved in webdynpro abap?
I have Purchase order Header and item details in the internal table. I want to print all those details. Is there any BAPI / FM to print those values as in ME22n.
Please suggest it.
Thanks in advance
Saravanan R
Hi Saravanan,
I hope you got your answer provided by Yadav. This is the best approach.
Create a Link To Action or Button UI element and write the code to call an Adobe form from that ON_ACTION method. This will open the data in a pdf.
You can refer to the link below to get the code help for calling a Adobe form from a program.
And please close the question if you got your desired answer.
Thanks
Santanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saravanan,
To make the print function available for end users, proceed as follows:
SYNTAX
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( ).
SYNTAX
DATA: lo_api_controller TYPE REF TO if_wd_view_controller, lo_action TYPE REF TO if_wd_action. lo_api_controller = wd_this->wd_get_api( ). lo_action = lo_api_controller->get_action( name = 'ON_PRINT' ). IF lo_action IS BOUND. lo_action->set( keep_messages = abap_true ). ENDIF.
Note:
The name of the event handler in method lo_api_controller->get_action must have the same name that you assigned in your view for the Button event handler.
regards,
Amol.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use adobe form or smart form to display these detail.
if you have any button created in view on which you want to print detail without display you can onAction event of button
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes. I have used standard smartform and using the link I found the solution.
User | Count |
---|---|
91 | |
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.