06-24-2013 1:10 PM
Hi,
I am trying to enhance a standard functionality where the email is sent to the customer master default email address with the PDF attachment of the invoice from the transactions VF01 and VF02. I need to be able to send the same mail to all the email addresses that are maintained for the respective customer. I had ben to many discussions here but could not solve this. SAPCONNECT is taking only the default email address of the customer.
Thanks,
Ajith C
06-24-2013 2:53 PM
Hi Ajith,
You can try this.
FORM GET_ADDR_KEY USING IT_HD_ADR TYPE LBBIL_INVOICE-HD_ADR
CHANGING CS_ADDR_KEY LIKE ADDR_KEY.
in this include change the default address,use the standard bapi and get depends on your selection and pass that to
CS_ADDR_KEY-ADDRNUMBER = addr-ADDR_No.
CS_ADDR_KEY-PERSNUMBER = addr-PERS_No.
CS_ADDR_KEY-ADDR_TYPE = c_addr_typE.
if there is any issues let me know.
Regards,
Madhu.
06-25-2013 6:49 AM
Hi Madhu,
Thanks for helping. I have located the subroutine in the ZRLB_INVOICE_US program( copy of the standard program which is used by our output type ).
However, when I try to debug from VF01/VF02, control is not even reaching ZRLB_INVOICE_US program. Following is the procedure we are following.
- open / create new invoice.
- Go to ->header->output.
- Give the output type. Mention 'External send' as medium. The business partner field will be autofilled.
- Click on 'Communication Method' tab. Give 'CS01'/ 'INT' for communiction strategy.
- in 'Further Data' tab, select 'Send immediately( when saving the application' .
- And finally click on the 'SAVE' button. This is not triggering the break point that I kept in ZRLB_INVOICE_US.
Could you tell me where I am going wrong?
Thanks
Ajith C
06-25-2013 7:28 AM
Hi Ajith,
Is that program is configured in nace by your functional people.
Regards,
Madhu.
06-25-2013 8:14 AM
06-25-2013 9:20 AM
Hi ,
Can you tel me the output is a copy of which one.
Regards,
Madhu.
06-25-2013 10:19 AM
Hi Madhu,
Not sure about this. They say it is customized and not a copy.
Thanks,
Ajith c
06-25-2013 11:28 AM
Hi Ajith,
Please make sure it is a copy of RD00 and copy all the tables and check,because as technical person we can create a program and form the remaining NACE config from functional team.
Regards,
Madhu.
04-22-2014 6:37 AM
Hi Ajith,
Your program ZRLB_INVOICE_US will not be triggered directly by following the steps that you have mentioned.
Please follow the below steps to get the breakpoints triggered.
- open / create new invoice.
- Go to ->header->output.
- Give the output type. Mention 'External send' as medium. The business partner field will be autofilled.
- Click on 'Communication Method' tab. Give 'CS01'/ 'INT' for communiction strategy.
- in 'Further Data' tab, select 'Send with periodically scheduled job' .
- And finally click on the 'SAVE' button.
Now go to SE38 and execute report RSNAST00 with the following selection screen criteria.
Output Application - V3 (Billing)
Object key - Invoice Number
Output type - your output type (it was RD00 in my case).
When you execute this program, your break point will trigger.
Please note that you have to place the break point in FORM ENTRY of your program ZRLB_INVOICE_US.
Also ensure that you have maintained your custom program in NACE configuration else it would not trigger.
Please let me know if you need any other information.
Regards,
Preeti
06-25-2013 7:05 AM
Hi
this issue can be solved by this way.
1. You create a Group email in your outlook mail server say Group1.. which contains all the emails as distribution list.
2. Use that Group email id in the customer master as default email address.
So SAP connect will send that email to mail server and mail server inturn distribute the emails to all the email address in the distribution list.
Regards,
Venkat
06-25-2013 8:16 AM
Hi Venkat,
Thanks.
However, we have enhanced the invoice transaction and it must give the user a list of all the emails configured to the customer master, and he should be able to select only those which he wants before sending.
Thanks,
Ajith C
07-01-2014 6:33 AM
Hi Ajith,
I have the same requirement. Can you please tell me some more details, like where do you exactly enhanced the invoice transaction?
Thanks in advance,
Manasa Veena P.