2013 Jan 10 12:32 PM
Dear Experts,
while changing/creating material through MM01/MM02, system is checking the Production storage location is maintained or not for the plant, but it is throwing as a warning. We want to change the warning to Error and should not allow the user to save the document. While debugging we found the error is triggering at the Function Module MARC_LGPRO. How can we restrict that one? Please help me.
2013 Jan 10 1:49 PM
Hi Zakir
if you use ECC 6.0 you can put an enchancement in final of the FM and thow an message TYPE 'E' to stop the process if field LGPRO is INITIAL like this:
2013 Jan 10 1:49 PM
Hi Zakir
if you use ECC 6.0 you can put an enchancement in final of the FM and thow an message TYPE 'E' to stop the process if field LGPRO is INITIAL like this:
2013 Jan 11 3:38 AM
Thanks Ribeiro.
We were not able to do the enhancement ther. Now it is working.
2013 Jan 11 9:58 AM
Hi Ribeiro,
But still the warning message is coming before the error message. can we restrict that one?
2013 Jan 11 10:44 AM
put another enhancement in top of same function, export the value of P_KZ_NO_WARN to ABAP memory. then change the content of P_KZ_NO_WARN to N.
it will bypass the warning and in the final of function close to the error message import the value from ABAP MEMORY before execute your routine. in this form only the error will be executed.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |