cancel
Showing results for 
Search instead for 
Did you mean: 

Autogeneration of Invoice

Former Member
0 Kudos

Dear All,

Is it possible to create autogenerate invoice with reference to Sales Order

Thanks & Regards,

PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi PM,

Yes you can.

Go to VF06 --> create a variant

then come to SM36 --> Assign the variant in batch job --> Schedule the batch job.

Now as per the batch timings, system will generate the invoice for orders.

Hope it helps,

Regards,

MT

Edited by: M T on Mar 31, 2010 2:52 PM

Former Member
0 Kudos

Hi MT,

Thanks for your reply.

Can you please explain how to shedule the job.

Thanks & Regards,

PM

Former Member
0 Kudos

Hi PM,

Follow the steps given below.

Step 1 --> Setup the Variant for Batch Job

1. Go to VF06

2. Give your sales org

3. Click at save icon

4. for e.g. We have to set up the variant for billing date

5. In the row of billing date from

6. Go to Selection variable

7. For dynamic date Choose option D D: Dynamic date calculation

8. If you want to include past days or working days then press F4 in Name of Variable

9. For e.g we choose u201CCurrent date +/- ??? daysu201D

10. Then a new pop screen will populate u201CDate Calulation parameteru201D Just give how many past days or past working days you want to include in the variant

11. Give the variant name and save it.

Step 2 --> How to create a Batch Job?

1. Go to SM36

2. Give Job Name

3. Give priority in Job Class (High, medium or low)

4. Status By default is u201CScheduledu201D

5. When press Enter, a new pop screen will come

6. You have to give the program Name (Program we can find by opening T-code VF06 --> System --> Status)

7. Then enter variant which you created before

8. Your batch job has been created Now came back to main screen of SM36

9. Your job name should be there

10. Then click at u201CStart Conditionu201D for schedule your batch job.

11. You can give date and time at which time the batch job should start.

12. Test it and then Enter

13. After that, saving it very important. If we forget then batch job will not save.

Hope it helps,

Regards,

MT

Former Member
0 Kudos

Hi MT,

Thanks for your reply.

I am working as per your explanation.

I also in Job overview status as finished.

But still invoice is not generated.

Plz guide for the same.

Thanks & Regards,

PM

Former Member
0 Kudos

Hi PM,

Go through the steps again and check carefully.

Whether you assigned the right program or not?

during the variant creation, you select the right sales org or not?

During the creation of variant, have you choose the date correctly?

Please check and revert back with your findings,

Regards,

MT

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Based from experience, if the invoice is only "order-related" you can set auto-invoice generation by the use of order confirmation output type however it will entail ABAP codes.

However, if SO is "delivery-related" its a good idea if you set auto-invoice generation after the delivery has been "goods-issued".

Steps:

1. Create Output Control for Sales Documents using tcode V/30 (for order related) and V/34 .(for delivery related).

2. In SPRO, under path

a. order related:

SD>Basic Functions> Output Control > Sales Documents > Maintain Output Determination Procedure.

b. delivery related:

Logistics Execution>Shipping> Basic Shipping Functions>Output Control >Output Determination> Outbound Deliveries> Maintain Output Determination Procedure.

There is a field allocated for "requirement", you can let your ABAP create a routine / logic that once SO or Delivery is completed, it will auto-create / generate an invoice.

3. Just make sure that you will maintain that order confirmation output type via VV11 (SO) and VV21 (delivery) so that if will also auto populate SO and Delivery output .