Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Invoice generated output send to wrong customer

0 Likes
1,393

Hi All,

We are facing a peculiar issue at our client Produciton system while generating (collective - mass) invoices.

Following are the details

System Details

R/3 version - 4.6C

OS - Windows

DB- MSSQL

The following program - RV60SBT1 ( Creating Billing Documents Collectively ) is run daily to generate billing documents for those deliveries PGI'd.

All these invoices use output type - External Send ( Soft copy of Invoice to customer via e-mail, PFD Format ) and processing mode - Send Immediately (While saving the application).

We have used place holder symbols in Text for cover page of communication method to display Customer PO / SAP Invoice number, this information will appear on the subject line of the e-mail.

The output of the invoice displays relevant information while created individually or manually.

But descrepancies occur while performing collective run only.

The following cases occur:-

Issue 1 u2013 The subject line is incorrect, the invoice is correct, the e-mail reaches the correct customer

Issue 2 u2013 The subject line is correct, the invoice is wrong (the invoice no. generated in output is incorrect), the e-mail reaches the wrong customer

Issue 3 u2013 The subject line is incorrect, the invoice is wrong (the invoice no. generated in output is incorrect) , the e-mail reaches the wrong customer

Please provide your suggestions on how to resolve this issue.

Thanks in advance,

Vinod

Hi All,

We are facing a peculiar issue at our client Produciton system while generating (collective - mass) invoices.

Following are the details

System Details

R/3 version - 4.6C

OS - Windows

DB- MSSQL

The following program - RV60SBT1 ( Creating Billing Documents Collectively ) is run daily to generate billing documents for those deliveries PGI'd.

All these invoices use output type - External Send ( Soft copy of Invoice to customer via e-mail, PFD Format ) and processing mode - Send Immediately (While saving the application).

We have used place holder symbols in Text for cover page of communication method to display Customer PO / SAP Invoice number, this information will appear on the subject line of the e-mail.

The output of the invoice displays relevant information while created individually or manually.

But descrepancies occur while performing collective run only.

The following cases occur:-

Issue 1 u2013 The subject line is incorrect, the invoice is correct, the e-mail reaches the correct customer

Issue 2 u2013 The subject line is correct, the invoice is wrong (the invoice no. generated in output is incorrect), the e-mail reaches the wrong customer

Issue 3 u2013 The subject line is incorrect, the invoice is wrong (the invoice no. generated in output is incorrect) , the e-mail reaches the wrong customer

Please provide your suggestions on how to resolve this issue.

Thanks in advance,

Vinod

3 REPLIES 3
Read only

Former Member
0 Likes
988

This happens only for collective processing and not if done indevidually.. Right??

This is very common problem in Output processing implementation.

Check the output control setting. Goto NACE setting to that perticular output. Check the corresponding Smartforms and It's Driver Program. If the driver program is custom generated, Definitely the variables are not getting cleared properly.

Let me know if the driver program is standard.

Thanks & Regards,

Audi

Read only

0 Likes
988

Thanks for your response.

This issue arises only for collective run invoice creation and for manual creation or individual run it works fine.

At NACE transaction, we have not used standard print program, but Z program has been used.

so you suggest the need to clear variables that hold these values during creation ..Right !.

Now this clearing needs to happen after the each document has been printed ... Kindly advise?

Read only

0 Likes
988

If you go to transaction NACE, and get the "processing Routine" screen of your output type, And you have entry say, Program = "ZXXXXXX" and Form Routine = "Entry", that means the Subroutine "Entry" of the Program "ZXXXXXX" is called for each document. So First thing in the subroutine 'Entry' should be clear all the variables and tables except the current NAST entry.

The Email Subject must have been written within the Z-Program. If not, Let me know.

Then, The logic to get the recipient must have been written in the code. The base of finding the recipient is normally the partner proposed thru' NACE configuration. Sometimes, the partner proposed by the NACE configuration is overwritten by some custom logic in the smartform driver program say. ZXXXXXX in our case. Though it is a bad design, it is widely followed. I am not sure about the your case.

If this info doesn't solve ur problem, let me know the code. I'll try my best to help u out..

-Audy.