cancel
Showing results for 
Search instead for 
Did you mean: 

Blocking of sales document in batch job

Former Member
0 Kudos

Hi Friends,

We are creating creating invoices by scheduling the batch job.Now business don't want to bill particular sales document type( for example ZS00) via batch job.

So my question is can we filter the sales documents( of type ZS00) while scheduling batch job as not getting any option of sales document type in VF04/VF06.

I think this can be achieved by assigning billing block( for sales document type ZS00) and then we can schedule bacth job, and invoice will not create for ZS00 document type.Later if we want to bill we can remove the block manually and can bill.

I would like to know if I can achieve this while scheduling.

Any pointers.

Regards

Ashu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

closed

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

You can try this. In copy rules, in VTFL or VTFA set a VOFM, created wiht VOFM using other as a template (for instance 003) and add to coding:


IF sy-batch = 'X'.
  sy-subrc = 4.
  EXIT.
ENDIF.

I hope this helps you

Regards

Eduardo