cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with MI31 transaction - SM37

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182609
Active Contributor
0 Kudos

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

JL23
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

JL23
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Jurgen,

Thanks for the explanation..

You are Great...

When I run manually the 1 to 100 Materials were open.

Is there any way we can address this issue?

Regards,

Senthil

Edited by: Senthilpandi1 on Jun 20, 2011 6:32 PM

JL23
Active Contributor
0 Kudos

in the control section of the selection screen you can put the radio button to directly create documents instead of create batch input.

Former Member
0 Kudos

HI Jurgen,

We already selected that Create documents directly in the variant.

Batch job uses that variant only.

Regards,

Senthil

JL23
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Jurgen

We scheduled one job with 16 steps.

Each step defined for one plant.

The batch job creates PI document for 16 plants.

Recently I changed variants for 3 plants like 004,006 and 0016.

Regards,

Senthil