11-17-2009 8:34 AM
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.
11-17-2009 9:21 AM
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.
11-17-2009 9:21 AM
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.
11-17-2009 9:36 AM
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
12-13-2010 10:08 AM
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