2006 Nov 20 4:52 PM
Hi All,
I have created a field exit for data element(MATKL) and inside the field exit function module i have done a validation and raised an error message.
When i m exectuing the transactions such as OMSF (SPRO->Logistsis->MasterData->Define Material group) , the error message is triggering and the field exit is working fine.
Now i have a requirement that this validation should neglect/not consider one particular transaction(eg: OMSF) and allow me to enter any value for MATKL field in that particular tranascation.
I tried to add my validation inside the field exit function module by checking sy-tcode...
i.e
***********************************************************
check not sy-tcode='OSMF'
if input = 'DC14'
message e004 with 'Obselete material group'
endif.
end function.
*******************************************************
but in this case the sy-tcode value is being SM30 as i m validating inside the FM.
In this case if i validate for sy-tcode for SM30 my requirement fails....
So in such cases i need a differentiator for recognising the transaction OSMF
Please help me to exclude this particular transaction while validating the field exit
Regards
Shiva
2006 Nov 20 5:07 PM
when u enter OMSF the sy-ucomm holds this value...at this moment u might have to store this in some variable and use this variable.
when u enter OMSF the sy-ucomm holds this value...at this moment u might have to store this in some variable and use this variable.
2006 Nov 20 4:54 PM
what u do is create a t-code for the requirement instead of SM30 and use this t-code in ur validation.
2006 Nov 20 4:57 PM
hi,
the transaction OMSF is a standard transaction in SPRO
i need to exclude this transaction
Regards
Shiva
2006 Nov 20 5:18 PM
Can you check the value in the field SY-MSGV1 ? It seems to contain the original transaction.
2006 Nov 20 5:07 PM
when u enter OMSF the sy-ucomm holds this value...at this moment u might have to store this in some variable and use this variable.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |