cancel
Showing results for 
Search instead for 
Did you mean: 

How to check valuation type and batch during creating PO

Former Member
0 Kudos

Hi All,

can every body help me please,

I have a material which manage by batch and valuation type.

When user create purchase order using that kind of material I want the system checking field batch and valuation type. If they not match then system will give an error message.

What should I do to make the system checking that fields?

Thxs

- ely -

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hello Elly,

is this related to WM or MM...kindly elaborate your scenario..

thanks,

Maxx

Former Member
0 Kudos

hello Maxx,

This is related to MM, bellow are the simple scenario :

1.User create purchase order via ME21N and already enter all field which nedded

include batch and valuation type (assumed both field not match).

2. User save that purchase order, because field batch and valuation type not match

than message error will appear automaticly by system.

Best Regards,

- ely -

Former Member
0 Kudos

Hello Ely,

I got your point, but against which data system will check this value?

Do you mean the system will check in batch master record for the combination Batch number and Valuation type?

If so, then you can check PO data with MCHA (Batch data) table.

You can use exit EXIT_SAPMM06E_012 for this purpose.

Hope this helps.

Regards

Arif Mansuri

Ramki
Active Contributor
0 Kudos

Did you check the screen layout config solution given by me ?

Do you see any problem in that solution ?

Former Member
0 Kudos

Hi Arif,

Thxs for your solution, i already used this exit and check this table than system run as well as i hope.

Thank for everybody whom replayed my message.

Best Regards.

- ely -

Answers (4)

Answers (4)

Former Member
0 Kudos

Dear,

How Do u Know the Batch No Before Creating a Po??

If u maintain the Batch no then At the Time of GR it will throw an Error.

Regards

Biswajit

Former Member
0 Kudos

Hello Ely,

You can try this component EXIT_SAPMM06E_012 (Check Customer-Specific Data Before Saving), this component is available in MM06E005.

Hope this helps.

Regards

Arif Mansuri

Former Member
0 Kudos

Hello Ely,

Got question... On which condition, the system will check this batch and valuation type?

Regards

Arif Mansuri

Former Member
0 Kudos

Hi Arif, thxs for your replay.

I want system will check this batch and valuation type when user saving purchase order process. any solution without using exit component ?

Rgds,

-ely-

Former Member
0 Kudos

Hi Ely,

Do you want this check to be automatic thru program or manually while creating a PO before saving it . Or by making the field mandatory for input ?

Do reply .

KP

Former Member
0 Kudos

Hi kirit, thxs for u're replay.

hopefully this checked by program and not manually.

-ely-

Ramki
Active Contributor
0 Kudos

Hi Ely

Fortunately, you do not need to do any coding or need to use exits.

You can configure the screen layout settings as follows:

1) SPRO->MM->Purchasing->Purchase Order-> Define screen layout at doc level

2) Double click on the key-NBF (most probably you are using this for your PO document type. If you are using any other field layout key..make changes there)

3) Double click on GR/IR control .

4) Make Valuation Type & Batch fields 'Required'.

System works intelligently here. If the material is batch managed, system expects you to enter a batch in PO. If the material has split valuation, then system also expects you to enter valuation type. FOr other materials, system does not expect you to enter batch or valuation type.

Best regards

Ramki