Neler Yeni

SAP BLOG Stop Material description change in Purchase orders

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
319
Beğeniler
3
Puanları
6
#1
Introduction

There are a lot nice to have validations on purchasing documents that can be implemented based on business requirements. These changes can be implemented using BADIs or via configuration. SAP has few useful checks that inbuilt while creating or saving the purchasing documents. Here is one of functionality that achieved using the configuration that when Material code entered in PO item data then disable change on materials description

Assumptions

  • Readers have experience in material management and configuration



How to implement the functionality

Requirement- Materials description changes should not be allowed when the material code (EKPO-MATNR) already has a value. This can be achieved

  1. Create a document type that can only purchase with material codes and creating the screen variant. Steps are
  2. Copy standard document NB and create a new document type-SPRO–>Materials Management–>Purchasing–>Purchase Order–>Define Document Type–e.g Material PO (ZMPO-document type)
  3. Copy standard screen variant NB and create a new document type-SPRO–>Materials Management–>Purchasing–>Purchase Order–>Define Screen Layout at Document Level – SAP standard Variant type NBF copied and created ZMPO- Save your entries.
  4. Click on your new variant ZMPO-then click on details button –>Basic Data, item–>Short Text — uncheck the radio button from the optional and check the radio button display

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F09%2FSelection-Group-1.jpg&hash=c21d7b67c65da189e648d9f960fbd4b0


5. Assign the newly created field selection key to the purchase order document type

proxy.php?image=https%3A%2F%2Fblogs.sap.com%2Fwp-content%2Fuploads%2F2018%2F09%2FCapture-10.jpg&hash=2932ff06959941a8c9314e6d44dce9ed




Conclusion

Configuration using field selection keys per document type one can achieve subject requirement and can influence other fields as well for given document type.

It is a consultant choice to choose the method that makes more sense for the system and meets the business requirement.

if you do not want to use field selection key assignment and still want to implement this functionality. You can also implement the standard BADI to achieve this requirement with the help of our favorite team members known as ABAPers

  • BADI Name-ME_PROCESS_PO_CUST and method PROCESS_ITEM
  • Logic -Error message if the purchase order item level material text (EKPO-TXZ01) does not match with the Material description in MAKT table for MAKTX

Note- The reason to chose different the document type is to achieve different release strategy, number range, and field selection key to few more field mandatory.

Okumaya devam et...
 
Üst