Skip to Content

Trigger Invoice as attachment via Email through vf02

Jan 11 at 03:08 PM


avatar image

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.



capture.jpg (47.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jelena Perfiljeva
Jan 11 at 07:54 PM

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.

10 |10000 characters needed characters left characters exceeded
arnab sarkar Jan 12 at 06:39 AM

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



10 |10000 characters needed characters left characters exceeded