Question:
Hi,
I need an ugrent help with this - I'm unable to set up some plant specific data in material master via standard protocol of the mentioned BAPI (BAPI_MATERIAL_SAVEDATA), that's why I need any possible decision to hook my code at some later stage in the process of posting data in material master. One of the ways (the only possible I know?) is to use user-exit. Unfortunately I didn't found any for this module.
I have my posts related to this topic in another forums in this commutiny and I didn;t have any suitable answer 'till now. Some guy reccomended me to see the user-exits for transaction MM42. I don't have MM42 activated in our system (non-retail system), anyway I didn't found any user-exit for this transaction.
The real problem is: due to some (?misterious?) reason one of the fields in plant-specific record created in MARC-table is not syncronized with its corresponding field in MARA after calling this BAPI. I'm talking about MARA-PSTAT & MARC-PSTAT fields - they keep count of views, maintained for the (particular) material (and per plant in MARC). All the settings from my BAPI-HEADDDATA (related to views) is transferred into MARA-PSTAT but not in MARC-PSTAT.
I'm conflicting with a specific parameter in the MARC-PSTAT >>> 'E' (means maintained for purchasing). That's the value I need and the only (as far as I investigated and found) modification of the marc-record which lead to a correct functionality of the selected material-per-plant.
I do made some workarround - created function module which main purpose is to update this field based on input parameters 'MATNR' and 'WERKS'. So it works in this way - our consultant checked all bussiness processes involving modified in such way material and doesn't found any errors.
Anyway that's not a proper decision (as many of you would say), and it's not approved by my manager also.
NO, I don't have any error mesasages in my RET structure and RETURNMASSAGES internal table,
and YES, I used
HEADDATA-INP_FLD_CHECK = 'E'.
also. I played with lots of combinations without success. FYI when creating/extending material manualy - the system populate this field MARC-PSTAT in a proper way, so I'm able to proceed further with creation of PurchaseOrder(s) using this material.
I would be highly appreciated in any help.
And please - be a bit more specific if you provide me some info. I'm nearly to panic Our customizing consultants couldn't provide me any suitable information (till now) also.
Many thanks in advance.
Ivaylo Mutafchiev
Ivaylo.Mutafchiev_Remove_No_Spam_Please_@petrolholding.bg
Answer:
read basic rules.
URGENT is not allowed.
Snowy
_________________
SapFans Moderator
NetWeaver ‘04–SAP Web AS for ORACLE certified
Search: /forums/search.php
SAP Notes: http://service.sap.com/notes
SAP Help: http://help.sap.com
Basic Rules: /forums/viewtopic.php?t=222759