Skip to Content

Hi All

There are many Open discussion regarding Batch Job for Billing which inspired me to create this document for  associates who wants to understand how Batch job works in SAP ?How can we schedule Invoice in background to automate the Billing Process.

There are the steps to Keep in Mind when want to automate the billing.

  1. Create Billing Variant (VF04)
  2. Create Job-Sm36 using Job Wizard
  3. Recipient address for Spool list recipient.
  4. Specify Start Condition

Scheduled

The job steps but no start conditions have been defined.

Released

The job definition is complete and the job is waiting for the start conditions to be fulfilled.

Ready

The job is in its start phase, which normally takes only a fraction of a second.

This status is of no interest for the end user. However, it is useful for error analysis by SAP support.

Active

The job is being executed.

Finished

The job is finished without errors.

Cancelled

The job execution was terminated due to an error.

5. Automated Job execution as defined in Start Condition

6. Check for Periodic or restriction for this job.

6. Report for Number of documents created and Error log.

1.       1.  Create Variant for Invoice:- 

Here you define the most suitable conditions or Pr-requisite to Generate the Invoice .it can be on Billing Type/Sales Org Level /Dis. Channel or the combination of all.

VF04

01.PNG

Test 01 Variant Created .

02.PNG

2. Create Job:-

Job Wizard Tab- Create.

03.PNG

Click On Continue

04.PNG

Define if using ABAP program or External Program

05.PNG

To know the Program Name:-

VF04-SYSTEM-STATUS

06.PNG

ABAP- Program Step- Write the program name

07.PNG

Specify the Names, you want to send spool

08.PNG

Create Job Start Condition

09.PNG

Define if you want to run this Job Periodically or you have any restriction like (Sunday, Sat )etc.

10.PNG

Click on Continue

11.PNG

Status and my Own Jobs Can be checked in “MY OWN JOBS”

12.PNG

Here you can see how many jobs are active from individual user along with its status.

If you require to see the error log and Report for number of documents created after Job Run it can be traced via T-Code V.21

  1. V.21 :- Log for Collective Run.

13.PNG

Execute .it will show the screen along with number of documents successfully created along with error.

14.PNG

Select the Group and click on Documents. It will show you number of Invoices created.

01.PNG

Now Select the Notes or Shift+8. It will show you invoices with Error log.

02.PNG

You can also see the individual invoices and failing reasons so go ahead and do the required changes to get the invoicing done.

This is end of job scheduling in background .Please leave your valuable feedback.

To report this post you need to login first.

20 Comments

You must be Logged on to comment or reply to a post.

      1. Jyoti Arora

        Hi Geetha

        When processed in background (through batch jobs in this case), the invoice document is created but gets blocked for further processing (release to accounting) because of several issues, for example error in account determination, OR some other errors in master data (like partners in the above screenshot).

        In such a scenario, the user needs to go individually to that particular document, correct the error and then process the document manually.

        Hope this answers your question. Please let me know if you still have doubts.

        Thanks!!

        Jyoti

        (0) 

Leave a Reply