Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign output type and trigger printing in ABAP

Former Member
0 Kudos

hi all,

i have create invoice by using BAPI_BILLINGDOC_CREATEMULTIPLE and create header/item text with CREATE_TEXT.

please advise how to assign the output type and trigger immediate printing after this.

thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Reetha ,

This is a functional setting , and should be done by some functional guy. The setting can be done by NACE.

Just follow the path : NACE - > Select V3 for Billing - > Press Output type Button Just above - > Assign Output Type and

then Assign Output program and form in PROCESSING ROUTINE comes into left. Set this output type for immediate print.

Whenever You create a billing document by BAPI with this document type , the print out will be fired immediately.

Hope it will solve your problem.

Thanks.

3 REPLIES 3

Former Member
0 Kudos

Hi Reetha ,

This is a functional setting , and should be done by some functional guy. The setting can be done by NACE.

Just follow the path : NACE - > Select V3 for Billing - > Press Output type Button Just above - > Assign Output Type and

then Assign Output program and form in PROCESSING ROUTINE comes into left. Set this output type for immediate print.

Whenever You create a billing document by BAPI with this document type , the print out will be fired immediately.

Hope it will solve your problem.

Thanks.

0 Kudos

hi,

thanks for the feedback. i need to trigger the output type in program because user require to update header text and some item text after the invoice created.

i almost get the solution with following code now. just need to find out how to populate the correct data

for wa_nast-parnr = 'xxxx'."message partner

wa_nast-parvw = 'xx'."partner function

http://wiki.sdn.sap.com/wiki/display/ABAP/ProcessOutputtypesthroughprogram

0 Kudos

Hello, the document you've referred to [Output Type|http://wiki.sdn.sap.com/wiki/display/ABAP/ProcessOutputtypesthroughprogram] has been extremely helpful.

However I still need to figure out how to create a message (text + recipient) and link it to the output type (through customizing is okay but I need to do this programmatically because email address and text vary from order to order)...record creation in NAST is okay but the message creation (text + recipient) is still missing.

This sounds very much like the requirement you had. How did you manage to implement it?

Cheers