on 06-20-2011 4:23 PM
Hi All,
When run MI31 transaction we didn't get message "No documents selected" because applicable materials ( 2300 )already counted for the year 2011.
We scheduled a automatic batch job to create PI document for every week and it generates a PI document with 100.
I changed the variant last week 06/16/2011and included the check box " Include Material already counted and Include Batches already counted". The job ran successfully and created a PI document with first 10 items example 1 to 100. The PI document counted and posted.
The batch job ran today and create a PI document with the same 1 to 100 material again.
When I run manually the MI31 transaction it generated 101 to 200 materials.
Could you please help?
Regards,
Senthil
Are using same varient which batch job runs and running manually also same.I think the difference in materials 1...100 while batch job running you got PI list and you run manually you got 101..200 it seems first list created by batch job ,so when you executed manually system not concidered those materials.hope this helps ...
Edited by: Sridhar Jayavarapu on Jun 20, 2011 5:34 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what settings do you have in your selection screen?
if you set include already counted materials and include already counted batches, then you will certainly get with each execution the same set of materials.
I just wonder why you only get 100 and not all 2300.
Because of this I am very certain that your batch job operates with different selection screen settings in its variant than you when executing online.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Jurgen,
Sorry, I forgot to mention.
In the selection we mentioned that no of items to be included as 100 items.
That is the reason it generates 100 items.
Batch job creates the same 100 materials again and again,
When I run manually with the same variant it creates next 101 to 200 materials.
Please help.
There must be a difference in the process.
e.g. when you do it manually then the first 1-100 are still open to be counted, hence you get 101 - 200.
MI31 is actually a 2step process, creating the batch input and processing the batch input.
if you just execute the creation step in a scheduled job, then you create always the same set of materials, because the batch input is not yet processed and hence you dont have open inventory documents that need to be omitted with the next run.
Can you describe how you scheduled your batch job. do you use steps within one job, or do you schdule several jobs one after the other?
I am still wondering why your job does not create documents for all your materials. Even you defined that max 100 materials can be in one document, the job will usually create as many documents with 100 items each until it has covered all your materials in the selection.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.