EMAIL Invoice to customer
Need some help on Email invoicing.
I have a requirement to send the invoices via email in PDF format. I configured an Output type with the medium u20185u2019, it works fine. However there is another requirement to add some specific text as the content in the email (depending up on country and language). I understand that this text can be maintained in SO10, but no idea how to get that in the email.
Could you through some light on this.
regards,
santosh
Hi,
Check with your ABAPer if you can use the text from SO10 with INCLUDE statement or functional module READ_TEXT.
Regards,
Abhee
Similar Messages
-
Email Invoices to customer as a PDF attachment
Hi,
I have a requirement as follows:-
SAP will get multiple invoice numbers from an external system. I need to send all the invoices(for a given customer) in one pdf and email it to the customer as an attachment.
Please provide your expert and detailed advice.
Thanks,
AniHi Ani,
Go through this u definetly got ur solution.
Here is the code to send the Smartform to mail as PDF attachment.
*& Report ZTEST_NREDDY_PDF_MAIL
REPORT ZTEST_NREDDY_PDF_MAIL.
Internal Table declarations
DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
WA_OBJHEAD TYPE SOLI_TAB,
W_CTRLOP TYPE SSFCTRLOP,
W_COMPOP TYPE SSFCOMPOP,
W_RETURN TYPE SSFCRESCL,
WA_DOC_CHNG TYPE SODOCCHGI1,
W_DATA TYPE SODOCCHGI1,
WA_BUFFER TYPE STRING, "To convert from 132 to 255
Variables declarations
V_FORM_NAME TYPE RS38L_FNAM,
V_LEN_IN LIKE SOOD-OBJLEN,
V_LEN_OUT LIKE SOOD-OBJLEN,
V_LEN_OUTN TYPE I,
V_LINES_TXT TYPE I,
V_LINES_BIN TYPE I.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZTEST'
IMPORTING
FM_NAME = V_FORM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
W_CTRLOP-GETOTF = 'X'.
W_CTRLOP-NO_DIALOG = 'X'.
W_COMPOP-TDNOPREV = 'X'.
CALL FUNCTION V_FORM_NAME
EXPORTING
CONTROL_PARAMETERS = W_CTRLOP
OUTPUT_OPTIONS = W_COMPOP
USER_SETTINGS = 'X'
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I_OTF[] = W_RETURN-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = V_LEN_IN
TABLES
OTF = I_OTF
LINES = I_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
ENDIF.
LOOP AT I_TLINE.
TRANSLATE I_TLINE USING '~'.
CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
I_RECORD = WA_BUFFER.
APPEND I_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH: I_RECLIST,
I_OBJTXT,
I_OBJBIN,
I_OBJPACK.
CLEAR WA_OBJHEAD.
I_OBJBIN[] = I_RECORD[].
Create Message Body Title and Description
I_OBJTXT = 'test with pdf-Attachment!'.
APPEND I_OBJTXT.
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'smartform'.
WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
Main Text
CLEAR I_OBJPACK-TRANSF_BIN.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
I_OBJPACK-BODY_NUM = V_LINES_TXT.
I_OBJPACK-DOC_TYPE = 'RAW'.
APPEND I_OBJPACK.
Attachment (pdf-Attachment)
I_OBJPACK-TRANSF_BIN = 'X'.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
READ TABLE I_OBJBIN INDEX V_LINES_BIN.
I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
I_OBJPACK-BODY_NUM = V_LINES_BIN.
I_OBJPACK-DOC_TYPE = 'PDF'.
I_OBJPACK-OBJ_NAME = 'smart'.
I_OBJPACK-OBJ_DESCR = 'test'.
APPEND I_OBJPACK.
CLEAR I_RECLIST.
I_RECLIST-RECEIVER = '[email protected]'.
I_RECLIST-REC_TYPE = 'U'.
APPEND I_RECLIST.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN
CONTENTS_TXT = I_OBJTXT
RECEIVERS = I_RECLIST
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.
IF SY-SUBRC <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
If you want to send some text as Body of the Mail then follow this once
when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
I_OBJPACK-TRANSF_BIN = ' '.
I_OBJPACK-HEAD_START = 000000000000001.
I_OBJPACK-HEAD_NUM = 000000000000001.
I_OBJPACK-BODY_START = 000000000000002
I_OBJPACK-BODY_NUM = 000000000000010.
I_OBJPACK-DOC_TYPE = 'RAW'.
append I_OBJPACK-.
by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN
CONTENTS_TXT = I_OBJTXT
RECEIVERS = I_RECLIST
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.
Reward points if helpful.
Thanks
Naveen khan -
Send invoice to customer + cc company on 2nd email
hello Guys,
we need to send our invoice for purchases to the customer purchasing (we are doing this with a workflow) and also the head office company. the company is listed in the relationships of the customer.
so for example:
customer A - purchases from our website.
we need to send an invoice to customer A and also the Company A.
is there any way to do this.
i cant find a thread on this topic.
thanks in advance for the help.
KentThanks for the help with this.
It is a different company each time.
For examples store A and Store B belong to the same owner. We need to send a cc of the invoices for both stores to the 1 email address (head office) for accounts payment.
Currently I am doing this with email aliases and an email forwarding account but it would be great if there was a way to do this in BC.
Any ideas? -
Systems Emails - Invoice tags Shipping vs Billing
Hello all,
This may seem like a silly question, but I'm a bit confused on the tags for the Systems Emails - Invoice.html.
I want to have two columns render for the invoice:
Column#1:
Bill To:
{tag_ordername}
{tag_addressbilling}
{tag_phonecell}
{tag_recipientaddress}
Bill To: (here's the info I want to show)
Billing Party's First, Last Name
Billing Party's Address
Billing Party's City, State, Zip
Billing Party's Phone
Billing Party's Email Address
Column#2:
Ship To:
{tag_shippingattention}
{tag_addressshipping}
{tag_shippinginstructions}
Ship To: (here's the info I want to show)
Ship To Party's First, Last Name
Ship To Party's Address
Ship To Party's City, State, Zip
Ship To Instructions
It's confusing bc the recipient to me would be the person being shipped to not the person making the order. Can anyone clear this up for me please?
Also, on this particular system email, the {tag_orderid} states that it's for quotes only. What would the tag be for a customer ID# or is there one? I need to show the Order# and Customer ID#. I know there are customer case numbers, but why isn't this a tag choice for this system email or am i missing it.I know that more times than not it will be the biller as the shipper but our items are marketed as gifts so i really need an invoice that clearly states a difference between biller and shipper ... just in case there is a difference.
I think where I'm getting confused is starting with
{tag_company}
Renders the company name
which is my client's company, right? Then you have
{tag_addressdefault}
Default address for contact/company
{tag_phonecell}
Mobile phone number for contact/company
{tag_phonehome}
Home phone number for contact/company
{tag_phonework}
Work phone number for contact/company
Is "contact/company" the customer?
I really haven't worked with this aspect enough to know the difference.
I just need to know if my tags are correct if I want one column for Bill To and one column Ship To?
Bill To:
{tag_ordername}
{tag_addressbilling}
{tag_phonecell}
{tag_recipientaddress}
Ship To:
{tag_shippingattention}
{tag_addressshipping}
{tag_shippinginstructions} -
Email invoice to different addresses based on company code
Running 4.7 and want to send invoice via email to different customer email addresses depending on the company code of the billing document. Currently, configured to send invoice to bill-to party in header of billing doc. Still using modified version of RVADIN01 & Sapscript.
Has anyone done this? Can I overide the email address in the abap and if so, how?Hi,
you have to have call of FM OPEN_FORM in your modified version of RVADIN01. This FM has input parameter MAIL_RECIPIENT. So you just need to find correct spot where you can change value of this field to correct email address.
Cheers -
Hii All
There is a requirment from our client wherein we need to send around 500 - 700 invoices to the customer on monthly basis.
Can anyone let me know what can be the possible solution for this, the option we have to work around are:-
1. Either send these 500 odd invoices to cusomer thorough email (how can we configure this)
2. Run a job on monthly basis which automatically faxes or emails the customers these invoices (how to configure this)
Regards,
GauravHi Gavrau.,
Creation of 500 to 600 invoices is possible......just try out in Tcode VF06, and fill in the required entries.
Regarding sending the same through email to your customer., there is a bit of work from BASIS consultant. Discuss your requirement with the BASIS team, they should provide you the solution to this.
Regards,
Kiran.S. -
We are now setting up a requirement from the business to email invoices to our customers.
I am wondering if there is a way to configure to email the invoice but not print the invoice without having to maintain Output condition records for each customer, which could be alot of maintenance.
Is there a new key combo we can set up to identify that either the invoice is emailed or printed, not both.
Any info you can provide would be helpful.
RegardsYou can ask your abaper to write a programme for converting the invoices to pdf format(there are many programmes available for converting text to Pdf) .After that you can map the programme to customer master email id field. Then you can schedule the programme every day ,it will check the invoices happened on same day and also check the customer then mail will triggered to the customer automatically. Please ignore if this is not your requirement
Regards
Raneesh C N -
Help me in 'AR Details ' report shows total open invoices by customer
hi friends,
please help me in 'AR Details ' report shows total open invoices by customer and PO number over selected time range.
any thing related to open invoices please send me as early as possible.
Thanks,
Regards,
YogeshHi,
Find the T.code VF05. You will get the list of open billing docs. Its SIS report. Please find whether the SIS is active or not in your system
Regards, -
Match partial paid invoice with customer payment
Hi all,
My company FI user told me that those partially paid invoice will still shown full amount in the FBL5N report and also Statement of Account (F.27). Besides that, the customer payment that used to knock off the partially paid invoice also will shown to deduct the already paid amount.
But the user said that both of the FBL5N and F.27 are not link the partially paid invoice and customer payment together or don't have a key field to indicate which payment is refer to which partially paid invoice. When the next time they receive another payment and want to knock off the outstanding invoice amount, they are not sure that which invoice should they knock off.
For example, we have the list of invoice and payment below:
01/02/07 Inv001 $1000
02/02/07 Inv002 $2000
10/02/07 Inv003 $4000
11/02/07 Inv004 $5000
01/03/07 pay001 $1000 - knock off the Inv001
01/04/07 pay002 $3000 - knock off the Inv003 partially
So in FBL5N and F.27, the list is shown as below:
02/02/07 Inv002 $2000
10/02/07 Inv003 $4000 (still shown as full amount instead of outstanding $1000 only)
11/02/07 Inv004 $5000
01/04/07 pay002 $3000-
So when FI user receive another $3000 payment, they should knock off the Inv003 outstanding amount $1000 first then only knock off the Inv002.
But in the FBL5N and F.27, we can't find the relationship or key field to match the old payment (pay002) to the invoice that knocked off by it. Due to our invoice list may very long, such as more than 50 invoices per customer, so we need to spent a lot of time to trace back all invoice.
So the FI user requested I to modify the F.27 statement to match the payment and partially paid invoice. But I already search through many tables, such as BSID, BSEG, BSAD, etc and still not able to get the information that requested by the user.
Can anyone tell me that which table, which field should I refer to or any method to get the information?
Thank you.Hi,
Check field BSID-REBZG. When you create a partial payment this field will have original invoice number.
- Let's say you have invoice INV#1 with amount 100.00.
- You create a Partial payment of amount 45.00 and the payment doc is PAY#1.
- Now if you look at the table BSID, there will be two entry in this table
1. BELNR = INV#1, WRBTR = 100.00, REBZG = 'Blank'.
2. BELNR = PAY#1. WRNTR = 45.00, REBZG = INV#1.
This will help you determine the partial payment. I hope this will help you find solution your problem.
Regards,
RS -
Requirement : We have a requirement to reuse the standard Activity subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work centre. The requirement is to leverage and copy all sub functionalities Appointments, Tasks, Phone Calls and Emails available within the standard activity work center. This feature is available within Accounts, Opportunities, Leads etc. (Refer screenshot: Std_Act_Screen.jpg)
We are unable to consume/embed the standard Activity (Work center) sub components Appointments, Tasks, Phone Calls and Emails within the custom work center. This is because of backend consistency check violation UI designer error message displayed. (Refer screenshot:Error while consuming standard activities.jpg)
Ø Open Question:
a. Is there a limitation to consume/embed the standard Activity (Work center) subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work center? We have noticed that this standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails has been repeatedly reused within the application in Account, Opportunity, Sales lead, Lead, Sales Quote Objects.
b. Is there an alternative way in which we can call [Through API etc..] the standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails?
We need your guidance to overcome the error to enable the reuse of the standard Activity Work center sub-components Appointments, Tasks, Phone Calls and Emails within our custom work center or suggest a suitable workaround on how this can be achieved.
Regards .. Dheeraj SainiWhenever you find out let me know. I wanted to assign a text tone to someone and now in iOS 7 i can't. Or I haven't figured this out yet.
-
I ordered a iPod touch , and it says I need an invoice. Shipment requires commercial invoice from customer or seller ?
Ordered from whom?
In " and it says I need an invoice" what is "it"
Are you specifying special shipping? -
Apple apps store do double charged me for only one application purchased and i can't find an email of apple customer service.
<Email Edited By Host>These are user-to-user forums - I've asked the hosts to remove your email address from your post.
Tou can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page -
If anyone has information on how to correct an issue with a tv show file not found after being downloaded and a tv show with only sound please help. I no longer have an email invoice to report the problem. Does anyone have a sugguestion on how to proceed?
iTunes store support
http://www.apple.com/support/itunes/ -
AR Aging Report of overdue Invoices by Customer
hi all ,
can anybody helpme how should i proceed in prepairing the below report
AR Aging Report of overdue Invoices by Customer, By period with ranges .buckets
thanksHi,
I think ur requirement is to get the List of Customers payment due dates and with all discounting options, if they will pay in within the tenure.
For this we have a standard report provided by SAP for Customer Evaluation with OI Sorted List.
Report Name: RFDOPR00.
This is enough if ur requirement is the same I mentioned above.
Regards,
Sunil B. -
We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS. Once users subscribe to the alerts using the list "alert me"
function they received the customized email as intended.
We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template. All users who manually subscribed on their
own to the list using the "Alert Me" function would get the customized email.
Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?Hi ,
According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
generic email template.
For your issue, you can set the new alert ‘s alert template:
http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
Here is a good blog you can have a look:
http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Eric Tao
TechNet Community Support
Maybe you are looking for
-
Need inputs regarding the dvd drive on primary ide channel.
Specs: Motherboard: MSI P35 Neo3 (MS-7935 1.0) CPU: Intel Core2 Duo E6550 Memory: Team Elite DDR2800 (2x1GB Dual Channel) Hard drive: Seagate Barracuda 7200.11 500GB 32MB Cache (SATA) Optical drive: LG GSA-H55L (IDE only) Firmware version 1.02 Graphi
-
Problem in coverting XML data to Interal Table.
Hello, I have to write an application which converts an Internal Table Data to XML String and then from XML String to an Internal Table. The reason for doing is that I am using an RFC Function module and the internal table is dynamically generated on
-
How to include .jar file in our classpath
I want to do serial communication.I have one demo program but in it they mention that set comm.jar file in your class path.Then how can I set comm.jar file in my class path?
-
Suggestions for this problem? I am using Yosemite on a new MacBook Air and Apple TV is a few years old.
-
Nokia E5 - Automatic Connection to BT Wifi / Fon /...
I have a Nokia E5. I often connect to the internet on it using BT Wifi / Fon / Openzone connections. These require me to enter login and password details into a webpage and submit every time. Is there a way I can configure a connection to automatical