New output type to be triggered to send smartform through email
Hi,
Currently we are using Milwaukee printer (USJC-PM03) as default for out put type ZURD. When this output get created in the invoice with the printer as USJC-PM03, the iinvoices get printed on the Milwaukee printer.
When someone tries to print an invoice by copying the ZURD, then system should trigger the newly created output ZUPG with the printer setting as u2018LOCLu2019 and medium u2018External Sendu2019, Communication strategy = u2018CS01u2019,dispatch time = 1.
When again the user tries to print the same invoice by copying the ZUPG output type,the system should trigger the output type ZUPG with medium u2018Print outu2019, Logical Destination = u2018LOCLu2019 and Dispatch time = u20181u2019.
How the output type ZUPG be triggered even if the user select the output type ZURD.
If anyone has come across this type of requirement please let me know.
This can be done with the standard form itself.
first find out the output type u r using.
Then goto T-code NACE and then choose EF- purchase order and then select the output type u r using.
Then goto the 'processing Routines' at the lefe side of the screen.
There u can find out the output forms for this output typr u r using. Here add 'Simple mail-7' in the list and then give the program name and the smartform or the script u r using.
We can also give the mail texts for this output form.
After that goto ME22N and then choose the 'Messages' tab and then click the simple mail and in the 'communication method' kindly provide the mail id for which the PO mail has to be sent.
And then the mail can be viewed in the inbox of the recipient.
in this way we can sent the PO mail to the corresponding mail address,.
I guess this will solve ur issue.
Thanks and Regards
Siva
Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM
Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM
Similar Messages
-
Sending smartform through email as PDF attachment
Hi,
I want to send a smartform through email as pdf attachment.In the code I have hardcoded the receiver mail id.But I don't want this to be sent only to a particular receiver.I want this to be sent as many people as I can without hardcoding their mail id's in the program.How can I do that?
Regards,
Hema**Data Declarations
**Internal Table
DATA : BEGIN OF it_spfli OCCURS 0,
carrid LIKE spfli-carrid,
connid LIKE spfli-connid,
END OF it_spfli.
DATA: it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
storing receivers
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
**storing file attachment data
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE, gd_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
l_gntxt LIKE t357g_t-gntxt,
lv_message(100) TYPE c.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE. "storing mail body
DATA : psubject(30) TYPE c VALUE 'Sample Mail'. "subject of the mail
DATA : ld_format TYPE so_obj_tp , "file format
ld_attfilename TYPE so_obj_des, "file name
w_cnt TYPE i.
**Selecting the data
SELECT carrid connid INTO TABLE it_spfli FROM spfli WHERE carrid EQ 'AA'.
**Perform for populating mail body
PERFORM populate_message.
**Perform for populating file attachment
PERFORM populate_attachment.
**Perform for populating mail characteristic info
PERFORM populate_pack.
**Perform for populating receivers
PERFORM populate_receivers.
**Perform to send mail
PERFORM send_mail.
*& Form populate_message
text
--> p1 text
<-- p2 text
FORM populate_message .
**Populating the body
lv_message = 'Sample mail for testing purpose.'.
APPEND lv_message TO it_message.
ENDFORM. " populate_message
*& Form populate_attachment
text
--> p1 text
<-- p2 text
FORM populate_attachment .
**Populating the attachment file with the data from final intenal table
CONCATENATE 'CARRIER ID'
'CONNECTION ID'
INTO it_attachment SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
CONCATENATE cl_abap_char_utilities=>cr_lf it_attachment INTO
it_attachment.
APPEND it_attachment.
LOOP AT it_spfli.
CONCATENATE it_spfli-carrid it_spfli-connid INTO it_attachment SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
CONCATENATE cl_abap_char_utilities=>cr_lf it_attachment INTO
it_attachment.
APPEND it_attachment.
ENDLOOP.
ENDFORM. " populate_attachment
*& Form populate_receivers
text
--> p1 text
<-- p2 text
FORM populate_receivers .
**Populating Mail Recepients
**If there are more than one mail recepient then loop and append them to it_receivers
it_receivers-receiver = '[email protected]'.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
it_receivers-express = 'X'.
APPEND it_receivers.
ENDFORM. " populate_receivers
*& Form populate_pack
text
--> p1 text
<-- p2 text
FORM populate_pack .
**File Type
ld_format = 'XLS'.
**File Name
ld_attfilename = 'File1'.
Fill the document data.
gd_doc_data-doc_size = 1.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject .
gd_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR gd_doc_data.
Populate the subject/generic message attributes
gd_doc_data-obj_langu = sy-langu.
READ TABLE it_attachment INDEX w_cnt.
gd_doc_data-doc_size = ( w_cnt - 1 ) * 255 + STRLEN( it_attachment ).
gd_doc_data-obj_name = 'SAPRPT'.
gd_doc_data-obj_descr = psubject.
gd_doc_data-sensitivty = 'F'.
Describe the body of the message
CLEAR it_packing_list.
REFRESH it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
APPEND it_packing_list.
**Describe the attachment info
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
it_packing_list-doc_type = ld_format.
it_packing_list-obj_name = ld_attfilename.
it_packing_list-obj_descr = ld_attfilename.
it_packing_list-doc_size = it_packing_list-body_num * 255.
APPEND it_packing_list.
ENDFORM. " populate_pack
*& Form send_mail
text
--> p1 text
<-- p2 text
FORM send_mail .
**Function Module to send mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
ENDFORM. " send_mail -
Sending smartform through email or fax
Hi,
I have to send the smartform output through email if the email address is present else it has to be sent through fax.
When I tested the program it is giving information message as 'Output was successfully issued'.But I am not able to see any entry in SOST transaction.What would be the reason for this?In SAP Table USR21, put enter the username in field BNAME, from there you will get the ADDRNUMBER
-
PO - New Output Type to send an email to only One email Address
Hello Gurus
We have new requirement to configure Output Type to send PO's to only one mail address.
We want to send all Purchase Orders of particular Doc Type - 0001 and for one POrg - ABCD to dedicated mail id ( lets say ( xyz @ gmail com ) ).
So that we can keep all these PO copies in PDF format at this mail id only (Note: id is not vendor mail id).
So I would request you all to kindly guide me the steps to proceed for this - How I can configure this new Output type so that every time when we create PO for this criteria it will not get printed to printer but it will sent in PDF format to only one mail id.
Subject of these mail sent to ( xyz @ gmail com ) should always contain " PO - Number of PO - Vendor Number/name ".
Thanks
Animesh AgrawalThis can be done with the standard form itself.
first find out the output type u r using.
Then goto T-code NACE and then choose EF- purchase order and then select the output type u r using.
Then goto the 'processing Routines' at the lefe side of the screen.
There u can find out the output forms for this output typr u r using. Here add 'Simple mail-7' in the list and then give the program name and the smartform or the script u r using.
We can also give the mail texts for this output form.
After that goto ME22N and then choose the 'Messages' tab and then click the simple mail and in the 'communication method' kindly provide the mail id for which the PO mail has to be sent.
And then the mail can be viewed in the inbox of the recipient.
in this way we can sent the PO mail to the corresponding mail address,.
I guess this will solve ur issue.
Thanks and Regards
Siva
Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM
Edited by: Sivaprakash R on Apr 20, 2009 1:00 PM -
Hi All,
I have to define new output type for PO Print-out E-mail.
Please povide me details,what are the required setting need to be done for triggering the mail (Functional side).
Regards
PavanHi,
You needn't to create one new output type, you can use the same one as output type's medium "Print out", just maintain the medium 5-"External send", that will be okay!
Good luck
Tao -
New output type for billing documents
Hello All,
We have created a new output type (ZD05) for a billing document to send an automatic mail to "send to Party" along with the existing print output (ZD02).
ZD02 is triggered automatically on saving the billing document where as ZD05 has to be added manually to the output of the billing document.
Every time we add ZD05 manually, system automatically adds/trigger ZD02 automatically along with ZD05. We dont want this additional ZD05 output to be triggered on adding ZD02.
It will be of great help if anyone can let me klnow the configuration setting which we can do to stop this.
Points assured.
Warm Regards,
Jatinder BansalHi there,
Check what do you have in default settings. You should have "send immediately while saving the application" to trigger the O/p immediately. Transmission medium should be external send to trigger it as a mail O/p.
Also maintain the condition records. Only then O/p will trigger automatically.
Try checking the requirement that is assigned to the O/p in the determination procedure. See if there is any condition to triggger ZD05 & ZD02 together.
Regards,
Sivanand -
How to send invoice through email with output type RD00?
What are the configuration settings to send invoices through email with output type RD00?
Hi,
Please go through the following links:
[E-mail|Email Configuration Settings]
[e-mail|Re: EMAIL BILLING DOCUMENT TO CUSTOMER THROUGH SEND MAIL OPTION IN VF02]
After triggering the output,goto T.Code SOST and process it.
So that e-mail will be triggered immediately.
You can use External send/EDI/simple mail for this.
Regards,
Krishna. -
Hi Gurus,
We have Created new message type Zneu1 which has to send PO number to the user by email .
But when i try to create the purchase order with that document type it is not showing the new message type in message function.
so could you please explain what setting has do to and how the message function will work in sap?
when will be message function will be executed during creating or changing the PO?
thanks,
prasad.
Edited by: Csaba Szommer on Dec 22, 2011 7:06 AMHi,
I believe you created new message type but just cross check & double cross check is it Zneu1
OK.
Make default new message type in PO by just fine tune the output (message) type in following path:
SPRO-->MM>Purchasing->Message->Output control>Message types--> Define message type for Purchase Order--->Fine-Tuned Control: Purchase Order
Now here select the check box corresponding to new output (message) type to have default automatically displayed & save.
Monition condition record with new message type with PO document type in MN04 t.code and save. Also check u201CAccess conditionsu201D check box selected in PO out put type(message type) for application EF in NACE t.code and FORM or PDF/SmartForm Form linked to PO new out put type(new message type).
Regards,
Biju K -
New Output Type for E-MAIL - What Programs to use
Hi ,
I am Configuring a new Output Type for E-mail Invoices. Based on the Billing Indicator on the Customer Master the New output type for E-mail should be determined and send an e-mail. To test this i have setup a new output type and used the below parameters:
Program : RSNASTSO
Form Routine: SAPOFFICE_AUFRUF
PDF/SmartForm Form: SAPOFFICE_AUFRUF_VX
Form Type: PDF
I have the e-mail address in the general data of both Bill to and Sold TO. The partner Function for this output type is BP.
When i created an Invoice i got the below error, I have highlighted the line with astericks which are showing up as error.
Processing log for program RSNASTSO routine SAPOFFICE_AUFRUF
Function module SO_NAME_CONVERT with return code
Text 220V30900018667 ZRD3E0500000425 ID STAM language E not found
**No address exists - Error**
**Error while copying recipient object - Error**
**Specify at least one recipient - Error**
Message object FOL29000000000004SCR33000000000044 created or sent
At this point i just want to be able to send an invoice via e-mail using standard program. I am looking to confirm if i am using the correct parameters. Any help will be greatly appreciated.
Thanks,
Irfan.Hi ,
You can ty using the function module SO_NEW_DOCUMENT_ATT_SEND_API1
here you will to also pass the logic that the PDF should be sent to a email recipient as per mentione din the bill to party function module
Thanks
Prashant -
Creation of new output type and its access sequence
Hello Experts,
Issue:-How to create a new o/p type and assigning it to access sequence.I also want to know if this is purely functional requirement or does it needs ABAP involvement aswell.This will take how much time will it be more then 1 man day.
Regards,
DharmeshHi friend,
You can create a new output type using the path
IMG->SALES AND DISTRIBTION->BASIC FUNCTIONS->OUTPUT CONTROL->OUTPUT DETERMINATION->OUTPUT DETERMINATION USING CONDITION TECHNIQUE->MAINTAIN OUTPUT FOR SALES DOCUMENTS--->
There you can define the condition types and the access sequence
Or else directly goto the transaction code NACE where you can define all at once , even the condition records.
please refer this link for further clarificaion
http://www.cogentibs.com/pdf/cogsap08/OCSD.pdf
regards,
santosh -
New Output type for purchase return excise invoice..?
Hi all
For purchase return process with exisable material.
Here I m using the transaction
1.J1IS to create purchase return excise invoice and
2.J1IV for posting to accounts & print purchase return excise invoice
.In standard SAP the output for purchase return excise invoice is JEXC.
here my query is started,
ABAPer created the new program for purchase return output with all new layouts,
And from functional side i have defined new output type for the same as YEXC copying from JEXC.
While doing the transaction J1IV, i getting the output type YEXC, i m not able to print preview.
To proceed further i need some body guidence. Like where to assign the output type.
some body can give some inputs .
Thanks
sap-mmHi AP thanks for ur immediate response.
But i have done all the configuratuion in NACE only.
There in nace i m not able find out the mistake or missing configuration.
Can u expalin me step by step process end to end .
Thanks
sap-mm -
IMG settings after creating new output type for a purchase order smartform
Hi all,
Do I need to make changes in IMG after creating a new output type in NACE for a purchase order smartform?
I have customized a purchase order smartform according to the requirements and copied an existing output type and assigned the custom form name.
When I am trying to create a purchase order to test it, I am going to the message tab for assigning the output type and if I press F4 on the output type field or if I give the copied output type there, it says output type is not defined.
Do I need to make any changes in SPRO?
Regards,
AnikYes. You have to add the new output type to the proper message determination schema.
Go to the IMG and select Materials Management -> Purchasing -> Messages -> Output control -> Message determination schemas -> Define message schema for purchase order -> Maintain Message Determination Schema: Purchase Order.
Select the proper schema, then Control Data and insert your new output type into the schema (eventually with any requirement that may be necessary... you probably want to use 101 like in case of the regular NEU message).
This should do it. -
How to add a new output type in sales order header via ABAP program
Hi All,
I have to add new output type (ex Z001) in sales order header via an ABAP program. please let me know how to do this.
Thank you all in advance.Hi,
You can use the FM ..RV_MESSAGE_UPDATE..
Thanks
Naren -
Problem in creating New output types - Urgent
hi all,
Issue is that we had created a new plant(NSC) and for that plant, we had created new scripts for Indent and Sales Order. Means I have to create new output types for NSC Orders and Indents.
What i did that I went to SPRO- IMG- Basic Functions- Output Control- Output Determination- Output Det using Cond Tech- Output Det for Sales Documents , created new output types ANSC and BNSC for AN00 and BA00 respectively.
Then Output Types assigned to Partner Functions. Then I went to 'Maintain output determination procedure' and copied V06000 (Quotation Output) and V10000 (Order Output) to ZV0000(NSC Quotation Output) and ZV0001(NSC Order Output) respectively.
Then I went to ZV0000(NSC Quotation Output) and ZV0001(NSC Order Output) determination procedures and changed outputtypes to ANSC and BNSC instead of AN00 and BN00.
Now what should i do next?? I went to 'Assign Output determination procedures' but here no new entries can be added and I cant find procedures which I created.
Any ideas please??
Regards,
Aisha Ishrat
ICI Pakistan Ltd.HI,
follow this steps:
1. In assignment u have to assign ur new output to respective documents
eg: Assign ZV0000(NSC Quotation Output) to QT sale doc type
2. After doing this u have to maintain condition record
goto tcode: VV11-> here enter ur condition type which u have defined-> inside fill in the details--> now click the <b>communication</b> ikon in top--> fill in the details
this is solve ur purpose
regards,
Arun prasad -
How to create a new output type in inventory management
dear consultants .
how to create a new output type in inventory management...........?
please give me a solution
regards
ratanRefer:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/attaching-smartform-to-the-standard-transaction-2316027
Maybe you are looking for
-
How to create more than one SID in .bash_profile
I Want to create more than one SID in bash_profile without disturbing oracle's default SID i.e orcl and create database with new SID?
-
O/R mapping and datastore identity
Hi all, we are currently trying to map an existing database schema to JDO. We have not been able to map "correctly" to the existing schema in two different cases. Any input that you may have to us on this is highly appreciated. Inheritance with indic
-
Anyway to open .jpg attachments in the mail?
Anyway to open .jpg attachments in the Gmail on IPad 3?
-
How to uninstall "Command Line Tools" in Xcode 4.3?
Just installed Command Line Tools using the perference in Xcode 4.3. After removing Xcode 4.3, I found the Command Line Tools are not removed. Is there any way to uninstall? Thanks!
-
IWeb consistantly crashes?
I'm not sure what it is as of late but I can't even seem to work in iWeb anymore because of errors that force a crash before I can even start working. I'm using the latest version 3.0.4 or something like that and even tried to patch it as a fix but n