Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW for material master ended with error

former_member195427
Active Contributor
0 Kudos

Hi experts,

I created a LSMW for Material master creation and while material update the program ended with error asking to fill required fields 'Availability check' and MRP controller though I have updated them in my templated and LSMW recording.

I tried recreating LSMW for it, did debugging but could not find the root cause of it.

Could you please suggest what could be the reason of it?

Thanks.

16 REPLIES 16

JL23
Active Contributor
0 Kudos

If you want an answer then do not let the people guess, if you run the batch input from LSMW then you get a pretty good protocol (you can even get to it from SM35).

You can further run the batch input in foreground and you can directly see what messages you have on the screen. If sequence is well then you should actually find the values from your template, but I doubt that sequence in your batch input is synchronous with the screen sequence. I wrote a blog about it: https://blogs.sap.com/2013/12/09/aaagh-lsmw-recording-for-material-master/

0 Kudos

I have to disagree here because the same LSMW runs successfully for 20 set of materials and beyond 20 it ends with error of required entry fields.

JL23
Active Contributor
0 Kudos

It would have been better if you had disagreed by giving evidence from the log

0 Kudos

Hi Jurgen,

I used standard batch/direct input method for it. (please see screenshot attached)

I have also attached error log which I got when I ran it for >20 Materials.

It ran successfully for <20 Materials again.

Kindly suggest what went wrong.

Thanks.lsmwmm1.pnglsmwmm2.png

JL23
Active Contributor
0 Kudos

Just curious: why did you write "LSMW recording" in your question?

JL23
Active Contributor
0 Kudos

In this case of direct input I would like to see screenshots from the "Display converted data" step .

One screenshot from the overview, and then a screenshot from the detail of each record to one material that is in error

former_member195427
Active Contributor
0 Kudos

Hi Jurgen,

Please see attached files.

Please let me know if you need any other file or I have missed any.

lsmw3.pnglsmw4.pnglsmw5.png

0 Kudos

lsmw3.png and lsmw4.png is what I wanted, lsmw5.png was not asked for.

I need a screenshot from detail of BMMH1 structure.

All the other structures are anyway empty, wonder why you have assigned your source structure to them if you have no data for it.

0 Kudos

Hi Jurgen,

Many thanks for your reply.

Files are attached.

Regardslsmw6.pnglsmw7.png

0 Kudos

Attached more here.

lsmw8.pnglsmw9.png

JL23
Active Contributor
0 Kudos

The fields look in general okay and I can't see anything wrong from the screenshot.

Had you already run a complete check on your file? see last box in your screenshot lsmw5.png

Are all your materials in this LSMW load from the same material type, industry, plant? Are the errors only for a specific material type or industry or plant?



0 Kudos

Hi Jurgen,

We have done the check already. I tried removing last check box in lsmw5 file but no success.

Yes, all materials belong to one material type ,industry and plant.

It looks very strange .

Thanks.

JL23
Active Contributor
0 Kudos

I didn't mean removing, I meant running it in test and check mode to validate the data.

I am in a all day meeting, so it is uncertain if I can look deeper into it today.

0 Kudos

Hi Jurgen,

Can I get some more help from you on this? 😞

Or should I raise an OSS to SAP now?

Thanks.

JL23
Active Contributor
0 Kudos

What do you see in BMV0 after execution of the initial section screen?

Does it say something about logical errors?

0 Kudos

Hi Jurgen,

Good Morning!

I tried BMV0 after running LSMW but I dint see any logs there.

In BMV0 I input today's date and (*) in job name pattern.

Did I enter anything wrong?

Thanks