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

Using Field Exit Changing a field when it is grayed out

Former Member
0 Likes
1,593

Hi,

Can anybody know how can we change a field using field exit when it is grayed out. Please let me know if anybody has an idea. Points will be rewarded if helpful.

Thanks,

Leela

6 REPLIES 6
Read only

Former Member
0 Likes
1,170

Hi,

In field exit by using dialog programming you can change the field,please check the properties of the field so that u will get the idea whether it can be changed or not and if it does not work u can try transaction variant if u want to modify the transaction.

if it is helpful award me the points else please eloborate your question.

Ramesh.

Read only

0 Likes
1,170

Hi All,

I would like to explain clearly what my problem is.

I have a field INSMK which needs to be changed automatically from BLOCKED to QUALITY INSPECTION. but this field has been disabled or greyed out (Configured) for some reason not to allow user to enter.

I have to make change for this field from BLOCKED TO QUALITY even though it is DISABLED.

My Solution : I could able to change this value using a FIELD EXIT when it is enabled (I,e changing the configuration from disable to enable) but they don't want it to be enabled all the time.

It should be disabled but I have to change it.

Please explain me now how to do this?

Thanks,

Leela

Read only

0 Likes
1,170

Hi Leela,

If you have configured to enable it at times then you can code to prevent the user from entering value when you don't want them to...when the exit is triggered and the case is where you cannot enter value,you can Clear the value and inform the user

in the cases where user shouldn't enter you can write

if input is not initial.

clear: input,output.

message 'cannot input value' type 'E,I,..

endif.

if you clear the user has no longer control of the field...disabling the field requires the screen property ...not sure if this can be done in the function module for the exit...

Regards

Byju

Read only

Former Member
0 Likes
1,170

Hi,

If you have BADI or Customer exit or User exit provided by SAP you can modify the value.

Regards,

Prasanna

Read only

Former Member
0 Likes
1,170

Hi Leela,

If you use a field exit,when the user enters that screen for the first time it will be triggered..then when the code written in the field exit function module takes over everytime the screen is being processed...

Field exit when created has just an input and output parameter..it can be used for comparisons and making a field mandatory i.e, comparison in the sense if you have a fixed value like 20..we can say whenever it crosses 20 we can show a message and if the field is initial we can pop up a message...

i am not sure how it will react if you have an error message which blocks a field and a field exit for the same...i have a feeling that the field exit will trigger before the other code and then if things are ok it will prompt the other message which greys the screen out..

Also for a field exit to be created the field must be linked directly to a table dataelement and not a structure

Pls check and revert

regards

Byju

Read only

0 Likes
1,170

Hi All,

I would like to explain clearly what my problem is.

I have a field INSMK which needs to be changed automatically from BLOCKED to QUALITY INSPECTION. but this field has been disabled or greyed out (Configured) for some reason not to allow user to enter.

I have to make change for this field from BLOCKED TO QUALITY even though it is DISABLED.

My Solution : I could able to change this value using a FIELD EXIT when it is enabled (I,e changing the configuration from disable to enable) but they don't want it to be enabled all the time.

It should be disabled but I have to change it.

Please explain me now how to do this?

Thanks,

Leela