Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Field exits

Former Member
0 Likes
705

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

6 REPLIES 6
Read only

Former Member
0 Likes
684

Please check if you have activated the same and there is no restriction w.r.t specific programs.

Kind Regards

Eswar

Read only

Former Member
0 Likes
684

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.

Read only

0 Likes
684

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

Read only

0 Likes
684

Hi,

within your FM you can check if sy-tcode = 'value' whatever you want to check.

Pravat.

Read only

Former Member
0 Likes
684

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

Read only

0 Likes
684

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.