‎2006 Nov 10 6:05 AM
Hi All,
I have created a field exit on data element KUNWE(Ship to party). i.e if ship to part entered is '2' it should raise a error message...
So if i change an existing document of type '2' assume, it should raise also an error message.. and if i still want to save the document ,i need to change the ship to party and only save else it should exit without saving the document...
Is it possible to trigger a document on which a field exit is created...
Please let me know...if i can achieve my above requirement..
Regards
Shiva
‎2006 Nov 10 6:31 AM
Please check if you have activated the same and there is no restriction w.r.t specific programs.
Kind Regards
Eswar
‎2006 Nov 12 5:23 PM
Hi,
Can you a be a bit more specific what you mean by 'trigger a document on which a field exit is created' ?
It is possible to check in the FM module for the fieldexit the value in the input parameter.If it is not '2' then you can raise an error message for it.
The fieldexit should then be assigned to the pgm and screen number where you want to put the check. Then finally activate it.This should work.
Pravat.
‎2006 Nov 18 11:31 AM
hi,
i have created the field exit and assigned it globally. so in such case my field exit should not consider a particular transaction...and rest all tranasactions it should raise an message. At present as it is global, it raises message across all transactions....
Is it possible.? to ignore a particular transaction....eventhought i enter any value
Regards
Shiva
‎2006 Nov 20 5:05 AM
Hi,
within your FM you can check if sy-tcode = 'value' whatever you want to check.
Pravat.
‎2006 Nov 17 5:21 PM
The following ABAP statements are not allowed in the function modules of field exits:
BREAK-POINT,
CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,
COMMIT WORK, ROLLBACK WORK,
COMMUNICATION RECEIVE,
EXIT FROM STEP-LOOP,
MESSAGE I, MESSAGE W.
Message was edited by:
Manjunath Venkatesh
‎2006 Nov 17 5:41 PM
Hi,
I think you can definitely raise an error message in a fieldexit. There is no problem with regard to it.Only problem is that you will not be able to debug a field exit.
Pravat.