cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Invoice as attachment via Email through vf02

kjyothiraditya
Participant
0 Kudos

Hi Experts,

We need to trigger Invoices as attachments to the customers during creation in vf02 and we have created a new output type for the Email (NAST-NACHA = 5). The email is constructed using cl_bcs class and we are triggering from vf02. But during cl_bcs->send() method, change pointers are getting activated for address related tables and giving an error in Processing log as in the attachment. Could you please suggets how to fix this.

Regards

Aditya

Accepted Solutions (0)

Answers (2)

Answers (2)

arnabsarkar2601
Active Participant

Hi Jyothir,

As far as I think you can trigger email notification to your customer by simply doing som standard configuration. I do not know the reason for doing the ABAP coding behind this.

If you are doing standard config simply do certain settings listing below -

1. Configure NACE settings as per your requirement. Put access sequence , output type and processing routines.

2. Check SOST settings

3. Mention the email id in the customer master data

Try and trigger from invoice use application V3

Regards,

Arnab

Jelena
Active Contributor

This is standard functionality that works just fine out of the box with standard programs. Not sure why you chose to write custom code for it but obviously that's where the issue is.