Skip to Content
Author's profile photo Former Member

Batch job for billing

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.

Assigned tags

      20 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Thank you so much for sharing this document .. keep it up dear

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Venu

      Author's profile photo Pradeep Mani
      Pradeep Mani

      Hi,

      Thanks for posting,i was trying to do this ,this morning,little confused about the process.The document was helpful.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Pradeep .

      Regards

      Santosh Verma

      Author's profile photo Suman Sardar
      Suman Sardar

      Thanks for sharing such nice explained document.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Suman.

      Regards

      Santosh Verma

      Author's profile photo SARDAR JANI SHAIK
      SARDAR JANI SHAIK

      Thanks alott for your detailed background scheduled job.

      Author's profile photo Former Member
      Former Member

      Dear Any body plz tell me

      how billing document is created along with errors

      i am confused ... plz explain any body

      Author's profile photo Former Member
      Former Member

      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

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Sardar Jani.

      Regards

      Santosh Verma

      Author's profile photo Former Member
      Former Member

      Thanks santosh for sharing this document.

      Thanks

      'Sukant.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Sukant 🙂

      Regards

      Santosh Verma

      Author's profile photo Former Member
      Former Member

      Very informative !!

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Karaveera 🙂

      Regards

      Santosh Verma

      Author's profile photo Former Member
      Former Member

      Nice explanation.

      Thank you......

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Rajesh..

      Regards

      Santosh Verma

      Author's profile photo Srinu S
      Srinu S

      Nice document Santosh. Thanks for sharing.

      Srinu.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thank you Srinu 🙂

      Regards

      Santosh Verma

      Author's profile photo Former Member
      Former Member

      Thanks a lot, very helpful 🙂

      Author's profile photo Former Member
      Former Member

      Hi Santhosh,

      Really very informative. Thanks a lot

      Regards

      yezdevan