Skip to Content
0

Change Material Desc in PO when it changes in Material Master

Jun 09, 2017 at 02:16 PM

193

avatar image

Hi Folks

Issue :

We made change to material description of MAT1 on Monday . Now, we checked the purchase order that was created for this material before the description was changed . Now, if you go to the PO 'AA' in edit mode(ME22n), take of the material number, click enter, it will give you error to entre the material . Then enter material number MAT1 again and click enter. check the description that has populated now. It is showing the new material description of MAT1 from MAKT(MM03).now we tried same thing with PO 'BB'. It doesn't work.

Analysis " For PO: AA the PR: AA1. In this PR it had maintained Language as EBAN_SPRAS = EN. So in this case material description is fetched from the PR.

For PO: BB the PR: BB1. In this PR Language is not maintained. So in this case the material description is fetched from the material.

Query : How can we fix this to always fetch material description from material master ?Is there any configuration ? I tried to fix material description using BADI

ME_PROCESS_PO_CUST~PROCESS_ITEM but it does not update the material description even using the Set data method .

How can we always populate material description in purchase order from Material master only ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jürgen L
Jun 11, 2017 at 09:34 AM
2

you wrote: "Now, if you go to the PO 'AA' in edit mode(ME22n), take of the material number, click enter, it will give you error."

Which error do you get? I think this is very important to know to prepare a diligent solution.

It is standard text determination customizing in IMG > MM > Purchasing - purchase order ... which determines from where the text is fetched when you create a PO. Please ask your functional consultant before you rush into BADI development.

Text is determined in "creation-mode" not in "change-mode", what you did with removing the material number and reentering is actually a kind of creation, that's why the description was fetched from the defined source again.

I would not recommend to solve this with a BADI, if someone changes actively material descriptions then he shall do it for open documents that need this update too with the MASS transaction.

It would be a ridiculous if you expect the user to open each PO individually in ME22N to have the text then changed automatically with your BADI (if you ever get it to do it as expected).

You also have to consider that users may open old POs in ME22N, which are completed for many years, do you really want to update those POs too? Do you want to send messages to your vendor about such changed text?

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

Jurgen,

I really like the way you disect a query and then reply point by point.

"Please ask your functional consultant before you rush into BADI development." - I liked that :-)

Your replies enhances our experience of going through SCN.Thanks.

K.Kiran.

0

Hi

The error comes in the change mode as :enter the material . When i re-enter the same material in some PO it populates the material description from material master but in some cases it populates from purchase requisition .

As already mentioned in the post as purchase requisition has EBAN-SPRAS = blank then it populates from material master else from purchase requisition

I want to know is there any configuration which can fix to always populate the material text from material master ?

or Is there any ABAP enhancement which can fix this

0

and I wanted to know the message number, just to verify if this is something homemade or SAP standard.

And I also told you already where the customizing is.

0

The error is

Please enter material number or account assignment category

Message No. 06026

0

This is SAP standard and is caused by the fact that you removed the material number and pressed enter without having specified an account assignment.

And as your aim was to force your system to fetch the new description you only need to enter the material number again after you got this message.

However, SAP will fetch the description based on the customizing for text determination. And if you defined there to fetch the material description from the requisition then you have to update the requisition from the material master with the new description prior to update the PO.

the customizing is a kind of a hierarchy where you define from where the text is taken.

You define how you want it. If the user enters a material number in the PR and also changes the text , then you have to decide whether you want to keep this user changed text or whether you want overwrite it from the material master.

Depending on that decision you either set it up

1. Material master - 2. Requisition - .....

or 1. Requisition - 2. Material master

Nevertheless, if you rename materials then the user should do a mass update for the open POs instead of having it updated through a BADI when he opens a PO by chance individually.

1

Thanks Jugren for the reply but the configuration as suggested is for maintaining the long texts, i need to update the text for material short text as highlighted

matetxt.png

matetxt.png (9.8 kB)
1

Hi Deepika,

I can guess the reason why your Badi with PO item data is not working even with Set data methods and what you need to do to fix that solution. However,I think the best solution is provided by Jurgen and the most judicious approach as well.

and finally why don't you perform MASS transaction for this purpose?

1. Material master - 2. Requisition - .....

or 1. Requisition - 2. Material master

Regards,

Avik

0
avatar image
Former Member Sep 06, 2017 at 06:48 PM
0

PO will always copy the text description from PR but not material master as it had higher priority

than the material master. However, the PR document must have same document language with the PO, then only the short description will be copy.

This behaviour was also as explained in FAQ note 448814 which tell you PR document must have same document language with the PO, in order for it to get transfer.

448814 - FAQ: Texts in Purchasing

In sample PO X, it was refer to PR PR1 item 10 but in this PR does not have any language maintained. Therefore the precedence to copy material text description from PR does not meet. Therefore, it copied from material master where material M1 text description maintained with
language = EN.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 06, 2017 at 06:54 PM
0
  • We can fix for MRP materials using ABAP enhancement in
    Include LMEPOF6F
    FORM mepo_item_fill_txz01 CHANGING ch_txz01 TYPE ekpo-txz01.
    ENHANCEMENT-POINT mepo_item_fill_txz01_01 SPOTS es_saplmepo.
Share
10 |10000 characters needed characters left characters exceeded