Skip to Content
0

Disable and un check ERS check box at Invoice Tab in ME21N Purchase Order

Nov 22, 2016 at 05:15 AM

236

avatar image

Hi All,

My requirement is to disable and un check ERS checkbox at Invoice Tab in ME21N Purchase order for a particular order type.

I've tried with couple of BADI's and Exits's, but didn't worked out

Kindly find the attached screen shot and please let me know the exact place to write the code. Thank you.

ers.jpg (160.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

A. de Smidt Nov 22, 2016 at 08:06 AM
0

That is done in customizing but not on the order type but rubriceringstype (which is empty in you're example, under the A or I column left of the material number).

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thank you so much for reply Smidt.

I'm an ABAPER. The requirement of Disable and un check check box cannot be done through ABAP Code at all?

Will it be possible only through configuration?

Kindly suggest. Thank you.

0

in SPRO- Materials Managment-> Purchasing-> account assignment -> Maintain account assignment categories

here you can check or uncheck the fields and or make mandatory depending on account assignment categorie.

0
Jürgen L
Nov 22, 2016 at 10:07 AM
0

if the check box is display only, mandatory or optional is based on customizing of purchase order field selection, where key PT5F is used for third-party items.

It should also be possible to change it with BAdI ME_PROCESS_PO_CUST while creating the PO.

To my knowledge will a display only field not really help you if the value for ERS is already active in the vendor master and not deselected via purchasing info records. It will default and cannot be changed by the user.

Both, vendor master and info record, will be the same for normal purchasing as well as third-party, hence you only have the option to remove the value that comes from vendor master using the BAdI.

Or you turn your process a bit and leave the ERS field in vendor master empty, have then the field for third-party items display only and for standard purchase orders the user can set the flag manually. But this has the danger that the user forgets to maintain it.

Share
10 |10000 characters needed characters left characters exceeded